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:
Integration
Add the Token plugin to your agent:
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.