Blocks
Block data is temporarily a subset of raw block data to be compatibile across EVMs. This will be updated with the introduction of new cross chain features.
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/blocks?chains=ETH&from_block=-10&to_block=latest" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
[
{
"chain": 1,
"block_number": "0x11ab844",
"hash": "0x3ea0b2174473f51f0717558b60eee525e3d86c7e18c4629471216d1be426bd24",
"parent_hash": "0x0dc8dfa2d594609a23bd827f575800e2590a821438265e72ffbd90645955093d",
"uncles_hash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"miner": "0xd4e96ef8eee8678dbff4d535e033ed1a4f7605b7",
"state_root": "0x42c3d9e1ede9b60868e14a2c94f7efdb944300f4334e97df202021906ac10051",
"transactions_root": "0x6345382e6ffc3dd3c06c10cb4ea27c11b7688e5e9822f61ab689346527a0ec59",
"receipts_root": "0x2595395bea8c8ed24feb024e3eeb5bfc0e11a1ebadb52750c606931021ad14cd",
"gas_used": "0xb86e9c",
"gas_limit": "0x1c9c380",
"base_fee_per_gas": "0xd3e73dac0",
"extra_data": "0x546974616e2028746974616e6275696c6465722e78797a29",
"logs_bloom": "0x48a720c26dac628c2cd822a0823ade6420040b298ea51b74c109611606155920228a90cdc12e856e4a7b1f624a4a6da16281b00ef84ab6080636d8ab0468410ac4cf547908288c4d6808487de524a0a5023b0843c37e08440141c1c8886018f8124030949212000705025f20d5a3ae112d160061088c5608e6aa4e92d27a21c609408152a31263480ff1a2132ba48613100045894970b038200a004126f69721aa343f70982062e41e0511b41c1024063fd64509a0b1811a9a228c02451827416114a25705890d14a452fd02003718cc50e36a40340825ba00a4434388423250ad5632d805b4029b482c160e88dda882560bfd48818c6fe8220c142927434603",
"timestamp": 1699459631,
"difficulty": "0x0",
"total_difficulty": "0xc70d815d562d3cfa955",
"size": "0x238e9",
"mix_hash": "0x8bd7a76a9ab203c551b6f4627b79179d046d4440d28f639a27ae724c4115a952",
"nonce": "0x0000000000000000"
},
...
]
Query Parameters
v1/api/blocks
chains
: This parameter is used to filter the data by specific blockchain networks.from_block
: This parameter is used to filter the data by a starting block number.to_block
: This parameter is used to filter the data by an ending block number.