solana-tx-building

Construct and simulate Solana legacy and versioned transactions.

266|54|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/agiprolabs/claude-trading-skills --skill solana-tx-building
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-tx-building
Source: https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/solana-tx-building
Command: npx skills add https://github.com/agiprolabs/claude-trading-skills --skill solana-tx-building

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of building Solana transactions programmatically, ensuring accuracy and adherence to network constraints.

Core Features & Use Cases

  • Transaction Construction: Build legacy and versioned transactions, including SOL transfers, SPL token transfers, and ATA creation.
  • Compute Budget Management: Set compute unit limits and priority fees to optimize transaction execution and cost.
  • Simulation & Analysis: Simulate transactions before submission to catch errors and estimate costs.
  • Use Case: Automatically construct a transaction to swap SOL for USDC via Jupiter, including necessary compute budget instructions and simulating it to verify success before user confirmation.

Quick Start

Use the solana-tx-building skill to build a SOL transfer transaction from 'sender_pubkey' to 'recipient_pubkey' for 0.1 SOL.

Frequently Asked Questions about solana-tx-building

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Solana transaction with compute budget instructions and priority fees?

To build a Solana transaction with compute budget instructions, append compute unit limits and priority fees to optimize execution cost. The skill programmatically constructs these instructions alongside standard operations to ensure transaction validity and manage network fees.

Can I simulate Solana transactions before submission to catch errors?

Yes, you can simulate Solana transactions before submission to catch errors. By integrating with RPC methods for blockhash retrieval and transaction simulation, the construction process validates instructions and estimates costs prior to network broadcast.

How do I create an Associated Token Account and transfer SPL tokens programmatically?

Creating an Associated Token Account and transferring SPL tokens programmatically involves building specific instructions for ATA creation and token transfers. This skill handles instruction building for these common operations within both legacy and versioned transaction formats.

Does this approach support both legacy and versioned Solana transaction formats?

Yes, this approach supports both legacy and versioned Solana transaction formats. It programmatically constructs transactions across both formats, allowing you to handle SOL transfers, SPL token transfers, and ATA creation while adhering to current network constraints.

How do I retrieve a blockhash for Solana transaction construction?

To retrieve a blockhash for Solana transaction construction, integrate with RPC methods. The skill automatically handles blockhash retrieval during the transaction building process to ensure the transaction is valid and optimized for network fees.