> For the complete documentation index, see [llms.txt](https://docs.xy.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xy.finance/single-bridge-integration/xasset-bridge/how-to-deposit-withdraw-liquidity/through-the-explorer.md).

# Through the Explorer

### Before you begin adding liquidity, you must prepare several things:

* Your Wallet with the token you want to deposit
* Your Token Contract ([Example](https://bscscan.com/address/0x9a257c90fa239fba07771ef7da2d554d148c2e89#writeContract))
* Ralayer Contract for your token ([Example](https://bscscan.com/address/0x5bd40e579cb7d37784689044e6c7c333e2e300e6#writeContract))

## Deposit liquidity

### Step1 : Approve the Relayer Contract as Spender on Token Contract

* Visit the **token contract page** on the explorer.
* Navigate to the **Contract tab - Write Contract** and then connect your wallet&#x20;

<figure><img src="/files/sxneWaqTBRksbeZnCOCY" alt=""><figcaption></figcaption></figure>

* Locate the **approve** section&#x20;

<figure><img src="/files/r1Mdp5q4L9CAHd0yMMnU" alt=""><figcaption></figcaption></figure>

* Input two fields in the **approve** session to approve the Relayer Contract
  * spender (address): Fill in with **Relayer Contract** Address (do not enter your wallet address here).
  * amount  (uint256): Input the quantity you wish to approve with its corresponding decimals. For instance, if you want to approve 50 tokens and the decimal is 18, then input 50,000,000,000,000,000,000.
  * If you are not familiar with the decimal, you can locate it in the overview section of your token contract page on the explorer.

<figure><img src="/files/FA6CKWVovfCFXkwV6oHE" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/RhhFSGifWI22K8H0n8bN" alt=""><figcaption><p>Find the decimal on your token page</p></figcaption></figure>

* Complete the approval by sending the transaction.

### Step2 : Go to Relayer Contract to Execute Deposit.

* Visit the relayer contract page on the Explorer.&#x20;
* Navigate to the **Contract tab - Write Contract** and then connect your wallet&#x20;

<figure><img src="/files/RLyJEYzbYvtq2QH7T19a" alt=""><figcaption></figcaption></figure>

* Locate the **5. deposit** section&#x20;

<figure><img src="/files/d6ek5VLwEXKhLdbeFBPo" alt=""><figcaption></figcaption></figure>

* Input two fields in the **5. deposit** session to deposit your token
  * deposit: Keep 0
  * amount  (uint256): Input the quantity you want to deposit with its corresponding decimals. For instance, if you want to deposit 50 tokens and the decimal is 18, then input 50000000000000000000.
  * If you are not familiar with the decimal, you can locate it in the overview section of your token contract page on the explorer.

<figure><img src="/files/kFqgiOTzGYqJeXD3cy7L" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/RhhFSGifWI22K8H0n8bN" alt=""><figcaption><p>Find the decimal on your token page</p></figcaption></figure>

* Complete the deposit by sending the transaction.

## Withdraw liquidity

### Step1 : Approve the Relayer Contract as Spender on Relayer Contract

* Visit the **Relayer contract page** on the explorer.
* Navigate to the **Contract tab - Write Contract** and then connect your wallet&#x20;

<figure><img src="/files/RLyJEYzbYvtq2QH7T19a" alt=""><figcaption></figcaption></figure>

* Find the **2. approve** section&#x20;

<figure><img src="/files/nfD42eQ6Pw7gIcBhvlqV" alt=""><figcaption></figcaption></figure>

* Input two fields in the **2. approve** session to approve the Relayer Contract
  * spender (address) : Fill in with **Relayer Contract** Address (do not enter your wallet address here).
  * amount  (uint256) :  Input the quantity you wish to approve with its corresponding decimals. For instance, if you want to approve 50 tokens and the decimal is 18, then input 50,000,000,000,000,000,000.
  * If you are not familiar with the decimal, you can locate it in the overview section of your token contract page on the explorer.

<figure><img src="/files/xlCPNMMvmQZo1uHLNgEK" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KAcFFn35ziRGZQnj0yzs" alt=""><figcaption></figcaption></figure>

* Complete the approval by sending the transaction.

### Step2 : Execute Withdraw on Relayer Contract

* Locate the **19. withdraw** section on relayer contract page&#x20;

<figure><img src="/files/ahGP5yOSmhogx7sxs5Hd" alt=""><figcaption></figcaption></figure>

* Input amount fields in the **19. withdraw** session to withdraw your token
  * amount  (uint256) :  Input the quantity you want to withdraw with its corresponding decimals. For instance, if you want to withdraw 50 tokens and the decimal is 18, then input 50000000000000000000.

<figure><img src="/files/D7oQhaH31CqxyuzfMJ11" alt=""><figcaption></figcaption></figure>

* Complete the withdraw by sending the transaction.
