> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getTransactionCount | Hyperliquid EVM

> Returns the number of transactions sent from an address (the nonce). This is essential for creating new transactions with the correct nonce value.

<Info>
  This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see [Hyperliquid methods](/docs/hyperliquid-methods) for the full availability breakdown.
</Info>

Returns the number of transactions sent from an address (the nonce). This is essential for creating new transactions with the correct nonce value.

## 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.

<Note>
  On Hyperliquid, only the `"latest"` block parameter is supported for this method. The `"pending"` state is not supported on the default RPC.
</Note>

## Example request

<CodeGroup>
  ```shell Shell theme={"system"}
  curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA","latest"],"id":1}' \
    https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  w3 = Web3(Web3.HTTPProvider("YOUR_CHAINSTACK_ENDPOINT"))

  nonce = w3.eth.get_transaction_count("0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA", "latest")
  print(nonce)
  ```

  ```javascript ethers.js theme={"system"}
  import { JsonRpcProvider } from "ethers";

  const provider = new JsonRpcProvider("YOUR_CHAINSTACK_ENDPOINT");

  const nonce = await provider.getTransactionCount("0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA", "latest");
  console.log(nonce);
  ```

  ```typescript viem theme={"system"}
  import { createPublicClient, http } from "viem";

  const client = createPublicClient({
    transport: http("YOUR_CHAINSTACK_ENDPOINT"),
  });

  const nonce = await client.getTransactionCount({
    address: "0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA",
    blockTag: "latest",
  });
  console.log(nonce);
  ```
</CodeGroup>

<Note>
  **Use your own endpoint in your code.** The code examples use a placeholder Chainstack endpoint (YOUR\_CHAINSTACK\_ENDPOINT) — replace it with your own Hyperliquid node endpoint from the [Chainstack console](https://console.chainstack.com/). The curl above uses a shared public endpoint for quick checks only; do not use it in production.
</Note>

## 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


## OpenAPI

````yaml openapi/hyperliquid_node_api/hyperevm/evm_eth_get_transaction_count.json post /evm
openapi: 3.0.0
info:
  title: Hyperliquid EVM API - eth_getTransactionCount
  version: 1.0.0
servers:
  - url: >-
      https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274
security: []
paths:
  /evm:
    post:
      summary: eth_getTransactionCount
      description: Returns the number of transactions sent from an address (the nonce).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
                - id
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  default: '2.0'
                  description: JSON-RPC version
                method:
                  type: string
                  enum:
                    - eth_getTransactionCount
                  default: eth_getTransactionCount
                  description: The RPC method name
                params:
                  type: array
                  description: 'Parameters: [address, block]'
                  default:
                    - '0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA'
                    - latest
                id:
                  type: integer
                  default: 1
                  description: Request identifier
            example:
              jsonrpc: '2.0'
              method: eth_getTransactionCount
              params:
                - '0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA'
                - latest
              id: 1
      responses:
        '200':
          description: Successful response with the transaction count
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPC version
                  id:
                    type: integer
                    description: Request identifier
                  result:
                    type: string
                    description: The transaction count (nonce) as a hexadecimal string
              example:
                jsonrpc: '2.0'
                id: 1
                result: '0x1a'

````