> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendai.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Token Plugin

> Interact with, create and transfer tokens on the Solana blockchain

# Token Plugin

The `@solana-agent-kit/plugin-token` plugin provides a set of tools and actions to interact with, create and transfer tokens on the Solana blockchain.

## Installation

Install the plugin alongside the core Solana Agent Kit:

```bash theme={"system"}
npm install solana-agent-kit @solana-agent-kit/plugin-token
```

## Integration

Add the Token plugin to your agent:

```javascript theme={"system"}
import { SolanaAgentKit } from "solana-agent-kit";
import TokenPlugin from "@solana-agent-kit/plugin-token";

const agent = new SolanaAgentKit(
  wallet,
  "YOUR_RPC_URL",
  {
    OPENAI_API_KEY: "YOUR_OPENAI_API_KEY",
  }
).use(TokenPlugin);
```

## Available Tools

### Dexscreener

| Tool Name                   | Description                                        |
| --------------------------- | -------------------------------------------------- |
| `getTokenDataByAddress`     | Get token data using a token's mint address        |
| `getTokenAddressFromTicker` | Get a token's mint address using its ticker symbol |

### Jupiter

| Tool Name          | Description                                  |
| ------------------ | -------------------------------------------- |
| `fetchPrice`       | Get the current price of a token in USDC     |
| `stakeWithJup`     | Stake SOL to receive jupSOL                  |
| `trade`            | Swap tokens using Jupiter's aggregator       |
| `getTokenByTicker` | Get token data using a token's ticker symbol |

### Light Protocol

| Tool Name               | Description                                                      |
| ----------------------- | ---------------------------------------------------------------- |
| `sendCompressedAirdrop` | Send compressed token airdrops to multiple addresses efficiently |

### Solana

| Tool Name                 | Description                                    |
| ------------------------- | ---------------------------------------------- |
| `closeEmptyTokenAccounts` | Close empty token accounts to reclaim rent     |
| `getTPS`                  | Get current transactions per second on Solana  |
| `get_balance`             | Get SOL or token balance for a wallet          |
| `get_balance_other`       | Get balance for another wallet address         |
| `get_token_balance`       | Get detailed token balances including metadata |
| `request_faucet_funds`    | Request tokens from a faucet (devnet/testnet)  |
| `transfer`                | Transfer SOL or tokens to another address      |
| `getWalletAddress`        | Get the wallet address of the current user     |

### Mayan

| Tool Name | Description                             |
| --------- | --------------------------------------- |
| `swap`    | Cross-chain token swaps using Mayan DEX |

### Pumpfun

| Tool Name            | Description                   |
| -------------------- | ----------------------------- |
| `launchPumpFunToken` | Launch new tokens on pump.fun |

### Pyth

| Tool Name              | Description                                |
| ---------------------- | ------------------------------------------ |
| `fetchPythPrice`       | Get real-time price data from Pyth oracles |
| `fetchPythPriceFeedID` | Get price feed ID for a token              |

### Rugcheck

| Tool Name                  | Description                          |
| -------------------------- | ------------------------------------ |
| `fetchTokenDetailedReport` | Get detailed token security analysis |
| `fetchTokenReportSummary`  | Get summarized token security report |

### Solutiofi

| Tool Name       | Description                            |
| --------------- | -------------------------------------- |
| `burnTokens`    | Burn tokens using Solutiofi            |
| `closeAccounts` | Close token accounts using Solutiofi   |
| `mergeTokens`   | Merge multiple tokens into one         |
| `spreadToken`   | Split tokens across multiple addresses |

For more detailed information, please refer to the full documentation at [docs.sendai.fun](https://docs.sendai.fun).
