> For the complete documentation index, see [llms.txt](https://docs.reflect.now/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.reflect.now/super-agent/flight-fren/commands-and-actions.md).

# Commands and actions

All commands fall into four main categories: Fetching onchain data, creating onchain transactions, market analysis, investment opportunities, communication, and assistance.

## Creating onchain transactions

* [**Token swaps**](#token-swaps): Users can initiate token swaps directly within the chat, using Aerodrome for transactions.
* **Adding / Removing LP**
* **Staking LP / Claiming Rewards**
* **Voting and Locks**

### Token swaps:

{% hint style="info" %}
Input tips: Enter the ticker amount you want to use (number or %) and the token you want to receive. Try it!
{% endhint %}

<figure><img src="https://3965849107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fza1oENpBEwNUvv6upidO%2Fuploads%2FdX4I4v7nJHfuVKnW0E0C%2Fimage.png?alt=media&amp;token=6a51fca3-3af5-4f83-b18b-05840258fd7b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3965849107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fza1oENpBEwNUvv6upidO%2Fuploads%2FaUfdX0S8xYBcAfSGDUid%2Fimage.png?alt=media&amp;token=0d91f997-c25b-4b4a-b4f6-63c13b3bb4bd" alt=""><figcaption></figcaption></figure>

**You'll receive a confirmation message after successful transactions with a hash**

**Let's look closer at how it works onchain**

**Transaction action:** Call  `Swap Exact ETH` Function by `signing wallet` on `0x830A46707A0bEa3c6c526499d0c9e42E826618E7`contract address

**ERC-20 Tokens Transferred:**&#x20;

1. From `Aerodrome: Router` To  `0x37785d5bE19D0d9559D4634a5385c72c419b25Da` For 0.00059773898559113 ($1.68) Wrapped Ethereum ([WETH](https://basescan.org/token/0x4200000000000000000000000000000000000006?a=0xb31c02ae5291332bdd695a428543f30a64d112a3))\
   **You send input token to Aerodrome for swap**
2. From `0x37785d5bE19D0d9559D4634a5385c72c419b25Da` To `signing wallet` For 8.674441377777738752 Reflect ([RFL](https://basescan.org/token/0x6e2c81b6c2c0e02360f00a0da694e489acb0b05e))\
   **You receive an output token in your wallet**
3. From `0x37785d5bE19D0d9559D4634a5385c72c419b25Da`  To `0xB31c02Ae5291332bDd695a428543f30A64d112A3` For 0.000005977389855911 ($0.02) Wrapped Ethereum ([WETH](https://basescan.org/token/0x4200000000000000000000000000000000000006?a=0xb31c02ae5291332bdd695a428543f30a64d112a3))\ <mark style="background-color:green;">**Swap Fee sent to Reflect Treasury**</mark>

**Transaction Fee:** 0.00000408891288838 ETH ($0.01)

{% hint style="success" %}
Reflect receives 0.8% fees in $ETH from each swap that goes to the treasury to help project development
{% endhint %}

## Fetching onchain data

* [**Check balance**](#check-balance):&#x20;
  * The chat engine retrieves the user's connected wallet address.
  * It queries the blockchain via the RPC endpoint to fetch token balances.
  * The system decodes the raw data to format token balances, including supported tokens, and calculates their USD values.
* [**LP position monitoring**](#liquidity-positions):
  * The backend queries Aerodrome's smart contracts for the user's liquidity pool (LP) positions.
  * It retrieves data like LP holdings and staked LP tokens
  * The backend decodes raw data and calculates accumulated rewards and token pair details.
  * It queries the on-chain data to fetch AERO emissions and fees collected.

### Check balance:

{% hint style="info" %}
Input examples: 'Show me my balance', 'What's my balance', 'Balance', etc.
{% endhint %}

<figure><img src="https://3965849107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fza1oENpBEwNUvv6upidO%2Fuploads%2FC1pQPzIDjL18OFIj4YIC%2Fimage.png?alt=media&amp;token=a2503fa3-a7de-4b48-82df-a2086865b9d6" alt=""><figcaption></figcaption></figure>

### Liquidity positions

{% hint style="info" %}
Input examples: 'My liquidity positions', 'My LP', 'Check my liquidity', etc.
{% endhint %}

<figure><img src="https://3965849107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fza1oENpBEwNUvv6upidO%2Fuploads%2FAXkHLvZT9h8TXsqXlvqR%2Fimage.png?alt=media&amp;token=643c8ca0-e849-44de-8d23-d4832e3b4b88" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Input examples: 'What are my Aerodrome earnings?', 'My LP rewards', 'Staked liquidity income', etc
{% endhint %}

<figure><img src="https://3965849107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fza1oENpBEwNUvv6upidO%2Fuploads%2FEvXezCyaP3T6wnh81u1j%2Fimage.png?alt=media&amp;token=02a801ac-3afc-4676-8ea2-28a218cffecd" alt=""><figcaption></figcaption></figure>

## Token and invest analysis

[**Token analysis**](#token-and-invest-analysis): Users can scan and analyze any token, gaining insights into its performance, market data, and more.

{% hint style="info" %}
Input examples: 'Analyze $ticker for investing', 'How to earn income with $ticker holdings?', 'Invest opportunities right now', etc.
{% endhint %}

<figure><img src="https://3965849107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fza1oENpBEwNUvv6upidO%2Fuploads%2FzsDfOBXXfS4W5MiA060U%2Fimage.png?alt=media&amp;token=6cb94623-d362-4894-9694-8b800417999e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3965849107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fza1oENpBEwNUvv6upidO%2Fuploads%2FuHov7KTx79qEABQRH4EU%2Fimage.png?alt=media&amp;token=ea3d407b-f249-4b93-8fca-7300006cac1f" alt=""><figcaption></figcaption></figure>
