Solana error codes › JSON-RPC -32010

Solana RPC error -32010 KeyExcludedFromSecondaryIndex

<key> excluded from account secondary indexes; this RPC method unavailable for key

The node does not index this key for this method (common with getProgramAccounts on large programs). Use another RPC or a different query.

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).

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.