Coin Metrics List of blockchain entities v2 API

Endpoints for fetching lists of blockchain entities.

OpenAPI Specification

coin-metrics-list-of-blockchain-entities-v2-api-openapi.yml Raw ↑
openapi: 3.0.2
info:
  title: Coin Metrics API v4 Blockchain Explorer Job List of blockchain entities v2 API
  description: '[Coin Metrics Homepage](https://coinmetrics.io/)<br/> [API Backward Compatibility Policy](https://docs.coinmetrics.io/access-our-data/api#backward-compatibility)<br/> [Python API Client](https://coinmetrics.github.io/api-client-python/site/index.html)<br/><br/>

    HTTP API root endpoint URL is `https://api.coinmetrics.io/v4`. Coin Metrics&apos; paid product.<br/> WebSocket API root endpoint is `wss://api.coinmetrics.io/v4`. Coin Metrics&apos; paid product.<br/><br/> The Community HTTP API root endpoint URL is `https://community-api.coinmetrics.io/v4`. API key is not required when accessing community endpoints. Available to the community under the [Creative Commons](https://creativecommons.org/licenses/by-nc/4.0/) license.

    # Authentication

    <!-- ReDoc-Inject: <security-definitions> -->

    # Response headers

    Note that Coin Metrics API responses have a `CF-RAY` HTTP header e.g. `88a6ec1d2f930774-IAD` which can be used for diagnostic purposes. When raising Support requests, please ensure to provide the value of this header. '
  termsOfService: https://coinmetrics.io/api/terms
  contact:
    name: Coin Metrics Support
    url: https://coinmetrics.io/support/
    email: support@coinmetrics.io
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 4.0.0
servers:
- url: https://api.coinmetrics.io/v4
- url: wss://api.coinmetrics.io/v4
- url: https://community-api.coinmetrics.io/v4
tags:
- name: List of blockchain entities v2
  description: Endpoints for fetching lists of blockchain entities.
paths:
  /blockchain-v2/{asset}/blocks:
    servers:
    - url: https://api.coinmetrics.io/v4
    - url: https://community-api.coinmetrics.io/v4
    get:
      summary: List of blocks
      description: Returns a list of blockchain blocks metadata.<br/> Results are ordered by tuple `(height, block_hash)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.<br/> Results are limited to the last 30 days for Community users.
      operationId: getBlockchainV2ListOfBlocks
      tags:
      - List of blockchain entities v2
      parameters:
      - $ref: '#/components/parameters/BlockchainAsset'
      - $ref: '#/components/parameters/BlockchainBlockHashesV2'
      - $ref: '#/components/parameters/BlockchainBlockHeightsV2'
      - $ref: '#/components/parameters/StartTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/EndTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/StartHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/EndHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/BlockchainChainTypeV2'
      - $ref: '#/components/parameters/StartInclusiveAtlasV2'
      - $ref: '#/components/parameters/EndInclusiveAtlasV2'
      - $ref: '#/components/parameters/Timezone'
      - $ref: '#/components/parameters/PageSizeAtlasV2'
      - $ref: '#/components/parameters/PagingFrom'
      - $ref: '#/components/parameters/Pretty'
      - $ref: '#/components/parameters/NextPageToken'
      - $ref: '#/components/parameters/IgnoreUnsupportedErrors'
      x-codeSamples:
      - label: Shell
        source: '# Gets list of blocks for Litecoin

          curl --compressed "https://api.coinmetrics.io/v4/blockchain-v2/ltc/blocks?start_time=2021-01-01&end_time=2021-01-02&pretty=true&api_key=<your_key>"

          '
      - label: Python
        source: '# Gets list of blocks for Litecoin

          import requests

          response = requests.get(''https://api.coinmetrics.io/v4/blockchain-v2/ltc/blocks?start_time=2021-01-01&end_time=2021-01-02&pretty=true&api_key=<your_key>'').json()

          print(response)

          '
      - label: Python Client
        source: '# Gets list of blocks for Litecoin

          from coinmetrics.api_client import CoinMetricsClient

          client = CoinMetricsClient(<your_key>)


          response = client.get_list_of_blocks_v2(asset="ltc", start_time="2021-01-01", end_time="2021-01-02").to_list()

          print(response)

          '
      responses:
        '200':
          $ref: '#/components/responses/BlockchainBlocksV2'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BlockchainForbidden'
      security:
      - api_key: []
  /blockchain-v2/{asset}/accounts:
    servers:
    - url: https://api.coinmetrics.io/v4
    - url: https://community-api.coinmetrics.io/v4
    get:
      summary: List of accounts
      description: Returns a list of blockchain accounts with their current balance.<br/> For rebasing assets, the balances returned are adjusted according to the current rebasing conditions.<br/> Results are ordered by tuple `(creation_chain_sequence_number, account)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.
      operationId: getBlockchainV2ListOfAccounts
      tags:
      - List of blockchain entities v2
      parameters:
      - $ref: '#/components/parameters/BlockchainAsset'
      - $ref: '#/components/parameters/BlockchainAccountsV2'
      - $ref: '#/components/parameters/StartTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/EndTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/StartHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/EndHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/BlockchainStartChainSequenceNumberV2'
      - $ref: '#/components/parameters/BlockchainEndChainSequenceNumberV2'
      - $ref: '#/components/parameters/StartInclusiveAtlasV2'
      - $ref: '#/components/parameters/EndInclusiveAtlasV2'
      - $ref: '#/components/parameters/Timezone'
      - $ref: '#/components/parameters/PageSizeAtlasV2'
      - $ref: '#/components/parameters/PagingFrom'
      - $ref: '#/components/parameters/Pretty'
      - $ref: '#/components/parameters/NextPageToken'
      - $ref: '#/components/parameters/IgnoreUnsupportedErrors'
      x-codeSamples:
      - label: Shell
        source: '# Gets list of accounts for USDC

          curl --compressed "https://api.coinmetrics.io/v4/blockchain-v2/usdc/accounts?pretty=true&api_key=<your_key>"

          '
      - label: Python
        source: '# Gets list of accounts for USDC

          import requests

          response = requests.get(''https://api.coinmetrics.io/v4/blockchain-v2/usdc/accounts?pretty=true&api_key=<your_key>'').json()

          print(response)

          '
      - label: Python Client
        source: '# Gets list of accounts for USDC

          from coinmetrics.api_client import CoinMetricsClient

          client = CoinMetricsClient(<your_key>)


          response = client.get_list_of_blocks_v2(asset="usdc").to_list()

          print(response)

          '
      responses:
        '200':
          $ref: '#/components/responses/BlockchainAccountsV2'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BlockchainForbidden'
      security:
      - api_key: []
  /blockchain-v2/{asset}/sub-accounts:
    servers:
    - url: https://api.coinmetrics.io/v4
    - url: https://community-api.coinmetrics.io/v4
    get:
      summary: List of sub-accounts
      description: Returns a list of blockchain sub-accounts with their current balance.<br/> For rebasing assets, the balances returned are adjusted according to the current rebasing conditions.<br/> Results are ordered by tuple `(creation_chain_sequence_number, account)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.
      operationId: getBlockchainV2ListOfSubAccounts
      tags:
      - List of blockchain entities v2
      parameters:
      - $ref: '#/components/parameters/BlockchainAsset'
      - $ref: '#/components/parameters/BlockchainAccountsV2'
      - $ref: '#/components/parameters/StartTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/EndTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/StartHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/EndHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/BlockchainStartChainSequenceNumberV2'
      - $ref: '#/components/parameters/BlockchainEndChainSequenceNumberV2'
      - $ref: '#/components/parameters/StartInclusiveAtlasV2'
      - $ref: '#/components/parameters/EndInclusiveAtlasV2'
      - $ref: '#/components/parameters/Timezone'
      - $ref: '#/components/parameters/PageSizeAtlasV2'
      - $ref: '#/components/parameters/PagingFrom'
      - $ref: '#/components/parameters/Pretty'
      - $ref: '#/components/parameters/NextPageToken'
      - $ref: '#/components/parameters/IgnoreUnsupportedErrors'
      x-codeSamples:
      - label: Shell
        source: '# Gets list of sub accounts for Litecoin

          curl --compressed "https://api.coinmetrics.io/v4/blockchain-v2/ltc/sub-accounts?pretty=true&api_key=<your_key>"

          '
      - label: Python
        source: '# Gets list of sub accounts for Litecoin

          import requests

          response = requests.get(''https://api.coinmetrics.io/v4/blockchain-v2/ltc/sub-accounts?pretty=true&api_key=<your_key>'').json()

          print(response)

          '
      - label: Python Client
        source: '# Gets list of sub accounts for Litecoin

          from coinmetrics.api_client import CoinMetricsClient

          client = CoinMetricsClient(<your_key>)


          response = client.get_list_of_sub_accounts_v2(asset="ltc").to_list()

          print(response)

          '
      responses:
        '200':
          $ref: '#/components/responses/BlockchainSubAccountsV2'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BlockchainForbidden'
      security:
      - api_key: []
  /blockchain-v2/{asset}/transactions:
    servers:
    - url: https://api.coinmetrics.io/v4
    - url: https://community-api.coinmetrics.io/v4
    get:
      summary: List of transactions
      description: Returns a list of blockchain transactions metadata.<br/> Results are ordered by tuple `(tx_position, txid)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.<br/> Results are limited to the last 30 days for Community users.
      operationId: getBlockchainV2ListOfTransactions
      tags:
      - List of blockchain entities v2
      parameters:
      - $ref: '#/components/parameters/BlockchainAsset'
      - $ref: '#/components/parameters/BlockchainTransactionIdsV2'
      - $ref: '#/components/parameters/BlockchainBlockHashesV2'
      - $ref: '#/components/parameters/StartTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/EndTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/StartHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/EndHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/BlockchainChainTypeV2'
      - $ref: '#/components/parameters/StartInclusiveAtlasV2'
      - $ref: '#/components/parameters/EndInclusiveAtlasV2'
      - $ref: '#/components/parameters/Timezone'
      - $ref: '#/components/parameters/PageSizeAtlasV2'
      - $ref: '#/components/parameters/PagingFrom'
      - $ref: '#/components/parameters/Pretty'
      - $ref: '#/components/parameters/NextPageToken'
      - $ref: '#/components/parameters/IgnoreUnsupportedErrors'
      x-codeSamples:
      - label: Shell
        source: '# Gets list of transactions for Ethereum classic

          curl --compressed "https://api.coinmetrics.io/v4/blockchain-v2/etc/transactions?start_time=2021-01-01&end_time=2021-01-02&pretty=true&api_key=<your_key>"

          '
      - label: Python
        source: '# Gets list of transactions for Ethereum classic

          import requests

          response = requests.get(''https://api.coinmetrics.io/v4/blockchain-v2/etc/transactions?start_time=2021-01-01&end_time=2021-01-02&pretty=true&api_key=<your_key>'').json()

          print(response)

          '
      - label: Python Client
        source: '# Gets list of transactions for Ethereum classic

          from coinmetrics.api_client import CoinMetricsClient

          client = CoinMetricsClient(<your_key>)


          response = client.get_list_of_transactions_v2(asset="etc", start_time="2021-01-01", end_time="2021-01-02").to_list()

          print(response)

          '
      responses:
        '200':
          $ref: '#/components/responses/BlockchainTransactionsV2'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BlockchainForbidden'
      security:
      - api_key: []
  /blockchain-v2/{asset}/balance-updates:
    servers:
    - url: https://api.coinmetrics.io/v4
    - url: https://community-api.coinmetrics.io/v4
    get:
      summary: List of balance updates
      description: Returns a list of blockchain accounts balance updates.<br/> Results are ordered by tuple `(chain_sequence_number, block_hash)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.<br/> Results are limited to the last 30 days for Community users.
      operationId: getBlockchainV2ListOfBalanceUpdates
      tags:
      - List of blockchain entities v2
      parameters:
      - $ref: '#/components/parameters/BlockchainAsset'
      - $ref: '#/components/parameters/BlockchainAccountsV2'
      - $ref: '#/components/parameters/BlockchainLimitPerAccountV2'
      - $ref: '#/components/parameters/BlockchainSubAccountsV2'
      - $ref: '#/components/parameters/BlockchainTransactionIdsV2'
      - $ref: '#/components/parameters/BlockchainBlockHashesV2'
      - $ref: '#/components/parameters/BlockchainDenominationsV2'
      - $ref: '#/components/parameters/StartTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/EndTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/StartHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/EndHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/BlockchainStartChainSequenceNumberV2'
      - $ref: '#/components/parameters/BlockchainEndChainSequenceNumberV2'
      - $ref: '#/components/parameters/BlockchainIncludeSubAccountsV2'
      - $ref: '#/components/parameters/BlockchainChainTypeV2'
      - $ref: '#/components/parameters/StartInclusiveAtlasV2'
      - $ref: '#/components/parameters/EndInclusiveAtlasV2'
      - $ref: '#/components/parameters/Timezone'
      - $ref: '#/components/parameters/PageSizeAtlasV2'
      - $ref: '#/components/parameters/PagingFrom'
      - $ref: '#/components/parameters/Pretty'
      - $ref: '#/components/parameters/NextPageToken'
      - $ref: '#/components/parameters/IgnoreUnsupportedErrors'
      x-codeSamples:
      - label: Shell
        source: '# Gets list of balance-updates for USDC

          curl --compressed "https://api.coinmetrics.io/v4/blockchain-v2/usdc/balance-updates?start_time=2021-01-01&end_time=2021-01-02&pretty=true&api_key=<your_key>"

          '
      - label: Python
        source: '# Gets list of balance-updates for USDC

          import requests

          response = requests.get(''https://api.coinmetrics.io/v4/blockchain-v2/usdc/balance-updates?start_time=2021-01-01&end_time=2021-01-02&pretty=true&api_key=<your_key>'').json()

          print(response)

          '
      - label: Python Client
        source: '# Gets list of balance-updates for USDC

          from coinmetrics.api_client import CoinMetricsClient

          client = CoinMetricsClient(<your_key>)


          response = client.get_list_of_balance_updates_v2(asset="usdc", start_time="2021-01-01", end_time="2021-01-02").to_list()

          print(response)

          '
      responses:
        '200':
          $ref: '#/components/responses/BlockchainBalanceUpdatesV2'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BlockchainForbidden'
      security:
      - api_key: []
  /blockchain-v2/{asset}/rebasing-changes:
    servers:
    - url: https://api.coinmetrics.io/v4
    - url: https://community-api.coinmetrics.io/v4
    get:
      summary: List of rebasing changes
      description: Returns a list of blockchain rebasing changes.<br/> Results are ordered by tuple `(chain_sequence_number, block_hash)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.<br/> Results are limited to the last 30 days for Community users.
      operationId: getBlockchainV2ListOfRebasingChanges
      tags:
      - List of blockchain entities v2
      parameters:
      - $ref: '#/components/parameters/BlockchainAsset'
      - $ref: '#/components/parameters/BlockchainTransactionIdsV2'
      - $ref: '#/components/parameters/BlockchainBlockHashesV2'
      - $ref: '#/components/parameters/StartTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/EndTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/StartHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/EndHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/BlockchainStartChainSequenceNumberV2'
      - $ref: '#/components/parameters/BlockchainEndChainSequenceNumberV2'
      - $ref: '#/components/parameters/BlockchainChainTypeV2'
      - $ref: '#/components/parameters/StartInclusiveAtlasV2'
      - $ref: '#/components/parameters/EndInclusiveAtlasV2'
      - $ref: '#/components/parameters/Timezone'
      - $ref: '#/components/parameters/PageSizeAtlasV2'
      - $ref: '#/components/parameters/PagingFrom'
      - $ref: '#/components/parameters/Pretty'
      - $ref: '#/components/parameters/NextPageToken'
      - $ref: '#/components/parameters/IgnoreUnsupportedErrors'
      x-codeSamples:
      - label: Shell
        source: '# Gets list of rebasing changes for STETH_ETH

          curl --compressed "https://api.coinmetrics.io/v4/blockchain-v2/steth_eth/rebasing-changes?start_time=2021-01-01&end_time=2021-01-02&pretty=true&api_key=<your_key>"

          '
      - label: Python
        source: '# Gets list of rebasing changes for STETH_ETH

          import requests

          response = requests.get(''https://api.coinmetrics.io/v4/blockchain-v2/steth_eth/rebasing-changes?start_time=2021-01-01&end_time=2021-01-02&pretty=true&api_key=<your_key>'').json()

          print(response)

          '
      - label: Python Client
        source: '# Gets list of rebasing changes for STETH_ETH

          from coinmetrics.api_client import CoinMetricsClient

          client = CoinMetricsClient(<your_key>)


          response = client.get_list_of_rebasing_changes_v2(asset="steth_eth", start_time="2021-01-01", end_time="2021-01-02").to_list()

          print(response)

          '
      responses:
        '200':
          $ref: '#/components/responses/BlockchainRebasingChangesV2'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BlockchainForbidden'
      security:
      - api_key: []
  /blockchain-v2/{asset}/accounts/{account}/balance-updates:
    servers:
    - url: https://api.coinmetrics.io/v4
    get:
      summary: List of balance updates for account
      description: Returns a list of blockchain balance updates for a specific account.<br/> Results are ordered by tuple `(chain_sequence_number, block_hash)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.
      operationId: getBlockchainV2ListOfBalanceUpdatesForAccount
      tags:
      - List of blockchain entities v2
      parameters:
      - $ref: '#/components/parameters/BlockchainAsset'
      - $ref: '#/components/parameters/BlockchainAccount'
      - $ref: '#/components/parameters/BlockchainTransactionIdsV2'
      - $ref: '#/components/parameters/BlockchainBlockHashesV2'
      - $ref: '#/components/parameters/BlockchainDenominationsV2'
      - $ref: '#/components/parameters/IncludeCounterpartiesV2'
      - $ref: '#/components/parameters/StartTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/EndTimeMutuallyExclusiveWithHeightAtlasV2'
      - $ref: '#/components/parameters/StartHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/EndHeightMutuallyExclusiveWithTimeAtlasV2'
      - $ref: '#/components/parameters/BlockchainStartChainSequenceNumberV2'
      - $ref: '#/components/parameters/BlockchainEndChainSequenceNumberV2'
      - $ref: '#/components/parameters/BlockchainIncludeSubAccountsV2'
      - $ref: '#/components/parameters/BlockchainChainTypeV2'
      - $ref: '#/components/parameters/StartInclusiveAtlasV2'
      - $ref: '#/components/parameters/EndInclusiveAtlasV2'
      - $ref: '#/components/parameters/Timezone'
      - $ref: '#/components/parameters/PageSizeAtlasV2'
      - $ref: '#/components/parameters/PagingFrom'
      - $ref: '#/components/parameters/Pretty'
      - $ref: '#/components/parameters/NextPageToken'
      - $ref: '#/components/parameters/IgnoreUnsupportedErrors'
      x-codeSamples:
      - label: Shell
        source: '# Gets list of balance-updates for a BTC account

          curl --compressed "https://api.coinmetrics.io/v4/blockchain-v2/btc/accounts/112jmDkNGHSbhhY17JGpxU3sMA9ZExG7b2/balance-updates?pretty=true&api_key=<your_key>"

          '
      - label: Python
        source: '# Gets list of balance-updates for a BTC account

          import requests

          response = requests.get(''https://api.coinmetrics.io/v4/blockchain-v2/btc/accounts/112jmDkNGHSbhhY17JGpxU3sMA9ZExG7b2/balance-updates?pretty=true&api_key=<your_key>'').json()

          print(response)

          '
      - label: Python Client
        source: '# Gets list of balance-updates for a BTC account

          from coinmetrics.api_client import CoinMetricsClient

          client = CoinMetricsClient(<your_key>)


          response = client.get_list_of_balance_updates_v2(asset="btc", account="112jmDkNGHSbhhY17JGpxU3sMA9ZExG7b2").to_list()

          print(response)

          '
      responses:
        '200':
          $ref: '#/components/responses/BlockchainBalanceUpdatesForAccountV2'
        '400':
          $ref: '#/components/responses/InvalidParameters'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BlockchainForbidden'
        '404':
          $ref: '#/components/responses/AccountNotFound'
      security:
      - api_key: []
components:
  schemas:
    BlockchainNumberOfDebits:
      description: Number of debits.
      type: string
      format: int64
    BlockchainDenomination:
      description: The denomination of the asset transacted. Only set if not the same as the asset being queried.
      type: string
    BlockchainBalanceUpdatesResponseV2:
      description: Blockchain balance updates response.
      properties:
        data:
          $ref: '#/components/schemas/BlockchainBalanceUpdatesV2'
        next_page_token:
          $ref: '#/components/schemas/NextPageToken'
        next_page_url:
          $ref: '#/components/schemas/NextPageUrl'
        warning:
          $ref: '#/components/schemas/WarningObject'
      required:
      - data
      type: object
    BlockchainAccountBalance:
      description: Balance of the account.
      type: string
      format: decimal
    BlockchainSubAccount:
      description: Sub-account id.
      type: string
    BlockchainRebasingChangesV2:
      type: array
      items:
        $ref: '#/components/schemas/BlockchainRebasingChangeV2'
    BlockchainTransactionVersion:
      description: Version of the transaction.
      type: string
    BlockchainBlockHash:
      description: Hash of the block.
      type: string
    BlockchainTransactionInfoV2:
      allOf:
      - $ref: '#/components/schemas/BlockchainBlockTransactionInfoV2'
      - type: object
        properties:
          block_hash:
            $ref: '#/components/schemas/BlockchainBlockHash'
          height:
            $ref: '#/components/schemas/BlockchainBlockHeight'
          version:
            $ref: '#/components/schemas/BlockchainTransactionVersion'
          physical_size:
            $ref: '#/components/schemas/BlockchainTransactionPhysicalSize'
          consensus_size:
            $ref: '#/components/schemas/BlockchainTransactionConsensusSize'
          fee:
            $ref: '#/components/schemas/BlockchainTransactionFee'
          stale:
            $ref: '#/components/schemas/BlockchainStaleBlock'
        required:
        - block_hash
        - height
    Time:
      description: The time in ISO 8601 date-time format. Always with nanoseconds precision.
      type: string
      format: date-time
    BlockchainTransactionConsensusSize:
      description: Consensus size of the transaction.
      type: string
      format: decimal
    BlockchainNumberOfCredits:
      description: Number of credits.
      type: string
      format: int64
    BlockchainBlockVersion:
      description: Version of the block.
      type: string
    BlockchainAccountType:
      description: 'Account type. The possible values are: `UTXO`, `VIRTUAL`, `ACCOUNT`.'
      type: string
    BlockchainTransactionPosition:
      description: Transaction position.
      type: string
      format: int64
    BlockchainBalanceChange:
      description: Balance change.
      type: string
      format: decimal
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
      required:
      - error
      type: object
    BlockchainNumberOfBalanceUpdates:
      description: Number of balance updates.
      type: string
      format: int64
    BlockchainRebasingNumerator:
      description: This field represents the numerator of the rebasing coefficient at the time of the update. This value is omitted from responses if equal to the default value of '1'.
      type: string
      format: decimal
    BlockchainTotalSent:
      description: Total amount sent.
      type: string
      format: decimal
    BlockchainNumberOfTransactions:
      description: Number of transactions.
      type: string
      format: int64
    BlockchainAccount:
      description: Account id.
      type: string
    BlockchainRebasingChangesResponseV2:
      description: Blockchain rebasing changes response.
      properties:
        data:
          $ref: '#/components/schemas/BlockchainRebasingChangesV2'
        next_page_token:
          $ref: '#/components/schemas/NextPageToken'
        next_page_url:
          $ref: '#/components/schemas/NextPageUrl'
        warning:
          $ref: '#/components/schemas/WarningObject'
      required:
      - data
      type: object
    BlockchainRebasingRoundingMode:
      description: 'This field represents the rounding mode used when converting tokens to shares using the rebasing coefficient at the time of the update. The possible values are: `UP`, `DOWN`, `HALF_UP`. This value is omitted from responses if equal to the default value of `DOWN`.'
      type: string
    ErrorObject:
      properties:
        type:
          description: Error type string. Can be used for error identification.
          type: string
        message:
          description: Human-friendly error description. Can be amended without prior notification. Do not use for error identification in your code.
          type: string
      required:
      - type
      - description
      type: object
    BlockchainTransactionsResponseV2:
      description: Blockchain transactions response.
      properties:
        data:
          items:
            $ref: '#/components/schemas/BlockchainTransactionInfoV2'
        next_page_token:
          $ref: '#/components/schemas/NextPageToken'
        next_page_url:
          $ref: '#/components/schemas/NextPageUrl'
        warning:
          $ref: '#/components/schemas/WarningObject'
      required:
      - data
      type: object
    BlockchainTransactionSequenceNumber:
      description: It is used to order balance updates inside a single transaction to distinguish between serial and parallel balance updates.
      type: string
      format: int64
    BlockchainBlockExtraData:
      description: Extra data of the block, hex-encoded.
      type: string
    BlockchainBlockDifficulty:
      description: Difficulty of the block.
      type: string
      format: decimal
    BlockchainTotalReceived:
      description: Total amount received.
      type: string
      format: decimal
    BlockchainBlockNonce:
      description: Nonce of the block, hex-encoded.
      type: string
    NextPageToken:
      description: Token of the next page results for a given request.
      type: string
    BlockchainBlockInfoV2:
      properties:
        block_hash:
          $ref: '#/components/schemas/BlockchainBlockHash'
        parent_block_hash:
          $ref: '#/components/schemas/BlockchainBlockHash'
        height:
          $ref: '#/components/schemas/BlockchainBlockHeight'
        consensus_time:
          $ref: '#/components/schemas/Time'
        miner_time:
          $ref: '#/components/schemas/Time'
        nonce:
          $ref: '#/components/schemas/BlockchainBlockNonce'
        extra_data:
          $ref: '#/components/schemas/BlockchainBlockExtraData'
        n_transactions:
          $ref: '#/components/schemas/BlockchainNumberOfTransactions'
        n_balance_updates:
          $ref: '#/components/schemas/BlockchainNumberOfBalanceUpdates'
        version:
          $ref: '#/components/schemas/BlockchainBlockVersion'
        difficulty:
          $ref: '#/components/schemas/BlockchainBlockDifficulty'
        physical_size:
          $ref: '#/components/schemas/BlockchainBlockPhysicalSize'
        consensus_size:
          $ref: '#/components/schemas/BlockchainBlockConsensusSize'
        consensus_size_limit:
          $ref: '#/components/schemas/BlockchainBlockConsensusSizeLimit'
        stale:
          $ref: '#/components/schemas/BlockchainStaleBlock'
      required:
      - block_hash
      - height
      - consensus_time
      - export_time
      - miner_time
      - n_transactions
      - n_balance_updates
    BlockchainSubAccountBalance:
      description: Sub-account latest balance.
      type: string
      format: decimal
    BlockchainBalanceUpdatesV2:
      type: array
      items:
        $ref: '#/components/schemas/BlockchainBalanceUpdateV2'
    BlockchainRebasingChangeV2:
      properties:
        chain_sequence_number:
          $ref: '#/components/schemas/BlockchainChainSequenceNumber'
        block_hash:
          $ref: '#/components/schemas/BlockchainBlockHash'
        height:
          $ref: '#/components/schemas/BlockchainBlockHeight'
        consensus_time:
          $ref: '#/components/schemas/Time'
        txid:
          $ref: '#/components/schemas/BlockchainTransactionId'
        transaction_sequence_number:
          $ref: '#/components/schemas/BlockchainTransactionSequenceNumber'
        previous_rebasing_numerator:
          $ref: '#/components/schemas/BlockchainRebasingNumerator'
        previous_rebasing_denominator:
          $ref: '#/components/schemas/BlockchainRebasingDenominator'
        previous_rebasing_rounding_mode:
          $ref: '#/components/schemas/BlockchainRebasingRoundingMode'
        new_rebasing_numerator:
          $ref: '#/components/schemas/BlockchainRebasingNumerator'
        new_rebasing_denominator:
          $ref: '#/components/schemas/BlockchainRebasingDenominator'
        new_rebasing_rounding_mode:
          $ref: '#/components/schemas/BlockchainRebasingRoundingMode'
        stale:
          $ref: '#/components/schemas/BlockchainStaleBlock'
      required:
      - chain_sequence_number
      - block_hash
      - height
      - consensus_time
      - previous_rebasing_numerator
      - previous_rebasing_denominator
      - previous_rebasing_rounding_mode
      - new_rebasing_numerator
      - new_rebasing_denominator
      - new_rebasing_rounding_mode
    BlockchainBalanceUpdateCredit:
      description: Boolean indicating whether the update is a credit or a debit of the account.
      type: boolean
    BlockchainTransactionFee:
      description: Fee of the transaction.
      type: string
      format: decimal
    BlockchainBlockConsensusSize:
      description: Consensus size of the block.
      type: string
      

# --- truncated at 32 KB (69 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/coin-metrics/refs/heads/main/openapi/coin-metrics-list-of-blockchain-entities-v2-api-openapi.yml