For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getTransactionCount

post
/

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

If the block tag is set to 'pending', then the RPC will intercept the call and return the highest nonce it has received.

Note: the block tags 'safe' and 'finalized' are only availible on Ethereum mainnet.

Query parameters
api_keystringRequiredExample: docs-demo
Body
addressstringRequired

The address of the account to get the transaction count for

Pattern: ^0x[a-fA-F0-9]{40}$
blockone ofRequired

A block number as a hexadecimal string, or a block tag.

or
or
Responses
200Success
application/json
stringOptionalPattern: ^0x[a-fA-F0-9]{64}$
post/
POST /?api_key=text HTTP/1.1
Host: eth.novarpc.xyz
Content-Type: application/json
Accept: */*
Content-Length: 124

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionCount",
  "params": [
    "0xc94770007dda54cF92009BFF0dE90c06F603a09f",
    "latest"
  ]
}
200Success
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x3c28dfb47094b4de9d68bb365d1ffc4f25eaa287840838feb65562c49a245055"
}

Last updated