Skip to main content
Returns the balance of the account of given address. This method will use 40 Compute Units.
World Chain Mainnet keeps state for the last 10,064 blocks, about 5.6 hours at World Chain’s 2-second block time. Requests for an older block return JSON-RPC error -32603 with a message that contains insufficient changesets to revert to block.

Reference: Here

Parameters

  1. DATA, 20 Bytes - address to check for balance.
  2. QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter

Returns

QUANTITY - hexadecimal value of the current balance in wei.