Tx Doctor / Solana error library / Malformed or unsupported transaction

SanitizeFailure

Solana error: Malformed or unsupported transaction (SanitizeFailure)

The transaction could not be parsed by the node - it is structurally invalid or uses a version the endpoint does not support.

Why it happens

How to fix it

  1. Rebuild the transaction with an up-to-date SDK.
  2. When reading versioned transactions, request maxSupportedTransactionVersion.
  3. Use the official interface for that program instead of a hand-rolled script.

What it looks like in the logs

Transaction simulation failed: Transaction did not pass sanitization

Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.

Diagnose my transaction

Related Solana errors

Custom program error (unknown code)

Custom ...

Signature verification failed

SignatureFailure

Token account is frozen

Token 0x11

Account not initialized or not found

AccountNotFound