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

eth_getBalance - Tempo

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

Always returns the large constant placeholder 0x9612084f0316e0ebd5182f398e5195a51b5ca47667d4c9b26c9b26c9b26c9b2 rather than an actual balance. Tempo has no native gas token, so a traditional native-balance query is meaningless. To query an account's actual holdings, call balanceOf(address) on the specific TIP-20 token contract (e.g. pathUSD, AlphaUSD, KlarnaUSD, USD1). The placeholder value is intentionally large so that wallets that fall back to displaying the native balance show something visibly unusual rather than silently displaying zero.

Parameters

Parameter
Type
Required
Description

address

string

Yes

20-byte address to check for balance (ignored — always returns the placeholder)

blockParameter

string

Yes

Block number in hex, or block tag (ignored — always returns the placeholder)

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": [
        "0xd85498dbeaeb1df24be52eed4f52eac2fbd56245",
        "latest"
    ],
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result

string

Always the constant placeholder shown above — not a real balance. Query TIP-20 balanceOf for actual holdings

Use Cases

  • Compatibility shim for tooling that assumes the standard eth_getBalance exists

  • Detecting that you're talking to a Tempo node (the placeholder is distinctive)

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

(no method-specific errors)

N/A

This method is a constant lookup and effectively cannot fail when the node is reachable

SDK Integration

Last updated

Was this helpful?