Custom linking

get
Get front page

https://oswap.io/#/
Request
Response
Request
Response
200: OK
https://oswap.io/#/

get
Get specific swap pair

https://oswap.io/#/swap/:identifier
Request
Response
Request
Path Parameters
identifier
required
string
Load the input asset and output asset from pool or load output asset from encoded asset ID
Query Parameters
reverse
optional
boolean
Flips the input asset with output asset if it has any value
Response
200: OK
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 -->

get
Swap and send to address

https://oswap.io/#/send/:poolAddress
Request
Response
Request
Path Parameters
poolAddress
optional
string
Load the input asset and output asset from pool
Query Parameters
reverse
optional
boolean
Flips the input asset with output asset if it has any value
to
optional
string
Wallet address
Response
200: OK
https://oswap.io/#/send?to=FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF <!-- just "to" address -->
https://oswap.io/#/send/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H?reverse=1&to=FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF <!-- pool address with "to" address -->

get
Create new pool with asset

https://oswap.io/#/create-pool/:assetId
Request
Response
Request
Path Parameters
assetId
optional
string
Unit ID of asset definition
Response
200: OK
https://oswap.io/#/create-pool/P+bT6OZY/eR765RrBORfAUl27FU/pAU10GMkuLc3s9U= <!-- not encoded -->
https://oswap.io/#/create-pool/P-bT6OZY_eR765RrBORfAUl27FU_pAU10GMkuLc3s9U <!-- base64url -->
https://oswap.io/#/create-pool/P%2BbT6OZY%2FeR765RrBORfAUl27FU%2FpAU10GMkuLc3s9U%3D <!-- encodeURIComponent -->

get
Add liquidity to pool (both assets)

https://oswap.io/#/add-liquidity/:poolAddress
Request
Response
Request
Path Parameters
poolAddress
optional
string
Address of pool AA
Response
200: OK
https://oswap.io/#/add-liquidity
https://oswap.io/#/add-liquidity/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H

get
Add liquidity to pool (one asset)

https://oswap.io/#/add-liquidity-2/:poolAddress
Request
Response
Request
Path Parameters
poolAddress
optional
string
Address of pool AA
Response
200: OK
https://oswap.io/#/add-liquidity-2/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H

get
Remove liquidity from pool

https://oswap.io/#/remove-liquidity/:poolAddress
Request
Response
Request
Path Parameters
poolAddress
optional
string
Address of pool AA
Response
200: OK
https://oswap.io/#/remove-liquidity/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H

get
Get all pools

https://oswap.io/#/pools
Request
Response
Request
Response
200: OK
https://oswap.io/#/pools

get
Get pools that contain specific asset

https://oswap.io/#/asset/:assetId
Request
Response
Request
Path Parameters
assetId
required
string
Unit ID of asset definition
Response
200: OK
https://oswap.io/#/asset/P+bT6OZY/eR765RrBORfAUl27FU/pAU10GMkuLc3s9U= <!-- not encoded -->
https://oswap.io/#/asset/P-bT6OZY_eR765RrBORfAUl27FU_pAU10GMkuLc3s9U <!-- base64url -->
https://oswap.io/#/asset/P%2BbT6OZY%2FeR765RrBORfAUl27FU%2FpAU10GMkuLc3s9U%3D <!-- encodeURIComponent -->
https://oswap.io/#/asset/base <!-- Obyte Bytes -->