Version disclaimer
SwapKit's latest version is v3, it is the recommended version to integrate. The documentation for v2 is currently shared here until support for it is discontinnued to help current v2 integrations in their process to upgrade or mantain their integration if they have issues.
How to use SwapKit's API v2
To get the most out of SwapKit's API v2 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/ .
You can also check out our transaction tracking interface at https://track.swapkit.dev/.
Please read over our recommended quote implementation flow to understand how to create a better performing integration.
Last updated

