getshardblockproof - TON
Example code for the getshardblockproof JSON-RPC method. Сomplete guide on how to use getshardblockproof JSON-RPC in GetBlock.io Web3 documentation.
Parameters
Parameter
Type
Required
Description
Request Example
curl --location --request GET 'https://go.getblock.io/<ACCESS-TOKEN>/getShardBlockProof?workchain=0&shard=8000000000000000&seqno=12345678' \
--header 'Content-Type: application/json'curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "getShardBlockProof",
"params": {
"workchain": 0,
"shard": "8000000000000000",
"seqno": 12345678
},
"id": "getblock.io"
}'import axios from 'axios';
const data = JSON.stringify({
"jsonrpc": "2.0",
"method": "getShardBlockProof",
"params": {
"workchain": 0,
"shard": "8000000000000000",
"seqno": 12345678
},
"id": "getblock.io"
});
const config = {
method: 'post',
url: 'https://go.getblock.io/<ACCESS-TOKEN>/',
headers: {
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data, null, 2)))
.catch(error => console.log(error));Response Example
Response Parameters
Field
Type
Description
Use Cases
Error Handling
Status Code
Error Message
Cause
SDK Integration
Last updated
Was this helpful?