cURL
Widget Actions
Generate metadata for Swap application
Creates metadata configuration for a token swap application. Currently supports LFJ and Pangolin protocols. The generated metadata can be used to create widgets for token swaps on supported blockchain networks.
POST
cURL
Authorizations
Use this format: ApiKey <your_api_key>
Body
application/json
Parameters for generating swap metadata
Protocol name
Example:
"lfj"
Blockchain name
Example:
"avalanche"
Input token
Example:
"AVAX"
Output token
Example:
"JOE"
KOL Router contract address
Example:
"0x123abc456def789012345678901234567890abcd"
Slippage tolerance (percentage)
Example:
0.5