cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_light_client_proof \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_light_client_proof",
"params": {
"sender_id": "<string>",
"transaction_hash": "<string>",
"type": "transaction",
"light_client_head": "<string>"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_light_client_proof',
params: {
sender_id: '<string>',
transaction_hash: '<string>',
type: 'transaction',
light_client_head: '<string>'
},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_light_client_proof', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_light_client_proof"
payload = {
"method": "EXPERIMENTAL_light_client_proof",
"params": {
"sender_id": "<string>",
"transaction_hash": "<string>",
"type": "transaction",
"light_client_head": "<string>"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": {
"block_header_lite": {
"inner_lite": {
"block_merkle_root": "<string>",
"epoch_id": "<string>",
"height": 1,
"next_bp_hash": "<string>",
"next_epoch_id": "<string>",
"outcome_root": "<string>",
"prev_state_root": "<string>",
"timestamp": 1,
"timestamp_nanosec": "<string>"
},
"inner_rest_hash": "<string>",
"prev_block_hash": "<string>"
},
"block_proof": [
{
"hash": "<string>"
}
],
"outcome_proof": {
"block_hash": "<string>",
"id": "<string>",
"outcome": {
"executor_id": "<string>",
"gas_burnt": 1,
"logs": [
"<string>"
],
"receipt_ids": [
"<string>"
],
"status": "Unknown",
"tokens_burnt": "<string>",
"metadata": {
"version": 1
}
},
"proof": [
{
"hash": "<string>"
}
]
},
"outcome_root_proof": [
{
"hash": "<string>"
}
]
},
"id": "<string>",
"jsonrpc": "<string>"
}Post experimental light client proof
Returns the proofs for a transaction execution.
POST
/
EXPERIMENTAL_light_client_proof
cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_light_client_proof \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_light_client_proof",
"params": {
"sender_id": "<string>",
"transaction_hash": "<string>",
"type": "transaction",
"light_client_head": "<string>"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_light_client_proof',
params: {
sender_id: '<string>',
transaction_hash: '<string>',
type: 'transaction',
light_client_head: '<string>'
},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_light_client_proof', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_light_client_proof"
payload = {
"method": "EXPERIMENTAL_light_client_proof",
"params": {
"sender_id": "<string>",
"transaction_hash": "<string>",
"type": "transaction",
"light_client_head": "<string>"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": {
"block_header_lite": {
"inner_lite": {
"block_merkle_root": "<string>",
"epoch_id": "<string>",
"height": 1,
"next_bp_hash": "<string>",
"next_epoch_id": "<string>",
"outcome_root": "<string>",
"prev_state_root": "<string>",
"timestamp": 1,
"timestamp_nanosec": "<string>"
},
"inner_rest_hash": "<string>",
"prev_block_hash": "<string>"
},
"block_proof": [
{
"hash": "<string>"
}
],
"outcome_proof": {
"block_hash": "<string>",
"id": "<string>",
"outcome": {
"executor_id": "<string>",
"gas_burnt": 1,
"logs": [
"<string>"
],
"receipt_ids": [
"<string>"
],
"status": "Unknown",
"tokens_burnt": "<string>",
"metadata": {
"version": 1
}
},
"proof": [
{
"hash": "<string>"
}
]
},
"outcome_root_proof": [
{
"hash": "<string>"
}
]
},
"id": "<string>",
"jsonrpc": "<string>"
}Body
application/json
Available options:
EXPERIMENTAL_light_client_proof - RpcLightClientExecutionProofRequest
- RpcLightClientExecutionProofRequest
Show child attributes
Show child attributes
JSON-RPC request id. Auto-populated; can be any string.
JSON-RPC protocol version. Always 2.0.
Available options:
2.0 Was this page helpful?
⌘I