Skip to main content

eth_getTransactionCount

Returns the number of transactions sent from an address.

Parameters

Address(string)required

hex encoded address

Block(object)required

Block number, tag, or block hash

Returns

hex encoded unsigned integer

Example request
await provider.request({
method: "eth_getTransactionCount",
params: [
"0xc94770007dda54cF92009BFF0dE90c06F603a09f",
"latest"
]
});
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x1"
}