pub enum TransactionError {
Show 37 variants
AccountInUse,
AccountLoadedTwice,
AccountNotFound,
ProgramAccountNotFound,
InsufficientFundsForFee,
InvalidAccountForFee,
AlreadyProcessed,
BlockhashNotFound,
InstructionError(u8, InstructionError),
CallChainTooDeep,
MissingSignatureForFee,
InvalidAccountIndex,
SignatureFailure,
InvalidProgramForExecution,
SanitizeFailure,
ClusterMaintenance,
AccountBorrowOutstanding,
WouldExceedMaxBlockCostLimit,
UnsupportedVersion,
InvalidWritableAccount,
WouldExceedMaxAccountCostLimit,
WouldExceedAccountDataBlockLimit,
TooManyAccountLocks,
AddressLookupTableNotFound,
InvalidAddressLookupTableOwner,
InvalidAddressLookupTableData,
InvalidAddressLookupTableIndex,
InvalidRentPayingAccount,
WouldExceedMaxVoteCostLimit,
WouldExceedAccountDataTotalLimit,
DuplicateInstruction(u8),
InsufficientFundsForRent {
account_index: u8,
},
MaxLoadedAccountsDataSizeExceeded,
InvalidLoadedAccountsDataSizeLimit,
ResanitizationNeeded,
ProgramExecutionTemporarilyRestricted {
account_index: u8,
},
UnbalancedTransaction,
}Expand description
Reasons a transaction might be rejected.
Variantsยง
AccountInUse
An account is already being processed in another transaction in a way that does not support parallelism
AccountLoadedTwice
A Pubkey appears twice in the transactionโs account_keys. Instructions can reference
Pubkeys more than once but the message must contain a list with no duplicate keys
AccountNotFound
Attempt to debit an account but found no record of a prior credit.
ProgramAccountNotFound
Attempt to load a program that does not exist
InsufficientFundsForFee
The from Pubkey does not have sufficient balance to pay the fee to schedule the transaction
InvalidAccountForFee
This account may not be used to pay transaction fees
AlreadyProcessed
The bank has seen this transaction before. This can occur under normal operation
when a UDP packet is duplicated, as a user error from a client not updating
its recent_blockhash, or as a double-spend attack.
BlockhashNotFound
The bank has not seen the given recent_blockhash or the transaction is too old and
the recent_blockhash has been discarded.
InstructionError(u8, InstructionError)
An error occurred while processing an instruction. The first element of the tuple indicates the instruction index in which the error occurred.
CallChainTooDeep
Loader call chain is too deep
MissingSignatureForFee
Transaction requires a fee but has no signature present
InvalidAccountIndex
Transaction contains an invalid account reference
SignatureFailure
Transaction did not pass signature verification
InvalidProgramForExecution
This program may not be used for executing instructions
SanitizeFailure
Transaction failed to sanitize accounts offsets correctly implies that account locks are not taken for this TX, and should not be unlocked.
ClusterMaintenance
AccountBorrowOutstanding
Transaction processing left an account with an outstanding borrowed reference
WouldExceedMaxBlockCostLimit
Transaction would exceed max Block Cost Limit
UnsupportedVersion
Transaction version is unsupported
InvalidWritableAccount
Transaction loads a writable account that cannot be written
WouldExceedMaxAccountCostLimit
Transaction would exceed max account limit within the block
WouldExceedAccountDataBlockLimit
Transaction would exceed account data limit within the block
TooManyAccountLocks
Transaction locked too many accounts
AddressLookupTableNotFound
Address lookup table not found
InvalidAddressLookupTableOwner
Attempted to lookup addresses from an account owned by the wrong program
InvalidAddressLookupTableData
Attempted to lookup addresses from an invalid account
InvalidAddressLookupTableIndex
Address table lookup uses an invalid index
InvalidRentPayingAccount
Transaction leaves an account with a lower balance than rent-exempt minimum
WouldExceedMaxVoteCostLimit
Transaction would exceed max Vote Cost Limit
WouldExceedAccountDataTotalLimit
Transaction would exceed total account data limit
DuplicateInstruction(u8)
Transaction contains a duplicate instruction that is not allowed
InsufficientFundsForRent
Transaction results in an account with insufficient funds for rent
MaxLoadedAccountsDataSizeExceeded
Transaction exceeded max loaded accounts data size cap
InvalidLoadedAccountsDataSizeLimit
LoadedAccountsDataSizeLimit set for transaction must be greater than 0.
ResanitizationNeeded
Sanitized transaction differed before/after feature activiation. Needs to be resanitized.
ProgramExecutionTemporarilyRestricted
Program execution is temporarily restricted on an account.
UnbalancedTransaction
The total balance before the transaction does not equal the total balance after the transaction
Trait Implementationsยง
Sourceยงimpl AbiEnumVisitor for TransactionError
impl AbiEnumVisitor for TransactionError
fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Sourceยงimpl AbiExample for TransactionError
impl AbiExample for TransactionError
fn example() -> TransactionError
Sourceยงimpl Clone for TransactionError
impl Clone for TransactionError
Sourceยงfn clone(&self) -> TransactionError
fn clone(&self) -> TransactionError
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for TransactionError
impl Debug for TransactionError
Sourceยงimpl<'de> Deserialize<'de> for TransactionError
impl<'de> Deserialize<'de> for TransactionError
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Sourceยงimpl Display for TransactionError
impl Display for TransactionError
Sourceยงimpl Error for TransactionError
impl Error for TransactionError
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<AddressLoaderError> for TransactionError
impl From<AddressLoaderError> for TransactionError
Sourceยงfn from(err: AddressLoaderError) -> TransactionError
fn from(err: AddressLoaderError) -> TransactionError
Sourceยงimpl From<SanitizeError> for TransactionError
impl From<SanitizeError> for TransactionError
Sourceยงfn from(_: SanitizeError) -> TransactionError
fn from(_: SanitizeError) -> TransactionError
Sourceยงimpl From<SanitizeMessageError> for TransactionError
impl From<SanitizeMessageError> for TransactionError
Sourceยงfn from(err: SanitizeMessageError) -> TransactionError
fn from(err: SanitizeMessageError) -> TransactionError
Sourceยงimpl From<TransactionError> for SignerError
impl From<TransactionError> for SignerError
Sourceยงfn from(source: TransactionError) -> SignerError
fn from(source: TransactionError) -> SignerError
Sourceยงimpl From<TransactionError> for TransportError
impl From<TransactionError> for TransportError
Sourceยงfn from(source: TransactionError) -> TransportError
fn from(source: TransactionError) -> TransportError
Sourceยงimpl PartialEq for TransactionError
impl PartialEq for TransactionError
Sourceยงimpl Serialize for TransactionError
impl Serialize for TransactionError
Sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for TransactionError
impl StructuralPartialEq for TransactionError
Auto Trait Implementationsยง
impl Freeze for TransactionError
impl RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl UnwindSafe for TransactionError
Blanket Implementationsยง
Sourceยงimpl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Sourceยงimpl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<CustErr, T, Request> FromReq<Cbor, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Cbor, Request, CustErr> for T
Sourceยงasync fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Sourceยงimpl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
Sourceยงasync fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Sourceยงimpl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
Sourceยงasync fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Sourceยงimpl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
Sourceยงasync fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Sourceยงimpl<CustErr, T, Response> FromRes<Cbor, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Cbor, Response, CustErr> for T
Sourceยงasync fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
Sourceยงimpl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
Sourceยงasync fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSourceยงimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self to a value of a Properties struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self to a value of a Properties struct.