Swagger API
EmporiaSDK Swagger API - v1.1
Hera Dex Aggregator - Swap Protocol API
Metis Mainnet Release
Swagger Paths:
Allowance
Your wallet address
0x0000000000000000000000000000000000000000The number of tokens that the Hera Aggregator router is allowed to spend. If not specified, it will be allowed to spend an infinite amount of tokens.
1000000Token address you want to swap
0xEA32A96608495e54156Ae48931A7c20f0dcc1a21Transaction body to allow the swap with the Hera Aggregator router
Error details
Quote (Pathfinder)
Your wallet address
0x00000000000000000000000000000000000000001000000from token
0xEA32A96608495e54156Ae48931A7c20f0dcc1a211088to token
0x6F05709bc91Bad933346F9E159f0D3FdBc2c9DCE1088Quote
One of the following errors: "Insufficient liquidity", "Cannot estimate", "You may not have enough METIS balance for gas fee", "tokenInAddress cannot be equals to tokenOutAddress", "Cannot estimate. Don't forget about miner fee. Try to leave the buffer of METIS for gas", "Not enough balance", "Not enough allowance"
Swap
Your wallet address
0x0000000000000000000000000000000000000000Recipient address ( if dstAccount is left blank, dstAccount = account )
0x00000000000000000000000000000000000000001000000from token
0xEA32A96608495e54156Ae48931A7c20f0dcc1a21to token
0x6F05709bc91Bad933346F9E159f0D3FdBc2c9DCEWhile HeraGuard is active, the slippage rate is set to 0% and will protect you from front-running. However, if this feature is active, your transaction may fail due to price fluctuations during processing. Min: 0% and Max: 50% - !! Default slippage: 0% !!
0Default deadline: ~20min
Swap
One of the following errors: "Insufficient liquidity", "Cannot estimate", "You may not have enough METIS balance for gas fee", "tokenInAddress cannot be equals to tokenOutAddress", "Cannot estimate. Don't forget about miner fee. Try to leave the buffer of METIS for gas", "Not enough balance", "Not enough allowance"
Last updated
