cURL
curl --request POST \
--url https://api.example.com/block_effects \
--header 'Content-Type: application/json' \
--data '
{
"method": "block_effects",
"params": {
"block_id": 1
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({method: 'block_effects', params: {block_id: 1}, id: 'dontcare', jsonrpc: '2.0'})
};
fetch('https://api.example.com/block_effects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/block_effects"
payload = {
"method": "block_effects",
"params": { "block_id": 1 },
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": {
"block_hash": "<string>",
"changes": [
{
"account_id": "<string>",
"type": "account_touched"
}
]
},
"id": "<string>",
"jsonrpc": "<string>"
}Post block effects
Returns changes in block for given block height or hash over all transactions for all the types. Includes changes like account_touched, access_key_touched, data_touched, contract_code_touched.
POST
/
block_effects
cURL
curl --request POST \
--url https://api.example.com/block_effects \
--header 'Content-Type: application/json' \
--data '
{
"method": "block_effects",
"params": {
"block_id": 1
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({method: 'block_effects', params: {block_id: 1}, id: 'dontcare', jsonrpc: '2.0'})
};
fetch('https://api.example.com/block_effects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/block_effects"
payload = {
"method": "block_effects",
"params": { "block_id": 1 },
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": {
"block_hash": "<string>",
"changes": [
{
"account_id": "<string>",
"type": "account_touched"
}
]
},
"id": "<string>",
"jsonrpc": "<string>"
}Body
application/json
Available options:
block_effects - RpcStateChangesInBlockRequest
- RpcStateChangesInBlockRequest
- RpcStateChangesInBlockRequest
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?