Custom linking
Get front page
GET https://oswap.io/#/
https://oswap.io/#/Get specific swap pair
GET https://oswap.io/#/swap/:identifier
Path Parameters
identifier
string
Load the input asset and output asset from pool or load output asset from encoded asset ID
Query Parameters
reverse
boolean
Flips the input asset with output asset if it has any value
https://oswap.io/#/swap/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H?reverse=1 <!-- pool address -->
https://oswap.io/#/swap/P+bT6OZY/eR765RrBORfAUl27FU/pAU10GMkuLc3s9U= <!-- not encoded, no url parameters -->
https://oswap.io/#/swap/P-bT6OZY_eR765RrBORfAUl27FU_pAU10GMkuLc3s9U <!-- base64url -->
https://oswap.io/#/swap/P%2BbT6OZY%2FeR765RrBORfAUl27FU%2FpAU10GMkuLc3s9U%3D <!-- encodeURIComponent -->Swap and send to address
GET https://oswap.io/#/send/:poolAddress
Path Parameters
poolAddress
string
Load the input asset and output asset from pool
Query Parameters
reverse
boolean
Flips the input asset with output asset if it has any value
to
string
Wallet address
Create new pool with asset
GET https://oswap.io/#/create-pool/:assetId
Path Parameters
assetId
string
Unit ID of asset definition
Add liquidity to pool (both assets)
GET https://oswap.io/#/add-liquidity/:poolAddress
Path Parameters
poolAddress
string
Address of pool AA
Add liquidity to pool (one asset)
GET https://oswap.io/#/add-liquidity-2/:poolAddress
Path Parameters
poolAddress
string
Address of pool AA
Remove liquidity from pool
GET https://oswap.io/#/remove-liquidity/:poolAddress
Path Parameters
poolAddress
string
Address of pool AA
Get all pools
GET https://oswap.io/#/pools
Get pools that contain specific asset
GET https://oswap.io/#/asset/:assetId
Path Parameters
assetId
string
Unit ID of asset definition
Last updated
Was this helpful?