Alchemy Logo

eth_getTransactionCount

POST
/{apiKey}

Returns the number of transactions sent from an address.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

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

The address of the account to get the transaction count for.

Blockstring or enumrequired

The block number, tag, or hash at which to retrieve the transaction count.

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

Responses

200

The number of transactions sent from the address, as a hexadecimal string.

Was this page helpful?