Why did my Solana transaction fail?
tx_explainA Solana transaction explained by its signature: for a failure, which instruction failed, the program that actually failed (even deep inside a call to another program), its error by name and message (from the program's own log, its on-chain IDL, Anchor's framework codes or the SPL Token and System programs' codes), compute used against the limit, the priority fee paid, the likely cause and what fixes it (the compute limit to set, slippage, missing funds or accounts, a wrong or uninitialized account, an expired blockhash). For a transaction that never landed, why that usually happens. For a success, a one-line summary and tips (an oversized compute limit, no priority fee). Use for 'why did this fail?', 'what does custom error 0x1771 mean?', 'my transaction didn't land'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"signature": "<signature>"
},
"name": "tx_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | The transaction signature (base58) |