View Balance Changes
For an incoming deposit, identify the successful finalized receiving receipt and use its outcome’sblock_hash; the transaction-inclusion block may be different. Query changes for the exchange receiver, not the original signer.
For general reconciliation, select one finalized block hash and query all relevant accounts and token contracts at that checkpoint. Inspect change causes; fees, outgoing transfers, and refunds also change balances.
The example below queries the receiving receipt of this finalized testnet transaction from influencer.testnet. It transfers 2 NEAR to linkdrop.primitives.testnet. The returned amount is the receiver’s total balance after the transfer, in yoctoNEAR. The receipt_hash identifies the receipt that caused the update.
Example Query using HTTPie:
Balance Snapshot
Alternatively, queryview_account for a balance snapshot. Use the same finalized block hash for reconciliation.
Example HTTPie Request:
Frequently Asked Questions
Which balance look-ups exist? What is required?
Which balance look-ups exist? What is required?
We have an RPC method for viewing account.The JS implementation is here. Note that in this RPC interface you can specify the finality requirement (whether to query the latest state or finalized state).For custody purposes, query finalized state.