Decode a Solana program or JSON-RPC error (free)
decode_solana_errorDecode a Solana custom program error or JSON-RPC server error from a hex code (0x1771), decimal code (6001), a line such as 'custom program error: 0x1771', a JSON-RPC code such as -32002, or a full program log. Returns every known program that defines that code, or a single exact match when a program id or slug is given, plus the Rugsight Solana Error Codes page URL. Free, no payment, no RPC, no API key. Same data as GET /api/errors/decode?q={error}&program={program_id}. Use when you have a failed transaction error, a program log, or a code and need the name, message and the /errors page for it.
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": {
"error": "<error>"
},
"name": "decode_solana_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | Error text, log excerpt, hex (0x1771), decimal code (6001), 'custom program error: 0x1771', a JSON-RPC code such as -32002, or a full log line. | |
| program_id | No | Optional Solana program id (base58) or Rugsight program slug (e.g. jupiter-v6) that raised the error. Narrows the match when the same code is used by more than one program. |