Enum solana_sdk::transaction::TransactionError
source · pub enum TransactionError {
Show 32 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,
},
}
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
Pubkey
s 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 without insufficient funds for rent
Trait Implementations§
source§impl AbiEnumVisitor for TransactionError
impl AbiEnumVisitor for TransactionError
fn visit_for_abi(&self, digester: &mut AbiDigester) -> DigestResult
source§impl AbiExample for TransactionError
impl AbiExample for 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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) -> Self
fn from(err: AddressLoaderError) -> Self
source§impl From<SanitizeError> for TransactionError
impl From<SanitizeError> for TransactionError
source§fn from(_: SanitizeError) -> Self
fn from(_: SanitizeError) -> Self
source§impl From<SanitizeMessageError> for TransactionError
impl From<SanitizeMessageError> for TransactionError
source§fn from(err: SanitizeMessageError) -> Self
fn from(err: SanitizeMessageError) -> Self
source§impl From<TransactionError> for SignerError
impl From<TransactionError> for SignerError
source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
source§impl From<TransactionError> for TransportError
impl From<TransactionError> for TransportError
source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
source§impl PartialEq<TransactionError> for TransactionError
impl PartialEq<TransactionError> for TransactionError
source§fn eq(&self, other: &TransactionError) -> bool
fn eq(&self, other: &TransactionError) -> bool
self
and other
values to be equal, and is used
by ==
.