Docs

eth_getBalance - XDC Network RPC Method

Query account balance on XDC Network. Essential for wallet applications and tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization on the enterprise-grade blockchain for trade finance with 2-second finality and ISO 20022 compliance.

Returns the balance of a given address on XDC Network.

Why XDC Network? Build on the enterprise-grade blockchain for trade finance with 2-second finality and ISO 20022 compliance with ISO 20022 messaging, ITFA membership, Contour Network acquisition, 801M+ transactions, and partnerships with Circle and Deutsche Telekom.

Use Cases

The eth_getBalance method is essential for:

  • Wallet applications - Display user balances
  • Transaction validation - Check if account has sufficient funds
  • DeFi applications - Monitor collateral and liquidity for tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization
  • Account monitoring - Track balance changes over time

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid address format or block parameter
-32000Execution errorNode execution error