Works with the AI Agents you already use

    Solana tx Compute Design

    by BanditXBT

    1

    Design around Solana compute, size, lock and fee limits; reliable landing, retries and commitment levels.

    Free

    Security scanned

    About this skill

    Limits shape architecture on Solana. Verify current numbers against the Solana docs/cluster feature set before relying on them; they change with network upgrades.

    ConstraintTypical valueConsequence
    Compute units200k default per instruction, 1.4M max per txBound loops; measure CU per path
    Transaction size1232 bytes (serialized)Limits accounts/instruction data; use lookup tables
    CPI depth4Avoid deep call chains
    Stack / heap4 KB per frame / 32 KB heap defaultBox large structs; zero-copy
    Account dataup to 10 MiB; +10 KiB growth per instructionPlan realloc
    Blockhash validity~150 blocks (≈ 1-2 min)Retry/expiry logic
    Signature fee5000 lamports base per signaturePlus priority fee
    Account locks per tx64 enforced for legacy/v0 (a 128 limit exists as an inactive feature; a new tx version proposes 96)Count program IDs and signers too; re-check the current limit
    CPI limits16 PDA signers and 128 account infos per CPI (higher limit proposed)Wide CPIs need batching
    Loaded/growth limitsAccount data growth per tx is capped (tens of MiB); 10 KiB per-instruction reallocPlan large allocations across instructions
    1. Measure: log sol_log_compute_units() in dev, or read unitsConsumed from simulateTransaction. Test the worst-case path (max positions, max accounts), not the average.
    2. Set explicit limits in clients: ComputeBudgetInstruction::set_compute_unit_limit(measured × 1.1-1.2). Over-requesting wastes priority fee (fee = limit × price); under-requesting fails.
    3. Reduce CU: avoid heap allocation and large copies, prefer zero_copy, use fixed-size arrays, avoid msg! formatting in hot paths, precompute, avoid repeated PDA derivation (find_program_address is expensive; store bumps and use create_program_address), use efficient serialization, minimize CPIs and logs.
    4. Cap work per transaction by design: paginated/batched processing with explicit max_iterations, cursor state in accounts.
    • Each tx declares read/write accounts up front. Write-locks serialize: avoid a global mutable account on the hot path; shard or partition by user/market; mark accounts read-only whenever possible.
    • Address lookup tables with v0 transactions expand account capacity within the size limit; tables must be activated (wait for slot warm-up) before use; know that lookup tables cannot supply signer keys.
    • Account locks per transaction are capped (64 for legacy/v0 at last check, including program IDs and signers); lookup tables fix size, not the lock cap. Verify the current limit in the Solana constants reference.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 13 days ago

    • Free with an Agensi account

    Requires

    Nothing to install.

    Permissions

    No special permissions declared or detected

    Listed13 days ago

    What's inside

    Frequently Asked Questions

    Design around Solana compute, size, lock and fee limits; reliable landing, retries and commitment levels.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use solana-tx-compute-design on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    Free