# Contract

To integrate the Panora contract, the first step is familiarity with our [Swap API](https://docs.panora.exchange/developer/swap-api-and-sdk) as the type arguments and arguments required by our contract are provided by the Panora Swap API endpoint. The Swap endpoint returns the parameters necessary for the router entry function and covers both ExactInSwap and ExactOutSwap.&#x20;

**API Response Structure**

The response will include a consistent structure across all scenarios, containing a key named txData

* txData: This txData contains the details required for executing the swap.
* Usage: Send the txData directly to your contract. No modifications are needed to accommodate different token types (fungible assets or coins).&#x20;

Contract Integration Sample: <https://github.com/PanoraExchange/Panora-Contract-Integration-Example>


---

# 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.panora.exchange/developer/swap/contract.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.
