Returns an overview of all tokens available on Astrolescent.
Return value:
[{"address":"resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3","symbol":"ASTRL","name":"Astrolescent","description":"Official yield-bearing and governance token of Astrolescent.","iconUrl":"https://astrolescent.com/assets/img/babylon/astrl-icon.png","infoUrl":"https://astrolescent.com/","divisibility":18 }]
Prices
Returns an overview of all token prices and their price history across the Radix network.
The prices are currently refreshed every 10 minutes and are a liquidity-weighted average of the prices on the most important DEXes on Radix (DefiPlaza, Ociswap, and CaviarNine).
Return value:
{"resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3": {"address":"resource_rdx1t4tjx4g3qzd98nayqxm7qdpj0a0u8ns6a0jrchq49dyfevgh6u0gj3","symbol":"ASTRL","name":"Astrolescent","description":"Official yield-bearing and governance token of Astrolescent.","iconUrl":"https://astrolescent.com/assets/img/babylon/astrl-icon.png","infoUrl":"https://astrolescent.com/","divisibility":18,"tokenPriceXRD":1.062598098730236,"tokenPriceUSD":0.05351588111136494,"diff24H":-0.004460795201074588,"diff24HUSD":-0.03278713163358024,"diff7Days":-0.035580778487088474,"diff7DaysUSD":-0.033143834640006045,"icon_url":"https://astrolescent.com/assets/img/babylon/astrl-icon.png" },}
Swap
Calculates the optimal route for a given input and output token and the number of input tokens
Swap accepts as POST parameters:
inputToken as token address
outputToken as token address
inputAmount in 10^1, not 10^18
fromAddress as account address
feeComponent the component address of an instantiation of our fee component, to capture your own fees
The manifest field can be directly sent to the Radix dApp Toolkit to initiate a transaction.
Fees
On swaps made via our API we take a 0.1% fee, or 30% of any fee you set.
We have developed a custom fee component that we might be able to offer to our partners to insert their fees into the manifest as well. Contact us to see how we can best offer this to you and integrate it into our API.