solana-tx-building

solana-tx-building is a skill for Claude Code from agiprolabs/claude-trading-skills. It costs 27 tokens per session (2,829 once invoked), scanned A, original, MIT.

A guide to building Solana blockchain transactions in code. It covers instructions, accounts, transaction size, compute limits, priority fees, and newer versioned transaction formats, without signing or sending real transactions.

In plain words
What is it for?
Use it to encode instructions, resolve accounts, set compute budgets and priority fees, build versioned transactions, simulate them, and check their contents and size.
Why use it?
It helps developers construct and inspect transactions safely while avoiding accidental real transfers or submissions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the trading-skills plugin — 68 skills shipped together

not rated 356repo +10 9d ago A scan Socket: passSnyk: warnSkillSpector: warn 27 tokens original MIT

Good fit Use it to encode instructions, resolve accounts, set compute budgets and priority fees, build versioned transactions, simulate them, and check their contents and size.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agiprolabs/claude-trading-skills/solana-tx-building
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agiprolabs/claude-trading-skills --skill solana-tx-building
Clone the repo
git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills

Made for: Claude Code.

Or install trading-skills, the plugin that ships this one along with the rest of its 68 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for solana-tx-building

README.md
[![agentmods](https://agentmods.dev/badge/skills/agiprolabs/claude-trading-skills/solana-tx-building/github.svg)](https://agentmods.dev/skills/agiprolabs/claude-trading-skills/solana-tx-building)
Your own site
<a href="https://agentmods.dev/skills/agiprolabs/claude-trading-skills/solana-tx-building"><img src="https://agentmods.dev/badge/skills/agiprolabs/claude-trading-skills/solana-tx-building/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for solana-tx-building

Your own site · 80×15
<a href="https://agentmods.dev/skills/agiprolabs/claude-trading-skills/solana-tx-building"><img src="https://agentmods.dev/badge/skills/agiprolabs/claude-trading-skills/solana-tx-building.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,829 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
  • Socket pass 21 Mar 2026
  • Snyk warn 21 Mar 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 200
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
  • high Memory Poisoning · line 322
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
  • high Memory Poisoning · line 201
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.02829
Opus 5 $0.00014 $0.01414
Sonnet 5 $0.00005 $0.00566
Haiku 4.5 $0.00003 $0.00283

Measured 13d ago against content hash 94710f597d44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

solana-tx-building scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/build_transfer.py, scripts/decode_transaction.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/solana-tx-building/SKILL.md · 349 lines

How it starts

The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Solana Transaction Building

This skill covers how to construct, simulate, and inspect Solana transactions programmatically. It addresses the full anatomy of a Solana transaction — from raw instruction encoding to versioned transaction formats, compute budget management, priority fees, and address lookup tables.

Safety: This skill is for transaction construction and analysis only. Scripts in this skill NEVER sign or submit real transactions. Always simulate before sending. Never auto-sign.

Transaction Anatomy

A Solana transaction consists of:

  1. Signatures: One or more Ed25519 signatures (64 bytes each)
  2. Message: The serializable payload containing:
    • Header: Counts of required signers, read-only signers, read-only non-signers
    • Account keys: Array of all pubkeys referenced by instructions
    • Recent blockhash: 32-byte hash for replay protection (expires ~60-90 seconds)
    • Instructions: Array of program calls

Transaction Size Limit

The hard limit is 1232 bytes for the entire serialized transaction. This constrains how many instructions and accounts you can include. Strategies to stay within the limit:

  • Use versioned transactions with Address Lookup Tables (ALTs)
  • Minimize the number of accounts per instruction
  • Combine related operations into single instructions where supported
  • Split complex operations across multiple transactions

Instruction Format

Each instruction contains three fields:

Instruction {
    program_id_index: u8,      // Index into the account keys array
    accounts: [u8],            // Indices into account keys array
    data: [u8],                // Opaque byte array interpreted by the program
}

Account Meta

Every account referenced in an instruction has metadata:

AccountMeta {
    pubkey: Pubkey,            // 32-byte public key
    is_signer: bool,           // Must sign the transaction
    is_writable: bool,         // Will be written to by this instruction
}

Read the full file on GitHub · 349 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 349 lines · 27 tokens per session scan A 94710f597d44

Subscribe to this mod's changes

solana-tx-building is a skill published in the GitHub repository agiprolabs/claude-trading-skills (356 stars, last pushed 9d ago), licensed MIT. It adds 27 tokens to every session and 2,829 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.