Get a Block Identifier
| Protocol | Network | Path Parameter | Get Block By |
|---|---|---|---|
| Algorand | Mainnet | algorand/mainnet |
block number |
| Avalanche | Mainnet | avalanche/mainnet-c |
block number or hash |
| Testnet | avalanche/testnet-c |
||
| Bitcoin | Mainnet | bitcoin/mainnet |
block number or hash |
| Testnet | bitcoin/testnet |
||
| Testnet4 | bitcoin/testnet4 |
||
| Bitcoincash | Mainnet | bitcoincash/mainnet |
block number or hash |
| Testnet | bitcoincash/testnet |
||
| Dogecoin | Mainnet | dogecoin/mainnet |
block number or hash |
| Testnet | dogecoin/testnet |
||
| Ethereum | Mainnet | ethereum/mainnet |
block number or hash |
| Sepolia | ethereum/sepolia |
||
| Hoodi | ethereum/hoodi |
||
| Litecoin | Mainnet | litecoin/mainnet |
block number or hash |
| Testnet | litecoin/testnet |
||
| Near | Mainnet | near/mainnet |
block number |
| Optimism | Mainnet | optimism/mainnet |
block number or hash |
| Polkadot | Mainnet | polkadot/mainnet |
block number or hash |
| Westend | polkadot/westend |
||
| Polygon | Mainnet | polygon/mainnet |
block number or hash |
| Amoy | polygon/amoy |
||
| Solana | Mainnet | solana/mainnet |
block number |
| Testnet | solana/testnet |
||
| Devnet | solana/devnet |
||
| Stellar | Mainnet | stellar/mainnet |
block number |
| Testnet | stellar/testnet |
||
| XRP | Mainnet | xrp/mainnet |
block number or hash |
| Testnet | xrp/testnet |
API Specifications
protocol
Type: string
Required: Yes
Default: bitcoin
Options: algorand, avalanche, bitcoin, bitcoincash, dogecoin, ethereum, litecoin, near, optimism, polkadot, polygon, solana, stellar, tezos, xrp
network
Type: string
Required: Yes
Default: mainnet
Details: Which network to target. Available networks can be found in the above list or with /{protocol}.
block_identifier
Type: string
Required: Yes
Default: 0000000000000000000590fc0f3eba193a278534220b2b37e9849e1a770ca959
Details: The block identifier, hash or number.
Response Codes
200Block400Invalid Block hash401Invalid or expired token404Not Found429Rate limit exceeded500An internal server error happened503The resource you are trying to access is currently unavailable
Example cURL Command
curl --request GET \
--url https://svc.blockdaemon.com/universal/v1/bitcoin/mainnet/block_identifier/0000000000000000000590fc0f3eba193a278534220b2b37e9849e1a770ca959 \
--header 'X-API-Key: ••••' \
--header 'accept: application/json'
The Base URL for requests is:
https://svc.blockdaemon.com/universal/v1/{protocol}/{network}/block_identifier/{block_identifier}