Comunidade Ecossistema Desenvolvimento

orquestra-tx-builder

Use quando todas as contas e argumentos estiverem resolvidos e você precisar construir uma transação Solana não assinada via Orquestra MCP. Use quando um usuário disser 'build transaction', 'build instruction', 'create unsigned tx', 'construct the transaction', 'build the swap', 'build the stake instruction' ou 'generate base64 transaction'.

Skill do ecossistema — desenvolvida e mantida de forma independente por Orquestra, não pela Solana Foundation. Nenhuma revisão de segurança é feita; avalie antes de usar.

Um comando para Claude Code, Cursor, Codex, Windsurf e outros agentes — instala a partir do repositório original (HEAD atual; ele traz 8 skills — escolha orquestra-tx-builder quando solicitado).

$ npx skills add berkayoztunc/orquestra

Conteúdo da skill

Abrir .md

Orquestra TX Builder

Transaction construction skill. Uses ONLY Orquestra MCP’s build_instruction tool to produce a base64-encoded wire transaction (Solana RPC standard, encoding: "base64").

Constraints

  • ONLY use Orquestra MCP tool: build_instruction
  • DO NOT call build_instruction with placeholder or guessed values
  • DO NOT search programs or derive PDAs — use upstream research results
  • DO NOT sign or send — hand off to orquestra-signer

Pre-Build Checklist

All items must be confirmed before calling build_instruction:

  • program_id — exact base58 program address
  • instruction_name — exact instruction name from Orquestra
  • All required accounts — base58 addresses with signer/writable flags
  • All required arguments — values with correct types (u64, Pubkey, etc.)
  • fee_payer — wallet pubkey that pays the transaction fee

If ANY item is missing:

  • Missing account → ask user to run orquestra-pda-explorer first, or ask for exact address
  • Missing argument → ask for the argument name and its expected type
  • NEVER proceed with unknowns

Output Format

Pre-Build Summary

Program:      <name> (<program_id>)
Instruction:  <instruction_name>
Fee Payer:    <pubkey>

Accounts:
  [0] authority   <pubkey>  signer=true  writable=false
  [1] vault        <pubkey>  signer=false writable=true

Arguments:
  amount: 1500000000  (u64, lamports)

Unsigned Transaction (base64 wire format)

Encoding:  base64
Wire TX:   <base64_encoded_wire_tx>

Solana wire-format transaction serialized as base64. Submit to RPC with encoding: "base64" in the request body.

Default format is legacy. Only pass txVersion when the user asks for it: "v0", or "v1" (Transaction v1 — 4096-byte limit, max 64 inline accounts, no lookup tables, starts with byte 0x81). v1 defaults to base64, measures compute limits automatically (override via txConfig), and requires a signer/wallet that supports v1 — confirm that before building one.

RPC submission header (for manual use)

Content-Type: application/json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sendTransaction",
  "params": [
    "<base64_encoded_wire_tx>",
    { "encoding": "base64", "preflightCommitment": "confirmed" }
  ]
}

Next Step “Pass this base64 wire transaction to orquestra-signer to sign and send.”