Ethereum API
eth_getTransactionCount
Summary: Returns the number of transactions sent from an address.
Parameters
Address string
hex encoded address
Block anyOf
Block number, tag, or block hash
Returns
Transaction count string
hex encoded unsigned integer
Customize request
Parameter
Value
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "eth_getTransactionCount",
"params": [
"0xc94770007dda54cF92009BFF0dE90c06F603a09f",
"latest"
],
});
Example response
"0x1"