Skip to main content

EXPERIMENTAL_changes_in_block RPC Method

Returns changes in the block for a specified block height or hash.

Updated on
Oct 4, 2023

EXPERIMENTAL_changes_in_block RPC Method

Parameters

finality
string
The assurance that the transaction cannot be altered, reversed, or canceled after they are completed. For finality=final, it means that it has been validated on at least 66% of the nodes in the network and for finality=optimistic, it uses the latest block recorded on the node that responded to the query passed
block_id
integer/string
The block id, it could be either block number or block hash

Returns

block_hash
The hash of the block this transaction was associated with
changes
An array of changes that occurred in the account during the transaction
type
The type of changes occurred in the account. It could be account_touched, contract_code_touched, access_key_touched
account_id
The identifier for the account
Request
1
curl https://docs-demo.near-mainnet.quiknode.pro/ \
2
--request POST \
3
--header "Content-Type: application/json" \
4
--data '{"method": "EXPERIMENTAL_changes_in_block","params": {"finality": "final"},"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free