> 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

## 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="/files/9GwkyQ1s0S8fnEE9FlLm" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/HBAX2o3J1YKkF6DsGSQJ" 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="/files/YJbN7aL55LSGo1C8kDSg" alt=""><figcaption></figcaption></figure>

### Liquidity positions

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

<figure><img src="/files/0VpvY4uqaDCxKX6wCy3q" 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="/files/p3sbH0S9qZqfaIZjVRFJ" 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="/files/1kn1RXVuluLDL8Uatm5N" alt=""><figcaption></figcaption></figure>

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