Explain a Solana program error code
explain_errorLooks up what a custom program error code means for a given program, using 1,800+ named errors from major Solana programs plus the runtime's own errors. Use it when you only have a code such as 6001 or 0x1771 from a simulation or an RPC response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Error code as a number, or a hex string like 0x1771. | |
| programId | Yes | Base58 address of the program that raised the error. |