> For the complete documentation index, see [llms.txt](https://docs.non-obvious.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.non-obvious.ai/sdks-guide/blockchain-sdks/evm-chains-sdk/nft/estimatefee/soulbound/mint.md).

# mint

## Description

The `estimateFee` function is an asynchronous function used to estimate the gas fee required for the `mint` operation of a Soulbound token on a specific blockchain and environment.&#x20;

## Parameters

| Parameter           | Data Type | Description                                                                      |
| ------------------- | --------- | -------------------------------------------------------------------------------- |
| `blockchain`        | string    | The blockchain on which the Soulbound token exists.                              |
| `contract`          | string    | The contract type, in this case, 'soulbound'.                                    |
| `functionType`      | string    | The type of function for which to estimate the fee, in this case, 'mint'.        |
| `env`               | string    | The environment or network of the blockchain.                                    |
| `amount (optional)` | number    | The amount of ERC20 tokens to be minted. (Only required for 'mint' functionType) |

## Response

| Field          | Data Type | Description                                                           |
| -------------- | --------- | --------------------------------------------------------------------- |
| `code`         | number    | The response code indicating the success or failure of the operation. |
| `result`       | number    | The estimated fee for the contract deployment.                        |
| `VLRYEstimate` | number    | The estimated fee in VLRY (virtual asset).                            |
| `USDEstimate`  | number    | The estimated fee in USD (United States Dollar).                      |

## Example Request and Response

### Prerequisites

Before making requests with NO.AI SDK, you must have it installed.

You can install NO.AI SDK using either **`npm`** or **`yarn`**. Use the following commands to install NO.AI SDK:

<br>

```sh
npm install @nest25/evm-chains-lib
OR
yarn add @nest25/evm-chains-lib
```

### Request

Here is an example of how to make a `mint` request using the NO.AI SDK:

```sh
const { Nft } = require('@nest25/evm-chains-lib');

const nft = new Nft('testnet');

async function main() {
    const result = await nft.estimateFee('eth', 'soulbound', 'mint', 1);
    console.log("result", result);
}

main();
```

### Response

```sh
  result {
        code: 1,
        result: 0.01619173481997752,
        VLRYEstimate: 203.96749943112556,
        USDEstimate: 30.595124914668833
      }

```

### Use Cases

* **Estimate ERC20 Mint Gas Fee:** By invoking this function with the appropriate blockchain, contract, functionType ('mint'), and environment, you can estimate the gas fee required for the `mint` operation of a Soulbound token.
* **Supporting Multiple Blockchains:** The function allows estimating gas fees for Soulbound mint operations on different blockchains by specifying the blockchain parameter (e.g., 'Ethereum', 'Binance Smart Chain', etc.).
* **Providing Results in Different Currencies:** The function returns the estimated gas fee in the native currency of the specified blockchain, as well as its equivalent in VLRY and USD, providing flexibility for users who prefer different currencies.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.non-obvious.ai/sdks-guide/blockchain-sdks/evm-chains-sdk/nft/estimatefee/soulbound/mint.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
