Blocks API provides block data for the latest block, the specified block, or the range of blocks.

Get Single Latest Block

Get Single Latest Block endpoint returns the data for the last block that was mined on the specified chain.

This request will pull the latest block on Ethereum mainchain. Make sure to replace YOUR_API_KEY with your actual API key.

curl --request GET \
     --url 'https://api.parsiq.net/tsunami/eip155-1/v1/blocks/latest' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer YOUR_API_KEY'

Get Single Block

Get Single Block endpoint returns the data for the specified block on the specified chain. The block is specified by block hash.

This request will pull the block with the specified block hash on Ethereum mainchain. Make sure to replace YOUR_API_KEY with your actual API key.

curl --request GET \
     --url 'https://api.parsiq.net/tsunami/eip155-1/v1/blocks/0xf49fc4f591656e025ae479eb3f251d5db89e66b01cfa28f036f40910e272aaeb' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer YOUR_API_KEY'

Get Block Range

Get Block Range endpoint returns the data for the blocks within the specified range.

This request will pull the data for the blocks within the specified range on Ethereum mainchain. Make sure to replace YOUR_API_KEY with your actual API key.

curl --request GET \
     --url 'https://api.parsiq.net/tsunami/eip155-1/v1/blocks?block_number_start=-10000&block_number_end=latest&limit=100' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer YOUR_API_KEY'