Introduction
Our API aggregates several key providers and protocols, offering access to an extensive range of chains and tokens without the complexity of managing multiple integrations. It is designed to integrate cross-chain swaps into your application with ease in addition to in-chain dex aggregation for single-chain swaps.
How to use SwapKit's API
To get the most out of SwapKit's API we recommend going through the endpoints in the following order:
/providers
– Retrieve a list of available providers and their supported chains./tokens
– Fetch a list of supported tokens across different chains and providers./quote
– Request a swap quote to estimate the cost and parameters for a transaction./track
– Track the status of a swap to monitor its progress and completion.
However, /providers
and /tokens
don't change often, and you can directly request a quote once you have everything set up.
Additionally, the /screen
endpoint can be used to validate AML compliance of the involved addresses. If it is something you need, use it before the transaction is offered for signing and not with every /quote
.
You can try the API yourself at https://api.swapkit.dev/docs/
Last updated