Obtain block data for the latest or specific block, along with the range of blocks
Get Single Latest Block
The Get Single Latest Block endpoint returns data for the last block mined on the specified chain. This request pulls out the latest block on the Ethereum mainnet. Be 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
The Get Single Block endpoint retrieves data for a particular block by its hash on the specified chain. The request below extracts the block with the specified block hash on the Ethereum mainnet. Be 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
The Get Block Range endpoint fetches data for the blocks within the specified range. The following request pulls out data for the blocks within the specified range on the Ethereum mainnet. Be 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'