eth_getTransactionCount
Returns the number of transactions sent from an address.
Parameters
address: [Required] 20 bytes. The address you are inquiring about.block numberorblock hash: A string representing a block number, block hash, or one of the string tagslatest,earliest,pending,safe, orfinalized. See the default block parameter.
Returns
A hexadecimal of the number of transactions sent from the given address.
Example
Request
curl https://rpc.testnet.radiustech.xyz/<YOUR-RPC-ENDPOINT> \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"params": [
"0xcae4d474a43b186606bb836f463d4b4072b7fbe3",
"latest"
],
"method": "eth_getTransactionCount",
"id": 1
}
'Response
{
"jsonrpc": "2.0",
"result": "0x1",
"id": 1
}Request
cast rpc eth_getTransactionCount \
0xcae4d474a43b186606bb836f463d4b4072b7fbe3 \
"latest" \
--rpc-url https://rpc.testnet.radiustech.xyz/<YOUR-RPC-ENDPOINT>Response
"0x1"Last updated
Was this helpful?

