cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_changes \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_changes",
"params": {
"block_id": 1,
"account_ids": [
"<string>"
],
"changes_type": "account_changes"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_changes',
params: {block_id: 1, account_ids: ['<string>'], changes_type: 'account_changes'},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_changes"
payload = {
"method": "EXPERIMENTAL_changes",
"params": {
"block_id": 1,
"account_ids": ["<string>"],
"changes_type": "account_changes"
},
"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": [
{
"change": {
"account_id": "<string>",
"amount": "<string>",
"code_hash": "<string>",
"locked": "<string>",
"storage_usage": 1,
"global_contract_account_id": "<string>",
"global_contract_hash": "<string>",
"storage_paid_at": 0
},
"type": "account_update",
"cause": {
"type": "not_writable_to_disk"
}
}
]
},
"id": "<string>",
"jsonrpc": "<string>"
}Post experimental changes
[Deprecated] Returns changes for a given account, contract or contract code for given block height or hash. Consider using changes instead.
POST
/
EXPERIMENTAL_changes
cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_changes \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_changes",
"params": {
"block_id": 1,
"account_ids": [
"<string>"
],
"changes_type": "account_changes"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_changes',
params: {block_id: 1, account_ids: ['<string>'], changes_type: 'account_changes'},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_changes"
payload = {
"method": "EXPERIMENTAL_changes",
"params": {
"block_id": 1,
"account_ids": ["<string>"],
"changes_type": "account_changes"
},
"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": [
{
"change": {
"account_id": "<string>",
"amount": "<string>",
"code_hash": "<string>",
"locked": "<string>",
"storage_usage": 1,
"global_contract_account_id": "<string>",
"global_contract_hash": "<string>",
"storage_paid_at": 0
},
"type": "account_update",
"cause": {
"type": "not_writable_to_disk"
}
}
]
},
"id": "<string>",
"jsonrpc": "<string>"
}Body
application/json
Available options:
EXPERIMENTAL_changes It is a serializable view of StateChangesRequest.
- account_changes_by_block_id
- single_access_key_changes_by_block_id
- all_access_key_changes_by_block_id
- contract_code_changes_by_block_id
- data_changes_by_block_id
- account_changes_by_finality
- single_access_key_changes_by_finality
- all_access_key_changes_by_finality
- contract_code_changes_by_finality
- data_changes_by_finality
- account_changes_by_sync_checkpoint
- single_access_key_changes_by_sync_checkpoint
- all_access_key_changes_by_sync_checkpoint
- contract_code_changes_by_sync_checkpoint
- data_changes_by_sync_checkpoint
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?