pub enum MetaplexError {
Show 112 variants
InstructionUnpackError,
NotRentExempt,
AlreadyInitialized,
Uninitialized,
IncorrectOwner,
NumericalOverflowError,
TokenTransferFailed,
InvalidTransferAuthority,
VaultAuthorityMismatch,
AuctionAuthorityMismatch,
AuctionManagerAuthorityMismatch,
AuctionManagerVaultMismatch,
SafetyDepositBoxVaultMismatch,
SafetyDepositBoxStoreMismatch,
SafetyDepositBoxMetadataMismatch,
SafetyDepositBoxMasterEditionOneTimeAuthMintMismatch,
SafetyDepositBoxMintMismatch,
AuctionManagerTokenMetadataProgramMismatch,
TokenProgramMismatch,
AuctionManagerAuctionMismatch,
AuctionManagerAuctionProgramMismatch,
AuctionManagerTokenProgramMismatch,
AuctionManagerTokenVaultProgramMismatch,
VaultNotCombined,
VaultCannotEmpty,
InvalidSafetyDepositBox,
CantUseLimitedSupplyEditionsWithOpenEditionAuction,
SafetyDepositBoxNotUsedInAuction,
InvalidEditionAddress,
NotEnoughEditionsAvailableForAuction,
StoreIsEmpty,
NotEnoughTokensToSupplyWinners,
AuctionManagerMustOwnPayoffAccount,
AuctionManagerMustOwnOutstandingSharesAccount,
SafetyDepositIndexMismatch,
PrizeAlreadyClaimed,
BidRedemptionMismatch,
BidAlreadyRedeemed,
AuctionHasNotEnded,
OriginalAuthorityLookupKeyMismatch,
OriginalAuthorityMismatch,
WrongBidEndpointForPrize,
BidderMetadataBidderMismatch,
MasterEditionMintMismatch,
MasterEditionOneTimeAuthMintMismatch,
PrintingTokenAccountMintMismatch,
DestinationMintMismatch,
InvalidEditionKey,
TokenMintToFailed,
MasterMintAuthorityMismatch,
MasterEditionOneTimeAuthorizationMintMismatch,
AuctionAcceptPaymentMintMismatch,
AcceptPaymentOwnerMismatch,
AcceptPaymentMismatch,
NotEligibleForParticipation,
AuctionManagerMustBeValidated,
SafetyDepositBoxMasterMintMismatch,
AcceptPaymentMintMismatch,
NotEnoughBalanceForParticipation,
DerivedKeyInvalid,
WhitelistedCreatorInactive,
InvalidWhitelistedCreator,
AuctionManagerStoreMismatch,
InvalidCreatorIndex,
InvalidWinningConfigIndex,
CreatorIndexExpected,
WinningConfigSafetyDepositMismatch,
ParticipationSafetyDepositMismatch,
ParticipationNotPresent,
NotAllBidsClaimed,
InvalidWinningConfigItemIndex,
OneTimeAuthorizationTokenMustBeOne,
AddReservationListFailed,
CloseAccountFailed,
CreatorHasNotVerifiedMetadata,
DuplicateWinningConfigItemDetected,
PrintingAuthorizationTokenAccountMismatch,
TransientAuthAccountMintMismatch,
ParticipationPrintingEmpty,
PrintingAuthorizationTokensFailed,
InvalidTokenProgram,
AuctionManagerTokenMetadataMismatch,
AlreadyValidated,
AuctionMustBeCreated,
DelegateShouldBeNone,
CloseAuthorityShouldBeNone,
DataTypeMismatch,
AuctioneerCantClaimWonPrize,
MustBeAuctioneer,
WinnerAmountMismatch,
InvalidStatus,
InvalidEditionNumber,
InvalidOperation,
ProvidedAccountDoesNotContainOneToken,
WinnerIndexMismatch,
InvalidWinningConfigSafetyDepositIndex,
SafetyDepositConfigOrderMismatch,
WinnerIndexNotFound,
AlreadyHasOneParticipationPrize,
NoTokensForThisWinner,
PrintingV1NotAllowedWithAuctionManagerV2,
InvalidSystemProgram,
DuplicateKeyDetected,
MaxMetadataCacheSizeReached,
InvalidCacheOffset,
ExpectedAboveAuctionCacheToBeProvided,
ExpectedBelowAuctionCacheToBeProvided,
CacheMismatch,
CacheAboveIsNewer,
CacheBelowIsOlder,
AuctionManagerInFishedState,
PublicKeyMismatch,
}Expand description
Errors that may be returned by the Metaplex program.
Variants§
InstructionUnpackError
Invalid instruction data passed in.
NotRentExempt
Lamport balance below rent-exempt threshold.
AlreadyInitialized
Already initialized
Uninitialized
Uninitialized
IncorrectOwner
Account does not have correct owner
NumericalOverflowError
NumericalOverflowError
TokenTransferFailed
Token transfer failed
InvalidTransferAuthority
Invalid transfer authority provided
VaultAuthorityMismatch
Vault’s authority does not match the expected pda with seed [‘metaplex’, auction_key]
AuctionAuthorityMismatch
Auction’s authority does not match the expected pda with seed [‘metaplex’, auction_key]
AuctionManagerAuthorityMismatch
The authority passed to the call does not match the authority on the auction manager!
AuctionManagerVaultMismatch
Vault given does not match that on given auction manager!
SafetyDepositBoxVaultMismatch
The safety deposit box given does not belong to the given vault!
SafetyDepositBoxStoreMismatch
The store given does not belong to the safety deposit box given!
SafetyDepositBoxMetadataMismatch
The metadata given does not match the mint on the safety deposit box given!
SafetyDepositBoxMasterEditionOneTimeAuthMintMismatch
The Safety Deposit Box mint does not match the one time auth mint on the master edition
SafetyDepositBoxMintMismatch
The mint given does not match the mint on the given safety deposit box!
AuctionManagerTokenMetadataProgramMismatch
The token metadata program given does not match the token metadata program on this auction manager!
TokenProgramMismatch
The mint is owned by a different token program than the one used by this auction manager!
AuctionManagerAuctionMismatch
The auction given does not match the auction on the auction manager!
AuctionManagerAuctionProgramMismatch
The auction program given does not match the auction program on the auction manager!
AuctionManagerTokenProgramMismatch
The token program given does not match the token program on the auction manager!
AuctionManagerTokenVaultProgramMismatch
The token vault program given does not match the token vault program on the auction manager!
VaultNotCombined
Only combined vaults may be used in auction managers!
VaultCannotEmpty
Cannot auction off an empty vault!
InvalidSafetyDepositBox
Listed a safety deposit box index that does not exist in this vault
CantUseLimitedSupplyEditionsWithOpenEditionAuction
Cant use a limited supply edition for an open edition as you may run out of editions to print
SafetyDepositBoxNotUsedInAuction
This safety deposit box is not listed as a prize in this auction manager!
InvalidEditionAddress
Either you have given a non-existent edition address or you have given the address to a different token-metadata program than was used to make this edition!
NotEnoughEditionsAvailableForAuction
There are not enough editions available for this auction!
StoreIsEmpty
The store in the safety deposit is empty, so you have nothing to auction!
NotEnoughTokensToSupplyWinners
Not enough tokens to supply winners!
AuctionManagerMustOwnPayoffAccount
The auction manager must own the payoff account!
The auction manager must own the oustanding shares account!
SafetyDepositIndexMismatch
The safety deposit box for your winning bid or participation placement does not match the safety deposit box you provided!
PrizeAlreadyClaimed
This prize has already been claimed!
BidRedemptionMismatch
The bid redemption key does not match the expected PDA with seed [‘metaplex’, auction key, bidder metadata key]
BidAlreadyRedeemed
This bid has already been redeemed!
AuctionHasNotEnded
Auction has not ended yet!
OriginalAuthorityLookupKeyMismatch
The original authority lookup does not match the expected PDA of [‘metaplex’, auction key, metadata key]
OriginalAuthorityMismatch
The original authority given does not match that on the original authority lookup account!
WrongBidEndpointForPrize
The prize you are attempting to claim needs to be claimed from a different endpoint than this one.
BidderMetadataBidderMismatch
The bidder given is not the bidder on the bidder metadata!
MasterEditionMintMismatch
Printing mint given does not match the mint on master edition!
MasterEditionOneTimeAuthMintMismatch
One Time Auth mint given does not match the mint on master edition!
PrintingTokenAccountMintMismatch
The printing token account must be of the printing mint type to hold authorization tokens after auction end
DestinationMintMismatch
Destination does not have the proper mint!
InvalidEditionKey
Invalid edition key
TokenMintToFailed
Token mint to failed
MasterMintAuthorityMismatch
The Printing mint authority provided does not match that on the mint
MasterEditionOneTimeAuthorizationMintMismatch
The safety deposit box is not using the one time authorization mint of the master edition
AuctionAcceptPaymentMintMismatch
The accept payment account for this auction manager must match the auction’s token mint!
AcceptPaymentOwnerMismatch
The accept payment owner must be the auction manager!
AcceptPaymentMismatch
The accept payment given does not match the accept payment account on the auction manager!
NotEligibleForParticipation
You are not eligible for an participation NFT!
AuctionManagerMustBeValidated
Auction manager must be validated to start auction!
SafetyDepositBoxMasterMintMismatch
The safety deposit mint type must be the Printing mint of the limited edition!
AcceptPaymentMintMismatch
The mints between the accept payment and account provided do not match
NotEnoughBalanceForParticipation
You do not have enough to buy this participation NFT!
DerivedKeyInvalid
Derived key invalid
WhitelistedCreatorInactive
Creator is not active on this store!
InvalidWhitelistedCreator
This creator is not whitelisted
AuctionManagerStoreMismatch
Store given does not match store on auction manager!
InvalidCreatorIndex
Supplied an invalid creator index to empty payment account
InvalidWinningConfigIndex
Supplied an invalid winning config index
CreatorIndexExpected
Metadata has creators and no creator index was supplied!
WinningConfigSafetyDepositMismatch
This winning config does not contain this safety deposit box as one of it’s prizes
ParticipationSafetyDepositMismatch
The participation prize does not match the safety deposit given
ParticipationNotPresent
Participation NFT not present on this auction, so cannot collect money for it
NotAllBidsClaimed
Not possible to settle until all bids have been claimed
InvalidWinningConfigItemIndex
Invalid winning config item index provided
OneTimeAuthorizationTokenMustBeOne
When using a one time authorization token in a winning config item, you can never have amount > 1
AddReservationListFailed
Adding a reservation list failed
CloseAccountFailed
Close account command failed
CreatorHasNotVerifiedMetadata
A creator on this metadata has not verified it
DuplicateWinningConfigItemDetected
Duplicate winning config item detected
PrintingAuthorizationTokenAccountMismatch
The authorization account provided does not match that on the participation state
TransientAuthAccountMintMismatch
The transient account provided does not have the correct mint
ParticipationPrintingEmpty
The participation printing authorization token account is empty. One person needs to call populate on it!
PrintingAuthorizationTokensFailed
The printing authorization token command failed
InvalidTokenProgram
Invalid token program
AuctionManagerTokenMetadataMismatch
Token metadata program does not match
AlreadyValidated
This safety deposit box has already been validated
AuctionMustBeCreated
Auction must be created
DelegateShouldBeNone
Accept payment delegate should be none
CloseAuthorityShouldBeNone
Accept payment close authority should be none
DataTypeMismatch
Data type mismatch
AuctioneerCantClaimWonPrize
Auctioneer can’t claim a won prize
MustBeAuctioneer
Auctioneer is the only one who can override win indices
WinnerAmountMismatch
The auction provided has a different amount of winners set than does the auction manager settings
InvalidStatus
Invalid Auction Manager Status
InvalidEditionNumber
You are not eligible for this edition offset
InvalidOperation
Invalid operation
ProvidedAccountDoesNotContainOneToken
The provided account needs to contain one token of this mint type
WinnerIndexMismatch
You are not the winner at this index
InvalidWinningConfigSafetyDepositIndex
You supplied a safety deposit index in a winning configuration that does not exist
SafetyDepositConfigOrderMismatch
The order provided on the safety deposit config does not match that on the safety deposit box!
WinnerIndexNotFound
Winner index not found in safety deposit config ranges
AlreadyHasOneParticipationPrize
Currently metaplex auctions are limited to a single participation prize
NoTokensForThisWinner
This winner was not found in any ranges in the unique token type list, this should never happen
PrintingV1NotAllowedWithAuctionManagerV2
Not allowed to use Master Edition V1 printing with Auction Manager v2
InvalidSystemProgram
Invalid system
DuplicateKeyDetected
Duplicate key detected
MaxMetadataCacheSizeReached
Max metadata cache size reached
InvalidCacheOffset
Invalid cache offset
ExpectedAboveAuctionCacheToBeProvided
You needed to provide an auction cache for the element above you but did not
ExpectedBelowAuctionCacheToBeProvided
You needed to provide an auction cache for the element below you but did not
CacheMismatch
Cache given does not match cache at this offset
CacheAboveIsNewer
Cache above is newer
CacheBelowIsOlder
Cache below is older
AuctionManagerInFishedState
Auction manager already in finished state
PublicKeyMismatch
Public keys don’t match in assert check.
Trait Implementations§
Source§impl Clone for MetaplexError
impl Clone for MetaplexError
Source§fn clone(&self) -> MetaplexError
fn clone(&self) -> MetaplexError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetaplexError
impl Debug for MetaplexError
Source§impl<T> DecodeError<T> for MetaplexError
impl<T> DecodeError<T> for MetaplexError
fn type_of() -> &'static str
fn decode_custom_error_to_enum(custom: u32) -> Option<E>where
E: FromPrimitive,
Source§impl Display for MetaplexError
impl Display for MetaplexError
Source§impl Error for MetaplexError
impl Error for MetaplexError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<MetaplexError> for ProgramError
impl From<MetaplexError> for ProgramError
Source§fn from(e: MetaplexError) -> Self
fn from(e: MetaplexError) -> Self
Source§impl FromPrimitive for MetaplexError
impl FromPrimitive for MetaplexError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl PartialEq for MetaplexError
impl PartialEq for MetaplexError
Source§impl PrintProgramError for MetaplexError
impl PrintProgramError for MetaplexError
impl Eq for MetaplexError
impl StructuralPartialEq for MetaplexError
Auto Trait Implementations§
impl Freeze for MetaplexError
impl RefUnwindSafe for MetaplexError
impl Send for MetaplexError
impl Sync for MetaplexError
impl Unpin for MetaplexError
impl UnwindSafe for MetaplexError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more