chain_getBlock
Retrieve a relay chain block's header and body components.
An crucial RPC call for getting comprehensive details about a particular block in the relay chain is chain_getBlock. This function takes a block hash as input and outputs a complete set of information about the block that is specified, including information about both the block's header and body.
Example Request and Result for chain_getBlock method
In this section, we provide an illustrative example of a request made to retrieve details contents using the chain_getBlock
method. Additionally, we present the resulting response containing information about the header and the body of a relay chain block.
Parameters
Field | Type | Description |
---|---|---|
blockhash* | string | The hash of the block where this transaction was in |
The example in this section uses a non-existing project id.
Make sure you replace it with your Vara Mainnet endpoint when issuing the API calls.
Don't have a project id? Here's a straightforward guide on how to obtain one!
Retrieve a relay chain block's header and body components.
POST
https://vara-mainnet.blastapi.io/<project-id>
Request Body
Name | Type | Description |
---|---|---|
blockhash* | string | 0xf9bb4bcd70b0188c940ed73de2499d0273d987ea8286cfc6324fefb67559ce63 |
Curl Request example
Last updated