grandpa_proveFinality
Obtain finality evidence for a block number and return the set's final block's reasoning.
Example Request and Result for grandpa_proveFinality method
In this section, we provide an illustrative example of a request made to retrieve details contents using the grandpa_proveFinality
method. Additionally, we present the resulting response containing information about the finality evidence for a block number.
Parameters
Fields | Type | Description |
---|---|---|
blocknumber* | string | The block number for which you want to retrieve the finality proof |
info
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!
Retrieves the finality evidence for a block number
POST
https://vara-mainnet.blastapi.io/<project-id>
Request Body
Name | Type | Description |
---|---|---|
blockhash* | string | 234322 |
- 200: OK Expand for a detailed response example
{
"jsonrpc": "2.0",
"result": "0x4b6f9beaa6698c8e63bb4d34d1a6cfc50478be7a1d87d0b42f2ea1456106deb2591539760000000000004b6f9beaa6698c8e63bb4d34d1a6cfc50478be7a1d87d0b42f2ea1456106deb235a60300284b6f9beaa6698c8e63bb4d34d1
...
e52b0cf0969ebf131b7a786bbc6e2146064b62ea2e7cbf8e8de8e61514a25b6626cf0fbddf296323ac3f45031857848959fa83",
"id": 1
}
Curl Request example
curl --location 'https://vara-mainnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "grandpa_proveFinality",
"params":[234322]
}'