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 Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid address format or block parameter |
| -32000 | Execution error | Node execution error |
Related Methods
eth_getCode- Get contract bytecodeeth_getTransactionCount- Get account nonce
eth_getBlockReceipts
Return every transaction receipt in a block on XDC Network. Useful for indexers, analytics pipelines, and event backfills across tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization.
eth_getCode
Get contract bytecode on XDC Network. Essential for verifying smart contracts for tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization.