Developer Hub

SVM Error Codes

Decode the error codes emitted by Pyth SVM contracts

The following tables contain the errors used in the Pyth Network's SVM contracts. This information is derived from the pyth-solana-receiver error.rs and pyth_solana_receiver_sdk error.rs files and can be used to decode error codes programmatically.

Receiver Errors

Error CodeErrorError Description
6000InvalidWormholeMessageReceived an invalid wormhole message.
6001DeserializeMessageFailedAn error occurred when deserializing the message.
6002InvalidPriceUpdateReceived an invalid price update.
6003UnsupportedMessageTypeThis type of message is not supported currently.
6004InvalidDataSourceThe tuple emitter chain, emitter doesn't match one of the valid data sources.
6005InsufficientFundsFunds are insufficient to pay the receiving fee.
6006FeedIdMismatchCannot calculate TWAP, end slot must be greater than start slot.
6007ExponentMismatchThe start and end messages must have the same feed ID.
6008InvalidTwapSlotsThe start and end messages must have the same exponent.
6009InvalidTwapStartMessageStart message is not the first update for its timestamp.
6010InvalidTwapEndMessageEnd message is not the first update for its timestamp.
6011TwapCalculationOverflowOverflow in TWAP calculation.
6012WrongWriteAuthorityThis signer can't write to price update account.
6013WrongVaaOwnerThe posted VAA account has the wrong owner.
6014DeserializeVaaFailedAn error occurred when deserializing the VAA.
6015InsufficientGuardianSignaturesThe number of guardian signatures is below the minimum.
6016InvalidVaaVersionInvalid VAA version.
6017GuardianSetMismatchGuardian set version in the VAA doesn't match the guardian set passed.
6018InvalidGuardianOrderGuardian signature indices must be increasing.
6019InvalidGuardianIndexGuardian index exceeds the number of guardians in the set.
6020InvalidSignatureA VAA signature is invalid.
6021InvalidGuardianKeyRecoveryThe recovered guardian public key doesn't match the guardian set.
6022WrongGuardianSetOwnerThe guardian set account is owned by the wrong program.
6023InvalidGuardianSetPdaThe Guardian Set account doesn't match the PDA derivation.
6024GuardianSetExpiredThe Guardian Set is expired.
6025GovernanceAuthorityMismatchThe signer is not authorized to perform this governance action.
6026TargetGovernanceAuthorityMismatchThe signer is not authorized to accept the governance authority.
6027NonexistentGovernanceAuthorityTransferRequestThe governance authority needs to request a transfer first.
6028ZeroMinimumSignaturesThe minimum number of signatures should be at least 1.

SDK Errors

These errors are returned by the Pyth Solana Receiver SDK when reading price data.

Error CodeErrorError Description
10000PriceTooOldThis price feed update's age exceeds the requested maximum age.
10001InvalidWindowSizeThis TWAP update's window size is invalid.
10002MismatchedFeedIdThe price feed update doesn't match the requested feed id.
10003InsufficientVerificationLevelThis price feed update has a lower verification level than the one requested.
10004FeedIdMustBe32BytesFeed id must be 32 Bytes, that's 64 hex characters or 66 with a 0x prefix.
10005FeedIdNonHexCharacterFeed id contains non-hex characters.

On this page