eth_getAccount

Retrieve account details (code hash, storage root, balance, nonce) for a given address at a specified block number or tag.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
addressstringRequiredformat: "^0x[0-9a-fA-F]{40}$"
The account address for which the information is to be retrieved.
blockReferencestring or enumRequired

The block number (hex quantity) or a tag: “latest”, “pending”, “safe”, or “finalized”.

Response

Account fields at the requested block.
codeHashstringformat: "^0x[0-9a-f]{64}$"

A 32-byte hash of the account’s code (EOAs use keccak256(0x)).

storageRootstringformat: "^0x[0-9a-f]{64}$"
The Merkle Patricia trie root of the account's storage.
balancestringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

The current balance of the account in wei (hex quantity).

noncestringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

The transaction count of the account (hex quantity).