π»Widget
Easily integrate Panoraβs swap functionality into your application with our lightweight SDK, enabling seamless token swaps and real-time data directly within your platform.
Key Features
Quick Setup: Simple, plug-and-play integration.
Customizable: Adapt to match your appβs style.
Comprehensive Swap Support: Includes wallet connections, token swaps, and optimized routes.
Real-Time Rates: Access the best swap prices instantly.
Getting Started
Public API Key:
a4^KV_EaTf4MW#ZdvgGKX#HUD^3IFEAOV_kzpIE^3BQGA8pDnrkT7JcIy#HNlLGiNote: This API key's limits should be sufficient for most use cases. Protocols within the Aptos ecosystem with specific requirements or customization may submit a ticket on Discord.
How to Use
1. Installation
a. Setup via HTML
<!-- Load the Panora Widget script in your <head> -->
<script src="https://app.panora.exchange/widget-v1.js"></script>
<!-- Prepare a container in your <body> for the Panora Widget -->
<!-- Adjust width and height to suit your layout -->
<div id="panora-widget" style="width: 400px; height: 568px"></div>Usage
b. Alternatively, Install From NPM
Using npm
Using yarn
Using pnpm
Usage
Integrate Panora Swap Widget into your application:

Compatibility
2. Configurations
Widet Configurations
Theme Customizations

Widget Controls
Set the from token in the swap widget
Set the to token in the swap widget
Open the widget token picker
Close the widget token picker
3. Guide
Connecting Wallet
Connecting your preferred wallet to the Aptos Chain is a seamless process with our swap widget.
Click on the 'Connect Wallet' button at the top right of the widget.

Click on the wallet you want to connect to.

Accept the connection request in your wallet extension.


Selecting Token Pair
Click on any side of the token pair to change

Select the token

Swapping
Enter your desired amount in the token input box to load the swap route

To finalize the transaction, select 'Confirm Swap' and promptly approve the transaction within your wallet extension. This action ensures successful completion of the transaction process.


Adding Recipient Address
If you want to transfer your swapped amount to another wallet address you can set the recipient address before executing the transaction
Click on the button right to 'confirm swap




Adding Custom Tokens
Click on 'Mange token lists'

Enter your custom token type and hit import.


Benefits
Enhanced User Experience: Let users swap tokens without leaving your app.
New Revenue Stream: Earn fees on transactions with custom fee settings.
Attribution
Kindly include proper attribution when using Panora in projects or presentations. Mention βPowered by Panoraβ wherever applicable.
Last updated