# Estimate FA2 Transfer Fee Tezos

Returns a fee estimate for transferring an FA2 token on Tezos. FA2 (TZIP-12) is Tezos's multi-asset token standard - it powers NFTs, gaming assets, and most fungible tokens minted from 2021 onward. A single FA2 contract can hold many distinct tokens, identified by a numeric tokenId, so this endpoint requires that id alongside the contract address.

- **Endpoint:** `POST https://rest.cryptoapis.io/blockchain-fees/tezos/{network}/estimate-fa2-transfer`
- **Authentication:** `x-api-key` header
- **Credits cost:** 52 credits for 1 result by default; per blockchain: Tezos: 52
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/blockchain-fees-tezos/estimate-fa2-transfer-fee-tezos/post

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `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" Allowed values: `shadownet`, `mainnet`. |

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

## Request body (application/json)

```json
{
  "context": "yourExampleString",
  "data": {
    "item": {
      "amount": "3",
      "contractAddress": "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5",
      "recipient": "KT1H5b7LxEExkFd2Tng77TfuWbM5aPvHstPr",
      "sender": "tz1PVeuW9eQ1ZkUVmMyqYgTL6qWuiVunneXe",
      "senderPublicKey": "edpkvNh3owMx4KaWTrgLuC5pQRMxV4QNom2kAZSCyfCh4q6o73DFti",
      "tokenId": "0"
    }
  }
}
```

| Field | 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. |
| `data` | object | yes |  |
| `data.item` | object | yes |  |
| `data.item.amount` | string | yes | Token amount in the token's own base units - not mutez. For NFTs this is usually "1". |
| `data.item.contractAddress` | string | yes | FA1.2 contract address (KT1) |
| `data.item.recipient` | string | yes | Recipient Tezos address (tz1/tz2/tz3/KT1) |
| `data.item.sender` | string | yes | Sender Tezos address (tz1/tz2/tz3/KT1) |
| `data.item.senderPublicKey` | string | no | Optional. Sender's base58 public key (edpk*/sppk*/p2pk*). Required only if the sender's manager_key is unrevealed and the caller wants the reveal op bundled into the estimate. |
| `data.item.tokenId` | string | no | Identifies which token inside the FA2 contract (FA2 is multi-asset). "0" is the typical id for single-token FA2 contracts; NFT collections use a different id per item. |

## 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": {
      "gasLimit": 3600,
      "includesReveal": true,
      "storageBurnEstimate": 18,
      "storageLimit": 23,
      "minimumFee": {
        "fast": "3156",
        "slow": "1850",
        "standard": "2306",
        "unit": "MUTEZ"
      }
    }
  }
}
```

### 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.gasLimit` | integer | yes | Suggested gas limit for the operation |
| `data.item.includesReveal` | boolean | yes | True when a reveal operation is required and was included in the estimate |
| `data.item.storageBurnEstimate` | integer | yes | Storage burn estimate (in mutez) |
| `data.item.storageLimit` | integer | yes | Suggested storage limit for the operation (bytes) |
| `data.item.minimumFee` | object | yes |  |
| `data.item.minimumFee.fast` | string | yes | Fast tier minimum fee (in mutez) |
| `data.item.minimumFee.slow` | string | yes | Slow tier minimum fee (in mutez) |
| `data.item.minimumFee.standard` | string | yes | Standard tier minimum fee (in mutez) |
| `data.item.minimumFee.unit` | string | yes | Unit of the fee (mutez) |
