Swagger
Last updated
Last updated
You can also find AKKA API swagger directly here :
Using AKKA Swap API, you can find the best route to exchange assets and make the exchange.
Step by step:
Lookup addresses of tokens you want to swap, for example ‘0xxx’ , ‘0xxxx’ for ICE -> CORE
Check for allowance of AKKA router contract to spend source asset (/approve/allowance)
If necessary, give approval for AKKA router to spend source token (/approve/transaction)
Monitor the best exchange route using /pks-quote
or /quote
When you are ready to perform the swap, use /swap
0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE
10000000000000000
PKS Quote
0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE
10000000000000000
Return fromToken and toToken info in response
Return swap protocols in response
0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE
10000000000000000
The address that calls the AKKA contract
min: 0; max: 50;
1
Token address you want to exchange
0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
The number of tokens that the AKKA router is allowed to spend. If not specified, it will be allowed to spend an infinite amount of tokens.
100000000000
Transaction body to allow the exchange with the AKKA router
Token address you want to exchange
0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8
Wallet address for which you want to check