Quickstart

Prerequisites

In order to set up a successful swap, a few pieces of information need to be collected prior to the swap taking place.

As a User (swapping party), you will need:

  1. A compatible wallet containing the funds to be swapped (see documentation for currently supported wallet technologies)

  2. A web3 compatible browser

As an Agent, you will need:

  1. Wallet address for both users (swapping parties)

  2. The names for the tokens to be swapped (see documentation for currently supported tokens)

  3. The number of tokens to be involved in the swap for both users

  4. An agent fee agreed upon by both users (optional)

  5. An expiration date for the swap to be completed

Getting Started

1. Authenticate via web3 using your preferred wallet:

Triswap gives you several options to connect, refer to the instructions for your specific wallet type and device type you will be using.

2. Once authenticated, Triswap will bring up the Swap tab.

User Instructions:

Enter the Swap ID shared with you by your agent and click Get Swap.

Agent Instructions:

If you wish to look up an existing swap using a swap ID, enter it here. Or, to set up a new swap, proceed to Appendix A.

3. Complete the steps in the Swap tab to execute the swap.

User Instructions:

Each user’s contribution will be highlighted in green, respectively.

Here, you will be given the remaining steps to Approve and Authorize the swap, or to Cancel the swap.

  • Approve: Approves the terms of the swap

  • Authorize: Authorizes the funds to be moved from the wallet

  • Cancel: Backs out of the swap

*Note: A swap can still be canceled up and until the agent executes the swap (see step 7)

Once both users approve and authorize the transaction, the agent is given the ability to execute the swap.

Agent Instructions:

While the swap is in progress, the Swap page will show which steps are still pending completion (Approval, Authorization, or both for each user). Once these steps have been completed by the users, an Execute and a Cancel Icon will appear:

To complete the swap, click Execute. Alternatively, if for any reason the swap needs to be canceled at this time, you may do so by clicking the Cancel button.

Appendix A

The following are instructions for an Agent to create a new swap.

1. Click on the Agent tab.

Once in the Agent tab, use the information collected in the prerequisites section of this guide to populate the fields:

2. Click on Create Swap.

This may open up an additional approval in your wallet app, click Confirm to continue to the next step.

3. Copy and save the Swap ID.

Once the swap is created, a Swap ID will appear at the top of the page. Copy this string and save, to be shared with the swapping parties.

Note: Make sure you save the swap ID before you close the window. You will not be able to retrieve it.

Additional Resources

Documentation Repository: docs.triswap.io Support: reach us on Telegram @triswap

Last updated