📃Swap Contract

Learn how to integrate Panora swap contract within your contract in just a few minutes.

To integrate the Panora contract, the first step is familiarity with our Swap API 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.

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

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

Last updated