Solana error codes › JSON-RPC -32002

Solana RPC error -32002 SendTransactionPreflightFailure

Transaction simulation failed: <error>

Preflight simulation of the transaction failed before it was sent. The real cause is inside: read the nested error and the program logs (for example a custom program error).

JSON-RPC server errors come from the RPC node, not from a program. Codes −32001 to −32022 are defined by the Solana validator software (Agave).

Find the real error

Look inside the error for custom program error: 0x… or an InstructionError and paste it here:

Free, no sign-up, nothing to connect. Works offline from a bundled list; we do not look anything up on-chain.

All Solana RPC errors

-32001BlockCleanedUp
-32002SendTransactionPreflightFailure
-32003TransactionSignatureVerificationFailure
-32004BlockNotAvailable
-32005NodeUnhealthy
-32006TransactionPrecompileVerificationFailure
-32007SlotSkipped
-32008NoSnapshot
-32009LongTermStorageSlotSkipped
-32010KeyExcludedFromSecondaryIndex
-32011TransactionHistoryNotAvailable
-32012ScanError
-32013TransactionSignatureLenMismatch
-32014BlockStatusNotAvailableYet
-32015UnsupportedTransactionVersion
-32016MinContextSlotNotReached
-32017EpochRewardsPeriodActive
-32018SlotNotEpochBoundary
-32019LongTermStorageUnreachable
-32020FilterTransactionNotFound
-32021NoSlotHistory
-32022LeaderScheduleIdentityNotFound

Source: Agave rpc-client-api custom_error.rs, 2026-11-16.