Skip to main content

GetTransactionCount

Accounts

Implements eth_getTransactionCount.

Params

(2)

1. address (required)

string

The address of the account or contract.

2. blockNumberOrHash (required)

The number/hash of the block.

BlockHash
string

(Optional) The hash of the block. Either this or BlockNumber is required.

BlockNumber
integer

(Optional) The number of the block. Either this or BlockHash is required.

RequireCanonical
boolean
required

The flag that determines whether the block must be a part of the canonical chain.

Result

(transactionCount)
integer

The transaction count of the account.

API credentials

Username

Token

Params

address

blockNumberOrHash


Request

curl -X POST https://api.devnet.nil.foundation/api/undefined/undefined \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": [
null,
null
],
"id": 1
}'