Primary Network Blocks
Get block
Gets a block by block height or block hash on one of the Primary Network chains.
get/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}
Request
- Base URL: https://data-api.avax.network
- URL: https://data-api.avax.network/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}
- Auth: one of:
- API key in header x-glacier-api-key
- none
Path parameters
blockchainId'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain' required
A primary network blockchain id or alias.
network'mainnet' | 'fuji' | 'testnet' required
Either mainnet or testnet/fuji.
blockIdstring required
A block identifier which is either a block number or the block hash.
Response
Successful response
Changes
No recorded changes to this operation across all 3 revisions of this API.