Gathering Transaction Info
The first step to executing a transaction is gathering the source chain and destination chain information, as well as the swap amount, sender and recipient wallet addresses, and the project's ID. Swing provides endpoints for fetching a list of chains and tokens that are available on the Swing ecosystem.
Get all chains and tokens
We are continuously expanding our ecosystem by incorporating new blockchain networks and tokens to allow for a greater number of cross-chain token transfers and swaps.
To get a list of all chains and all tokens that are currently supported, the /chains and /tokens endpoint can be queried.
Get enabled chains and tokens for a project
To get a list of all chains and all tokens that are currently enabled by your project's rules configuration, the /projects/{projectId}/chains
and /projects/{projectId}/tokens
endpoint can be queried.