Skip to navigation

eth_getAccountInfo

Availability: Supported on Reth-based (op-reth) endpoints only. Geth- and Nitro-based endpoints return -32601 method not found.

Combines eth_getBalance, eth_getTransactionCount, and eth_getCode into a single request for the given address and block.

⚡ Compute Units: 20 CU

Request

This endpoint expects an object.
addressstringRequiredformat: "^0x[0-9a-fA-F]{40}$"

20-byte address.

blockIdentifierenum or stringRequired
Block number, tag, or hash.

Response

Account balance, nonce, and code.
balancestringformat: "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
Balance in wei.
noncestringformat: "^0x(0|[1-9a-fA-F][0-9a-fA-F]*)$"
Account nonce.
codestringformat: "^0x[0-9a-fA-F]*$"

Contract bytecode; 0x for externally owned accounts.