@solana/kit · Invariant violations

Solana error #9900005

INVARIANT_VIOLATION__INVALID_INSTRUCTION_PLAN_KIND

Appears as Solana error #9900005; Decode this error by running `npx @solana/errors decode -- 9900005 '…'`

Message

Invalid instruction plan kind: $kind.

Placeholders (kind) are filled from the error’s context. Paste the base64 argument below to see the real values.

What it means

Internal consistency checks that should never fail in normal use.

What to do

  • These indicate a bug in Kit or in a custom plugin. Report it with a reproduction.

Decode it locally instead

npx @solana/errors decode -- 9900005 '<base64 context>'

In development, import from @solana/kit as usual and the full message is thrown. In production the message is stripped to keep bundles small; the error object still carries error.context with the same values this page decodes, and isSolanaError(err, SOLANA_ERROR__INVARIANT_VIOLATION__INVALID_INSTRUCTION_PLAN_KIND) lets you branch on it.

Decode another error

Try: