Skip to main content

eth_getTransactionCount

Ethereum API

Returns the number of transactions sent from an address.

Params

(2)

1. Address (required)

string
Match pattern:
^0x[0-9a-fA-F]{40}$

2. Block (required)

(any of)
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Result

(Transaction count)
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Params

Address

Block


Request

await window.ethereum.request({
"method": "eth_getTransactionCount",
"params": [
null,
null
]
});