For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getBalance - ARC

Example code for the eth_getBalance JSON-RPC method. Complete guide on how to use eth_getBalance JSON-RPC in GetBlock Web3 documentation.

This method returns the USDC balance of the given account on Arc, in USDC base units (6 decimals).

Parameters

Parameter
Type
Required
Description

address

string

Yes

20-byte address to check for balance

blockParameter

string

Yes

Block number in hex, or "latest", "earliest", "pending", "safe", "finalized"

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_getBalance",
    "params": [
        "0x4cef52a8f9d4b0c8b8d5f1a2b3c4d5e6f7a8b9c0",
        "latest"
    ],
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result

string

Account balance in USDC base units (hexadecimal). 0x5f5e100 = 100,000,000 base units = 100 USDC

Use Cases

  • Wallet USDC balance displays

  • Pre-flight funds check before submitting payment transactions

  • Stablecoin treasury monitoring

  • Merchant settlement dashboards

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

-32601

Method not found

The method is not supported by this node

429

Too Many Requests

Rate limit exceeded for your plan

SDK Integration

Last updated

Was this helpful?