Ethereum API
Multichain API
eth_getTransactionCount
Summary: Returns the number of transactions sent from an address.
Parameters
Address string
hex encoded address
Pattern: ^0x[0-9a-fA-F]{40}$
Block anyOf
Block number, tag, or block hash
Returns
Transaction count string
hex encoded unsigned integer
Pattern: ^0x([1-9a-f]+[0-9a-f]*|0)$
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"