npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@jjheywood/sak-plugin-token

v2.0.21

Published

This plugin provides a set of tools and actions to interact with, create and transfer tokens on the Solana blockchain.

Readme

@solana-agent-kit/token-plugin

This plugin provides a set of tools and actions to interact with, create and transfer tokens on the Solana blockchain.

Tools Available

Dexscreener

  • getTokenDataByAddress - Get token data using a token's mint address
  • getTokenAddressFromTicker - Get a token's mint address using its ticker symbol

Jupiter

  • cancelLimitOrders - Cancel limit orders on Jupiter
  • createLimitOrder - Create a limit order on Jupiter
  • fetchPrice - Fetch the price of a token
  • getLimitOrderHistory - Get the history of limit orders
  • getOpenLimitOrders - Get open limit orders
  • getTokenDataByTicker - Get token data using a ticker symbol
  • stakeWithJup - Stake tokens using Jupiter
  • trade - Trade tokens using Jupiter

Light Protocol

  • sendCompressedAirdrop - Send compressed token airdrops to multiple addresses efficiently

Solana

  • 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

  • swap - Cross-chain token swaps using Mayan DEX

Pumpfun

  • launchPumpFunToken - Launch new tokens on pump.fun

Pyth

  • fetchPythPrice - Get real-time price data from Pyth oracles
  • fetchPythPriceFeedID - Get price feed ID for a token

Rugcheck

  • fetchTokenDetailedReport - Get detailed token security analysis
  • fetchTokenReportSummary - Get summarized token security report

Solana

  • balance - Get SOL balance for a wallet
  • closeEmptyTokenAccounts - Close empty token accounts
  • getTPS - Get transactions per second on Solana
  • requestFunds - Request funds from a faucet on devnet/testnet
  • tokenBalances - Get token balances for a wallet
  • transfer - Transfer SOL or tokens to another address
  • walletAddress - Get the wallet address of the current user

Solutiofi

  • burnTokens - Burn tokens using Solutiofi
  • closeAccounts - Close token accounts using Solutiofi
  • mergeTokens - Merge multiple tokens into one
  • spreadToken - Split tokens across multiple addresses

Some example Usage

Checking Token Balances

// Get all token balances for your wallet
const balances = await agent.methods.get_token_balance(agent);
console.log("SOL Balance:", balances.sol);
console.log("Token Balances:", balances.tokens);

// Get specific token balance
const usdcBalance = await agent.methods.get_balance(
  agent,
  new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v")
);

Trading Tokens

// Swap 1 SOL for USDC
const trade = await agent.methods.trade(
  agent,
  "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC mint
  1, // amount
  undefined, // input mint (undefined means SOL)
  100 // 1% slippage
);

Token Security

// Check if a token might be a rugpull
const report = await agent.methods.fetchTokenDetailedReport(
  "TokenMintAddress123"
);
console.log("Security Score:", report.score);
console.log("Risk Factors:", report.risks);

Compressed Airdrops

// Send compressed airdrop to multiple addresses
const airdrop = await agent.methods.sendCompressedAirdrop(
  agent,
  100, // amount per recipient
  new PublicKey("TokenMintAddress"), // token mint
  [
    new PublicKey("Recipient1"),
    new PublicKey("Recipient2")
  ],
  30000 // priority fee
);

For more detailed information about each action and its parameters, you can check the individual action files in the source code or refer to the official documentation at docs.sendai.fun.