API Documentation


Assets

The assets field returns an array of Asset objects.

Examples

All assets

query all {
  assets {
    assetName
    assetSymbol
  }
}

Assets named bit%

query bit {
  assets(filter: { assetName: { _like: "bit%" } }) {
    assetName
    assetSymbol
  }
}

Top assets by market cap rank

query top {
  assets(sort: { marketCapRank: ASC }, page: { limit: 10 }) {
    assetName
    assetSymbol
  }
}

Filter, Sort, and Page

Assets may be filtered, sorted and paged using standard Blocktap query syntax as:

Filter

Name Description Type
assetName Common name of the asset String
assetSymbol Unique and normalized symbol for the asset String
assetType Asset type Enum
marketCap Current market capitalization of the asset from VWA of all markets, denoted in BTC Float
marketCapRank Current rank of market capitalization of the asset from VWA of all markets Float
currentSupply Amount of asset currently in circulation Float
totalSupply Total amount of asset that will be in circulation Float
targetBlockTime Target block time in milliseconds Int

Sort

Name Description
assetName Common name of the asset
assetSymbol Unique and normalized symbol for the asset
assetType Asset type
marketCap Current market capitalization of the asset from VWA of all markets, denoted in BTC
marketCapRank Current rank of market capitalization of the asset from VWA of all markets
currentSupply Amount of asset currently in circulation
totalSupply Total amount of asset that will be in circulation
targetBlockTime Target block time in milliseconds

Page

Name Description Type
skip Skip records Int
limit Limit to records Int