# VyBuildTokenSwapRequest

## Properties

| Field               | Type                                                                                 | Description                                                                                                                                                                 | Required |
| ------------------- | ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| WalletId            | string                                                                               | The wallet \`ID\` of the source wallet                                                                                                                                      | ✗        |
| DestinationWalletId | string                                                                               | The wallet \`ID\` of the destination wallet                                                                                                                                 | ✗        |
| FromSecretType      | [eVyChain](/sdk-reference/c-sdk-v3/object-references/enum/evychain.md)               | The blockchain of source wallet                                                                                                                                             | ✗        |
| ToSecretType        | [eVyChain](/sdk-reference/c-sdk-v3/object-references/enum/evychain.md)               | The blockchain of the destination wallet                                                                                                                                    | ✗        |
| FromToken           | string                                                                               | Source token contract address                                                                                                                                               | ✗        |
| ToToken             | string                                                                               | Destination token contract address                                                                                                                                          | ✗        |
| InputAmount         | float                                                                                | The amount of tokens to swap                                                                                                                                                | ✗        |
| OutputAmount        | float                                                                                | The amount of tokens to recieve                                                                                                                                             | ✗        |
| OrderType           | [eVyOrderType](/sdk-reference/c-sdk-v3/object-references/enum/evyordertype.md)       | The type of order. We only allow \`SELL\` and \`BUY\`.                                                                                                                      | ✗        |
| Exchange            | [eVyExchangeType](/sdk-reference/c-sdk-v3/object-references/enum/evyexchangetype.md) | The name of exchange to use for the swap                                                                                                                                    | ✗        |
| EnableGasEstimate   | bool                                                                                 | Indicate to include gas estimate (response will contain value for the \`gas\` field). The response will include the \`gasLimit\` that needs to be used to execute the swap. | ✗        |

## References

**Operation**

* [BuildTokenSwap](/sdk-reference/c-sdk-v3/function-references/wallet/token-swapping/buildtokenswap.md)


---

# 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://sdk.venly.io/sdk-reference/c-sdk-v3/object-references/wallet/vybuildtokenswaprequest.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.
