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 Code | Error | Error Description |
|---|---|---|
| 6000 | InvalidWormholeMessage | Received an invalid wormhole message. |
| 6001 | DeserializeMessageFailed | An error occurred when deserializing the message. |
| 6002 | InvalidPriceUpdate | Received an invalid price update. |
| 6003 | UnsupportedMessageType | This type of message is not supported currently. |
| 6004 | InvalidDataSource | The tuple emitter chain, emitter doesn't match one of the valid data sources. |
| 6005 | InsufficientFunds | Funds are insufficient to pay the receiving fee. |
| 6006 | FeedIdMismatch | Cannot calculate TWAP, end slot must be greater than start slot. |
| 6007 | ExponentMismatch | The start and end messages must have the same feed ID. |
| 6008 | InvalidTwapSlots | The start and end messages must have the same exponent. |
| 6009 | InvalidTwapStartMessage | Start message is not the first update for its timestamp. |
| 6010 | InvalidTwapEndMessage | End message is not the first update for its timestamp. |
| 6011 | TwapCalculationOverflow | Overflow in TWAP calculation. |
| 6012 | WrongWriteAuthority | This signer can't write to price update account. |
| 6013 | WrongVaaOwner | The posted VAA account has the wrong owner. |
| 6014 | DeserializeVaaFailed | An error occurred when deserializing the VAA. |
| 6015 | InsufficientGuardianSignatures | The number of guardian signatures is below the minimum. |
| 6016 | InvalidVaaVersion | Invalid VAA version. |
| 6017 | GuardianSetMismatch | Guardian set version in the VAA doesn't match the guardian set passed. |
| 6018 | InvalidGuardianOrder | Guardian signature indices must be increasing. |
| 6019 | InvalidGuardianIndex | Guardian index exceeds the number of guardians in the set. |
| 6020 | InvalidSignature | A VAA signature is invalid. |
| 6021 | InvalidGuardianKeyRecovery | The recovered guardian public key doesn't match the guardian set. |
| 6022 | WrongGuardianSetOwner | The guardian set account is owned by the wrong program. |
| 6023 | InvalidGuardianSetPda | The Guardian Set account doesn't match the PDA derivation. |
| 6024 | GuardianSetExpired | The Guardian Set is expired. |
| 6025 | GovernanceAuthorityMismatch | The signer is not authorized to perform this governance action. |
| 6026 | TargetGovernanceAuthorityMismatch | The signer is not authorized to accept the governance authority. |
| 6027 | NonexistentGovernanceAuthorityTransferRequest | The governance authority needs to request a transfer first. |
| 6028 | ZeroMinimumSignatures | The 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 Code | Error | Error Description |
|---|---|---|
| 10000 | PriceTooOld | This price feed update's age exceeds the requested maximum age. |
| 10001 | InvalidWindowSize | This TWAP update's window size is invalid. |
| 10002 | MismatchedFeedId | The price feed update doesn't match the requested feed id. |
| 10003 | InsufficientVerificationLevel | This price feed update has a lower verification level than the one requested. |
| 10004 | FeedIdMustBe32Bytes | Feed id must be 32 Bytes, that's 64 hex characters or 66 with a 0x prefix. |
| 10005 | FeedIdNonHexCharacter | Feed id contains non-hex characters. |