Skip to main content
Standard Ethereum JSON-RPC API

eth_getTransactionCount

Returns the number of transactions sent from an address (the account nonce).

Parameters​

  • address: [required] 20-byte address.
  • blockParameter: [required] Hexadecimal block number, or latest, earliest, pending, finalized.

Returns​

Hexadecimal integer of the number of transactions sent from the address.

Example​

Request​

curl https://rpc.linea.build \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": [
"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"latest"
],
"id": 1
}'

Response​

{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}

Was this page helpful?