# 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

### &#x20; 1.  Authenticate via web3 using your preferred wallet:<br>

<figure><img src="https://lh4.googleusercontent.com/8nBOHrdpHNe2YLZ18lKpDv1EP3TGxZH1WTYijhhWqpPSq5-tJWZIEPMzyPzW9IyW4lWJ2bFejYVl3BDUewBG7vivRDYLxVDiCOPHCighbnC1bv9tyeVKjExOkDqMpvST0uGKFvsvAFcqd-Q3vEcNN2_B7mf4LilwFHnceRsR-iO45lGG2uM0t-kvEJSU" alt=""><figcaption></figcaption></figure>

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

### &#x20;2.  Once authenticated, Triswap will bring up the **Swap** tab.

#### ***User Instructions***:&#x20;

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

#### ***Agent Instructions***:&#x20;

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.

<figure><img src="https://lh4.googleusercontent.com/5kgCkiyyUV9Fdgp0zgR9gLr5f7H65B8NseFkCJRSlV7C5F4XpI5o6N_-aWRR0FgYU_ecMYCuasdcDPBS--o9SEGX5g2t80JAXPaTyWXo0sPZWYUOK9XqVgYRCdC53K7FbQl-9aD20i2516d26ZpOuDfIK1IgB4iK6J2CbZqIXlsaUFpTUw-QuDNzFVZf" alt=""><figcaption></figcaption></figure>

### &#x20; 3.  Complete the steps in the **Swap** tab to execute the swap.

<figure><img src="https://lh3.googleusercontent.com/vgrYwMTn4zxeTYM5MSvoS3t4PiEwvfgAuz04FU7h65grXDAwOO2MrlGzPLBorNIa4kokp2Odb7uF4yg1nllhbAm6S9staMxcTWweqZD6W26QY-v8MOWxoSxnq5cmLZ-GtOXnKf_YhOBAen7BFJAylt1QeVc3k_2u8T2JYqG0IQA689oODzTm1wud5Bz1" alt=""><figcaption></figcaption></figure>

#### ***User Instructions***:&#x20;

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

<figure><img src="https://lh4.googleusercontent.com/_ku_jRizFY1bBOj-WmVc5e3bUNdoOkJFpJ4sNEOPdjFPzJWw5vbBILQYWQ84VLBvU5UruwO_KwKff0uTd4onh0m5L0tKeBX1VMK0uNy1H22NqiKdfAJw4caFcDIiiudAigPQjUWmIZ3MQ708rYqhvx_ni89g1hDA687zl-YD8yZ3yKUxQJxR5CHliRy-" alt=""><figcaption></figcaption></figure>

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&#x20;
* **Authorize**: Authorizes the funds to be moved from the wallet
* **Cancel**: Backs out of the swap

&#x20;*\*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***:&#x20;

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:

<figure><img src="https://lh5.googleusercontent.com/tvVYr8IrU-RSYmL1RUgKrsWz8R5wY1FJH4lee65Sr_kWVc1Vq0rIWRcyF2Nu_MdQuIRp9yMzsZxoGY1o310i0UamjoKFg6hwj72my7JMd5C6hgVKx-iRZ0_DDwJUpsOxvzmJxNPM3vABDHE5AruRrMUfvS5uP49DourVwuMWbyKz5alxgrA8-MnGrgl6" alt=""><figcaption></figcaption></figure>

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.&#x20;

## Appendix A

The following are instructions for an **Agent** to create a new swap.&#x20;

### &#x20; 1.  Click on the **Agent** tab.

<figure><img src="https://lh5.googleusercontent.com/bPW01178EySDNRkF7y2fRy0rACYuSnig04IOj1hRK2x0TqrI6Q0mYl9B_ppF7Zpg2p48m_mc8XimB5Xjh_duvNUEMjJ4dWzWnwyVRMi0X_PK26X2qfw7LBG2z49ID0UlPOxyInNYWHTzNPw8pH5m6vi9eWJkfW0tYXdvrQSmUOUKYAGCxJafeYwwEBwd" alt=""><figcaption></figcaption></figure>

Once in the **Agent** tab, use the information collected in the [prerequisites](#prerequisites) section of this guide to populate the fields:

<figure><img src="https://lh6.googleusercontent.com/gZ4KsZqhZkyuLgDYPc7MsemnNdrTLvsfn4v0QcjPOD2x53hmV0094D78b52icCgqDvIwkS-kbPgEcwTXifV0OiGbgA6aO0FwfH_6EjGjSHAaJcUK9N0Dxyw9Pms9u8iKjQbg1HeWmRDm730H825XBgCcwT5iGD8kAsSfNmCVrjQb71eCJuW8IGrEKn97" alt=""><figcaption></figcaption></figure>

### &#x20;  2.  Click on **Create Swap**.&#x20;

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

### &#x20; 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.

<figure><img src="https://lh4.googleusercontent.com/osN6lrtxgcIR8u_v4KrxzXR6ay1qNdO_TLokNPS9zg8kM_nLRM8tw2OYYWwmPiEmMxcMXbrWCTEE7148HDskKPXRrgJ-aapHuD9aZzJE9_lNDH_GfZllSNGwghvrej6qsgy1wDOyI5iA6klYokyKLCJk8smbnj_C5D5rENgBeWJgYmZ_4Wqb0mJydNRX" alt=""><figcaption></figcaption></figure>

*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

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://triswap.gitbook.io/triswap/guides/quickstart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
