v1

latestOpenAPI 3.1.02026-07-24223580832.9 KB
Blocks

Get a Block by Number or Hash

Get a block and all its transactions by a user-defined block number or block hash.

Use -1 or current parameter to return the current block.

get/{protocol}/{network}/block/{block_identifier}

Path parameters

protocolstring required

Protocol handle, one of: algorand, avalanche, bitcoin, bitcoincash, dogecoin, ethereum, litecoin, near, optimism, polkadot, polygon, solana, stellar, tezos, xrp.

networkstring required

Which network to target. Available networks can be found in the list of supported protocols or with /{protocol}.

block_identifierstring required

The block identifier, hash or number.

Response

Block

numberinteger

The block number.

idstring

The block hash.

parent_idstring

The parent block hash.

dateinteger

The block date in unix timestamp format.

num_txsinteger

The amount of transaction in the block.

Example response

{
  "number": 8000000,
  "id": "0x123456070D674D44a7F9cb4Ab272bd88fAd004b5",
  "parent_id": "0xfcf029ffd36a6714aae09dcc7acbdd8f2b96327f",
  "date": 1571222657,
  "num_txs": 10,
  "txs": [
    {
      "id": "0xF00Fa860473130C1df10707223E66Cb4B839B165",
      "block_id": "0xaf2948aba2ed8cc7d5b7d4e4f4164a7c8819efc94d30aab3fce6904df68dbc07",
      "date": 1571222657,
      "block_number": 789387,
      "events": [
        {
          "type": "transfer",
          "destination": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
          "amount": 5000000000
        }
      ],
      "assets": [
        "ethereum/native/eth"
      ]
    }
  ]
}