POST
/
evm
eth_getTransactionCount
curl --request POST \
  --url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionCount",
  "params": [
    "0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA",
    "latest"
  ],
  "id": 1
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1a"
}
Returns the number of transactions sent from an address (the nonce). This is essential for creating new transactions with the correct nonce value.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • address (string, required) — The 20-byte account address
  • block (string, required) — Block identifier: "latest" (only the latest block is supported on Hyperliquid)

Returns

Returns the transaction count (nonce) as a hexadecimal string.
On Hyperliquid, only the "latest" block parameter is supported for this method. The "pending" state is not supported on the default RPC.

Use cases

  • Transaction creation — Get the correct nonce for new transactions
  • Wallet applications — Manage transaction ordering and nonce assignment
  • Account monitoring — Track account activity and transaction frequency
  • Batch operations — Create multiple transactions with sequential nonces
  • Transaction replacement — Replace stuck transactions using the same nonce
  • Smart contract deployment — Calculate contract addresses using deployer nonce

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC version

Available options:
2.0
method
enum<string>
default:eth_getTransactionCount
required

The RPC method name

Available options:
eth_getTransactionCount
params
any[]
required

Parameters: [address, block]

id
integer
default:1
required

Request identifier

Response

200 - application/json

Successful response with the transaction count

jsonrpc
string

JSON-RPC version

id
integer

Request identifier

result
string

The transaction count (nonce) as a hexadecimal string