POSTaccount_changes
https://near-mainnet.nodit.io/Returns, per block, the account info changes of the given accounts. Each item holds the account state after the change (balance, locked amount, storage usage, code hash) and the cause of the change.
Call the changes method with changes_type: "account_changes". If an account changes several times in one block, there is one item per change. If nothing changed, changes is an empty array. If the block cannot be found, the UNKNOWN_BLOCK error is returned. EXPERIMENTAL_changes is the former name of this method.
Request ID. Any string; it is returned unchanged in the response.
Change query type. Fixed to account_changes.
Specifies the block finality. Cannot be used together with block_id.
optimistic: the latest block the node has received (may be reorganized)near-final: a Doomslug-final block (not reverted in most cases)final: a fully finalized block
Specifies the block to query by block height (integer) or block hash (base58 string).
Cannot be used together with finality.
Account IDs to get changes for
JSON-RPC version
Request ID
Hash of the queried block (base58)
List of account changes
Cause of the change
Cause type
transaction_processing: transaction processing (includestx_hash)receipt_processing: receipt processing (includesreceipt_hash)action_receipt_processing_started: action receipt processing started (includesreceipt_hash)action_receipt_gas_reward: gas reward paid for receipt execution (includesreceipt_hash)postponed_receipt: receipt postponed while waiting for data (includesreceipt_hash)updated_delayed_receipts: delayed receipt queue updatedvalidator_accounts_update: validator accounts updated at an epoch changemigration: protocol migrationinitial_state: genesis initial statenot_writable_to_disk: change that is not written to diskbandwidth_scheduler_state_update: bandwidth scheduler state updated
Hash of the causing transaction. Present only when type is transaction_processing. (base58)
Hash of the causing receipt. Present only for receipt-related causes. (base58)
Change type
account_update: account info changedaccount_deletion: account deleted
Account state after the change. For account_deletion, only account_id is present.
Account ID
Available balance (yoctoNEAR, decimal string)
Amount locked for staking (yoctoNEAR, decimal string)
Hash of the deployed contract code (base58). 11111111111111111111111111111111 when no contract is deployed.
Storage used by the account (bytes)
Deprecated field; always 0.
Code hash of the global contract referenced by hash, if used. Present only when applicable.
Account ID of the global contract referenced by account ID, if used. Present only when applicable.
Error class. REQUEST_VALIDATION_ERROR (invalid request), HANDLER_ERROR (processing error), INTERNAL_ERROR (node internal error)
The specific cause of the error.
Name of the error cause (e.g. UNKNOWN_BLOCK, UNKNOWN_ACCOUNT, PARSE_ERROR)
Additional information about the error (block hash, height, account ID, etc.)
Legacy JSON-RPC error code (e.g. -32000 server error, -32700 parse error, -32601 method not found)
Legacy error message
Legacy error details