# eth_getTransactionCount - Etherlink RPC Method

Returns the number of transactions sent from an address on Etherlink, commonly known as the **nonce**. The nonce is required for every outbound transaction to ensure correct ordering and prevent replay attacks.

## When to Use This Method

Read the demonstrated account transaction count at block 1,000,000.

## Request Parameters

- `address` (`DATA, required`): 20-byte account or contract address.
- `blockNumber` (`QUANTITY, required`): Block number in hexadecimal. The example uses the recorded historical height.

## Request Example

```json
{
  "jsonrpc": "2.0",
  "id": 20,
  "method": "eth_getTransactionCount",
  "params": [
    "0x5d66ec78664f4a0b0929a41270316a6cd4d8bd4b",
    "0xf4240"
  ]
}
```

## Response Fields

This method returns no documented fields.

## Successful Response

```json
{
  "jsonrpc": "2.0",
  "result": "0x4a2b1",
  "id": 20
}
```

## Code Examples

```bash
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"jsonrpc":"2.0","id":20,"method":"eth_getTransactionCount","params":["0x5d66ec78664f4a0b0929a41270316a6cd4d8bd4b","0xf4240"]}'
```

## Best Practices

Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.
