Alchemy Logo

eth_getAccount

POST
/{apiKey}

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

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

addressstringformat: "^0x[0-9a-fA-F]{40}$"required

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".

Identifies a block by explicit number, a predefined tag (e.g., latest/safe/finalized), or a 32-byte block hash.

Responses

200

Account fields at the requested block.

Was this page helpful?