# VLRYToCRYPTO

## Description

The `VLRYToCRYPTO` function is an asynchronous function that converts an amount from VLRY to a specific cryptocurrency based on the selected blockchain.&#x20;

The function takes a VLRY amount and the blockchain symbol as input.

## Parameters

| Parameter    | Data Type | Description                                               |
| ------------ | --------- | --------------------------------------------------------- |
| `VLRYAmount` | number    | The amount in VLRY to be converted to the cryptocurrency. |
| `blockchain` | string    | The symbol or name of the blockchain for the conversion.  |

## Response

| Field    | Data Type | Description                                                                     |
| -------- | --------- | ------------------------------------------------------------------------------- |
| `code`   | Number    | A numeric value indicating the execution status (1 for success, 0 for error).   |
| `error`  | any       | The error object containing details about the encountered error, if applicable. |
| `result` | any       | The result of the conversion operation.                                         |

## Example Request and Response

### Prerequisites

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

You can install Volary SDK using either **`npm`** or **`yarn`**. Use the following commands to install Volary 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 `VLRYToCRYPTO` request using the Volary SDK:<br>

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

const nft = new Nft('testnet');

async function main() {
    const response = await nft.VLRYToCRYPTO(1, 'ETH');
    console.log(response);
}

main();

```

```sh
```

### Response

```sh
{ code: 1, result: { symbol: 'ETH', amount: 0.00007652561765770977 } }
```

### Use Cases

* **The `VLRYToCRYPTO` function can be used to convert an amount from VLRY to a specific cryptocurrency based on the selected blockchain.** \
  You can provide the amount in VLRY and specify the blockchain symbol, and the function will make a request to the BC\_STACK\_URL API to perform the conversion. The response will contain the result of the conversion, which can be further processed or displayed to the user.

&#x20;


---

# Agent Instructions: 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:

```
GET https://docs.volary.io/sdks-guide/blockchain-sdks/evm-chains-sdk/nft/vlrytocrypto.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
