Skip to main content

eth_getTransactionCount

Returns the number of transactions sent from address.

Parameters
NameTypeDescription
AddressAddressAddress to fetch count for.
BlockNumberHexString<Number>| "latest" | "earliest" | "pending"Hexadecimal block number, or the string "latest", "earliest" or "pending".
Return Type

HexString<Number> - Number of transactions sent from address.

Example
TypeScript
await provider.request({
method: "eth_getTransactionCount",
params: ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"],
});
// "0x1a"