1
Obtain a transaction signature
Find the signature you want to decode. You can get one from:
- A wallet history call to
/api/solana/transactions - Solana Explorer or Solscan
- Your own application logs
2
Call the decode endpoint
Send the signature to
/api/solana/decode-tx with your API key. You can request mainnet-beta (default) or devnet.3
Interpret the response
The gateway returns a structured breakdown you can feed directly into an LLM prompt.Key fields for agents:
string
required
One of
Swap, MemeCoin, or Transfer. Use this to branch agent logic.string
required
A one-line human-readable description of what happened.
string
required
A pre-formatted sentence combining category, summary, and status. Ideal for dropping into a prompt template.
string
required
SUCCESS or FAILED. Check this before acting on the transaction.4
Use in an agent prompt
Feed the decoded result into your agent context:
Category reference
The gateway detects categories from program logs:Swap
Jupiter, Raydium, or other DEX aggregator interactions.
MemeCoin
Pump.fun mints or swaps. Flagged for higher risk review.
Transfer
Native SOL or SPL token transfers between wallets.
Error handling
Result
You can now turn any Solana signature into a structured, LLM-ready summary in a single API call. Usecategory to route agent behavior, summary for user-facing explanations, and llm_context for prompt injection.
Next steps
- Claim an API Key if you need a key to call paid endpoints
- MCP Integration to use
decode_txas an MCP tool in Claude Desktop or Cursor