Skip to main content

Get a block by block number or block hash on any supported network

GET 

/:network/chain/block

Get a block by block number or block hash on any supported network

Request

Path Parameters

    network stringrequired

    Blockchain network name or chain id

Query Parameters

    block_height number

    Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.

    date string

    Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.

    currency string

    The currency used for the conversion.

    block_hash string

    The block hash for which the block data is requested.

Responses

The block details.

Schema

  • Array [

  • network_name stringrequired

    Blockchain network name For the requested query

    chain_id numberrequired

    The chain ID of the network.

    block

    object

    required

    block_hash stringrequired

    The hash of the block.

    signed_at date-timerequired

    The block signed time in ISO format.

    signed_at_timestamp numberrequired

    The block signed timestamp (in seconds since epoch).

    block_height numberrequired

    The block height (block number).

    block_parent_hash stringrequired

    The hash of the parent block.

    extra_data stringrequired

    The extra data attached to the block.

    miner_address stringrequired

    The address of the miner who produced the block.

    gas_used numberrequired

    The total amount of gas used in the block.

    gas_limit numberrequired

    The gas limit of the block.

    transaction_count numberrequired

    The number of transactions in the block.

    transaction_hashes string[]

    The hashes of each transaction in the block.

    transactions_link stringrequired

    The link to the transactions in the block.

    block_valuation string

    The cost of the block gas in USD.

    block_valuation_currency string

    The currency of the block valuation.

  • ]

Loading...