solana
Skill6 starsChanged 3 months agoMITView on GitHub
Solana signing foundation — build unsigned native SOL and SPL token transfers. Custody-free. Returns base64 VersionedTransaction the user signs externally with Phantom / Backpack / Solflare / hardware wallet. The foundation that Drift / Marginfi / Kamino signed actions build on.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- quicknode/solana-finance-claude-plugintheir own version, first seen Oct 4, 2026
- AlexAI-MCP/hermes-CCCtheir own version, first seen Apr 8, 2026
- Mindrally/skillstheir own version, first seen Jan 23, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Mindrally/skills★ 266same name
- AlexAI-MCP/hermes-CCC★ 135same name
- quicknode/solana-finance-claude-plugin★ 94same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- aaSkill
- agent-walletSkill
- baseSkill
- bridgeSkill
- chaingptSkill
- dashboardSkill
- debugSkill
- defiSkill
- deploySkill
- driftSkill
- hackathonSkill
- hyperliquidSkill
- playgroundSkill
- polymarketSkill
- researchSkill
- scheduled-autonomySkill
- securitySkill
- strategySkill
- tradeSkill
- tronSkill
- trustless-agentsSkill
- updateSkill
- x402Skill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Native SOL: when mint is omitted. Decimals: 9 (LAMPORTS_PER_SOL).
- Very specific: line 20
SPL Token (classic or Token-2022): when mint is provided. Decimals fetched from the mint account.
- Distinctive: line 28
If the user wants policy-gated signing (agent wallet pattern), the existing agent wallet skill provides that for EVM.
- Very specific: line 32
When network=mainnet, the build tool refuses unless acknowledgeMainnet=true is also passed.
- Distinctive: line 56
Default public RPC fallback per network:
- Distinctive: line 83
When you build those follow-ups, the pattern is:
- Very specific: line 85
Import buildVersionedTransaction, serializeUnsigned, makeConnection, parseAddress from lib/solana-sign.ts.
- Very specific: line 90
Add a vitest with mocked Connection.getLatestBlockhash so the test never touches the network.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Solana signing
This skill exposes a small foundation for building unsigned Solana transactions from chat. The plugin never sees a Solana private key — every state-changing tool returns a base64-encoded VersionedTransaction that the user signs in their wallet.
When to use this skill
- The user asks to "send SOL to X" or "transfer USDC to Y" from a Solana address they control.
- The user wants to inspect a Solana transaction someone else built before signing it.
- A more advanced Solana flow (Drift order, Marginfi deposit, Kamino borrow) builds on the foundation here — when those land, they will reuse
lib/solana-sign.tsdirectly.
What the surface is
chaingpt_solana_build_transfer_tx— build an unsigned transfer.- Native SOL when
mintis omitted. Decimals: 9 (LAMPORTS_PER_SOL). - SPL Token (classic or Token-2022) when
mintis provided. Decimals fetched from the mint account. Source + destination Associated Token Accounts derived automatically. IdempotentCreateATAIdempotentinstruction included so first-time-recipient transfers work without an extra setup step. acknowledgeMainnet: truerequired whennetwork=mainnet. Same gate as the EVM tools.
- Native SOL when
chaingpt_solana_decode_tx— decode an unsigned base64 versioned transaction for review (payer, blockhash, instruction count, program ids with annotations).
Custody model
Identical to the rest of the plugin: custody-free. The plugin builds the transaction; the user signs it elsewhere. There is no MCP tool that accepts a secretKey, mnemonic, or seedPhrase parameter, and a unit test asserts this surface contract so future additions cannot accidentally break it.
If the user wants policy-gated signing (agent wallet pattern), the existing agent wallet skill provides that for EVM. A Solana counterpart is queued as a follow-up to this foundation.
Mainnet safety gate
When network=mainnet, the build tool refuses unless acknowledgeMainnet=true is also passed. The refusal message lists what to verify before re-call (recipient address, amount, mint, network). This matches feedback_mainnet_default: mainnet is the target, but mainnet transactions require an explicit ack.
Typical flow
User: "Build a 0.5 USDC transfer from 7uDsTC...EUd to 9WzDXw...WWM on mainnet"
Agent: chaingpt_solana_build_transfer_tx({
from: "7uDsTC1u4eRkxsfvQHvi3vCSqGBHc4uS9wpYbobcdEUd",
to: "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
amount: "0.5",
mint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC mint
network: "mainnet",
acknowledgeMainnet: true
})
→ returns:
- decoded summary (from ATA, to ATA, amount in base units, decimals)
- the base64 VersionedTransaction
- the blockhash + lastValidBlockHeight
- next-step instructions for the signer
User: paste base64 into Phantom → review → sign → submit.RPC endpoints
Default public RPC fallback per network:
| Network | Endpoints |
| mainnet | api.mainnet-beta.solana.com → solana-rpc.publicnode.com |
| devnet | api.devnet.solana.com |
| testnet | api.testnet.solana.com |
Override via SOLANA_RPC_URL env var (Helius / QuickNode / Triton recommended for production loads).
Why TransferChecked instead of Transfer
The classic SPL Token program has two transfer instructions:
Transfer(discriminator 3): minimal — source, destination, owner, amount.TransferChecked(discriminator 12): also takesmint+decimalsand the runtime verifies they match the source account's mint.
We always emit TransferChecked. The mint/decimals check prevents an attacker from swapping an unrelated ATA into the destination slot to redirect funds.
What this skill does NOT do (yet)
- Drift signed orders — read-only via
chaingpt_drift_*today. SignedplacePerpOrder,deposit,withdraware queued as follow-up PRs that will use the foundation here. - Marginfi signed lending — read-only today. Same story.
- Kamino signed lending — read-only today. Same story.
- Jupiter swaps — already supported via
chaingpt_dex_jupiter_quote(the unsigned-swap-tx call from Jupiter's API is returned directly; no foundation needed). - NFT transfers / Metaplex — out of scope for the foundation.
When you build those follow-ups, the pattern is:
- Import
buildVersionedTransaction,serializeUnsigned,makeConnection,parseAddressfromlib/solana-sign.ts. - Build the protocol-specific
TransactionInstruction[](account derivation + IDL-encoded data). - Call
buildVersionedTransaction({ payer, instructions, connection }). - Return
serializeUnsigned(tx)plus a decoded summary. - Gate any mainnet build behind
acknowledgeMainnet:true. - Add a vitest with mocked
Connection.getLatestBlockhashso the test never touches the network.
Reference
mcp-server/src/lib/solana-sign.ts— utilities (RPC fallback, parseAddress, instruction builders, ATA derivation, mint info fetch, v0 message build, base64 ser/de).mcp-server/src/tools/solana.ts— tool surface (build_transfer_tx,decode_tx).mcp-server/src/__tests__/solana.test.ts— 29 cases.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

