# Get Next Available Nonce EVM

Through this endpoint customers can get information about the next available nonce by providing the specific blockchain, network and address.

- **Endpoint:** `GET https://rest.cryptoapis.io/addresses-latest/evm/{blockchain}/{network}/{address}/next-available-nonce`
- **Authentication:** `x-api-key` header
- **Credits cost:** 20 credits for 1 result by default; per blockchain: Ethereum: 20, Ethereum Classic: 26, Binance Smart Chain: 50, Polygon: 40, Arbitrum: 32, Avalanche: 36, Base: 24, Optimism: 28, Tron: 30
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-latest-evm/get-next-available-nonce-evm/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blockchain` | string | yes | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. Allowed values: `ethereum`, `ethereum-classic`, `binance-smart-chain`. |
| `network` | string | yes | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "sepolia" are test networks. Allowed values: `mainnet`, `mordor`, `testnet`, `sepolia`. |
| `address` | string | yes | Represents the public address, which is a compressed and shortened form of a public key. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |

## Responses

| Status | Description |
| --- | --- |
| 200 | The request has been successful. |
| 400 | 400 |
| 401 | 401 |
| 402 | 402 |
| 403 | 403 |
| 409 | The data provided seems to be invalid. |
| 415 | The selected Media Type is unavailable. The Content-Type header should be 'application/json'. |
| 422 | Your request body for POST requests must have a structure of { data: { item: [...properties] } } |
| 429 | The request limit has been reached. There can be maximum {requests} requests per {seconds} second(s) made. Please contact our team via email if you need more or upgrade your plan. |
| 500 | An unexpected server error has occurred, we are working to fix this. Please try again later and in case it occurs again please report it to our team via email. |

### Example 200 response

```json
{
  "apiVersion": "2024-12-12",
  "requestId": "601c1710034ed6d407996b30",
  "context": "yourExampleString",
  "data": {
    "item": {
      "nextAvailableNonce": 16
    }
  }
}
```

### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiVersion` | string | yes | Specifies the version of the API that incorporates this endpoint. |
| `requestId` | string | yes | Defines the ID of the request. The `requestId` is generated by Crypto APIs and it's unique for every request. |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |
| `data` | object | yes |  |
| `data.item` | object | yes |  |
| `data.item.nextAvailableNonce` | integer | yes | Represents the sequential running number for an address, starting from 0 for the first transaction. E.g., if the nonce of a transaction is 10, it would be the 11th transaction sent from the sender's address. |
