chain_getHead
Get hash of the n-th block in the canon chain. By default returns latest block hash.
chain_getHead method has an alias named chain_getBlockHash
Example Request and Result for chain_getHead method
In this section, we provide an illustrative example of a request made to retrieve details contents using the chain_getHead
method. Additionally, we present the resulting response containing information about the n-th block in the canon chain.
Parameters
Fields | Type | Description |
---|---|---|
blocknumber | string | The value indicating the βn-thβ block in the chain |
One of the following parameter types is allowed:
HEX
- (OPTIONAL) The value indicating the βn-thβ block in the chain.U32
- (OPTIONAL) The value indicating the βn-thβ block in the chain.ARRAY
- (OPTIONAL) Multiple values, where each value can be one of the following types:HEX
- The value indicating the βn-thβ block in the chain.U32
- The value indicating the βn-thβ block in the chain.
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!
Get hash of the n-th block in the canon chain. By default returns latest block hash.
POST
https://vara-mainnet.blastapi.io/<project-id>
Request Body
Name | Type | Description |
---|---|---|
blocknumber* | string | 0x994f28 |
Curl Request example
Last updated