gitwtfhub

wtf is solana-safe-trade-skill?

thisyearnofear/solana-safe-trade-skill — explained in plain English

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 3/5LicenseSetup · moderate

TL;DR

A four-step safety check that runs before a Solana trading agent buys a token, catching scam and honeypot tokens before money is at risk.

Mindmap

mindmap
  root((solana-safe-trade-skill))
    What it does
      Pre trade safety check
      Blocks honeypot tokens
      Solana AI Kit skill
    Four gates
      Allowlist check
      Price sanity check
      Liquidity check
      Routability check
    Tech stack
      TypeScript
      Node fetch
      Jupiter API
      Pyth oracle
    Use cases
      Agent pre trade screen
      Institutional tuning
      Memecoin bot tuning
    Origins
      BSC production proof
      Superteam bounty project

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Add a pre-trade safety check in front of an autonomous Solana trading agent to block scam tokens.

REASON 2

Screen a candidate token mint for honeypot patterns before executing a swap.

REASON 3

Tune trade safety thresholds differently for a cautious institutional bot versus an aggressive memecoin bot.

REASON 4

Reuse the standalone TypeScript safety check in any Node project that trades on Solana.

What's in the stack?

TypeScriptNode.jsSolanaJupiter APIPyth

How it stacks up

thisyearnofear/solana-safe-trade-skill0xradioac7iv/tempfs7vignesh/pgpulse
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Installs as a submodule into an existing Solana AI Kit setup and calls several external price and liquidity APIs.

MIT licensed: free to use, modify, and redistribute, including commercially, as long as the copyright notice is kept.

Wtf does this do

This project is a safety check that runs before an automated trading agent buys a token on the Solana blockchain. It is built as a skill for the Solana AI Kit, a framework that lets AI agents hold a wallet and trade tokens on their own. The problem it solves is that most Solana trading skills will happily try to buy any token an agent points at, including scam tokens set up to look real but that trap your money once you buy in, sometimes called honeypots. The tool runs four checks, called gates, in order from cheapest to most expensive, and stops as soon as one fails. First it checks whether the token is on Jupiter's list of known, verified tokens, which catches fake tokens pretending to be something like USDC. Second it compares the token's price against a trusted price oracle called Pyth, with a service called Birdeye as a backup, to catch tokens with wildly wrong prices. Third it checks whether the token actually has real trading activity and enough pooled money behind it, using data from DexScreener, to catch honeypots that look tradeable but are not. Fourth it asks Jupiter's own trading router whether a real trade route exists for the token, to catch tokens that pass every other check but still cannot actually be swapped. A token has to pass all four gates before the agent is allowed to trade it. The author reports this same four gate approach already running in production on a different blockchain called BSC, where it caught a real token that looked safe by every individual measure but had almost no trading volume. The repository includes a working TypeScript version of the checks, a test suite, and an install script that adds this project as a submodule into an existing Solana AI Kit setup. It also documents how to tune the safety thresholds differently depending on whether the agent is a cautious institutional bot or a more aggressive memecoin trader. The project is released under the MIT license.

Yoink these prompts

Prompt 1
Show me how to call checkTokenSafety on a token mint address before letting my agent trade it.
Prompt 2
Help me install this skill as a submodule into my existing Solana AI Kit project.
Prompt 3
Explain what each of the four safety gates in this project checks and why the order matters.
Prompt 4
Help me tune the liquidity and price band settings for a more conservative treasury trading bot.

Frequently asked questions

wtf is solana-safe-trade-skill?

A four-step safety check that runs before a Solana trading agent buys a token, catching scam and honeypot tokens before money is at risk.

What language is solana-safe-trade-skill written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Solana.

What license does solana-safe-trade-skill use?

MIT licensed: free to use, modify, and redistribute, including commercially, as long as the copyright notice is kept.

How hard is solana-safe-trade-skill to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is solana-safe-trade-skill for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.