Enum solana_sdk::transaction::TransactionError [−][src]
pub enum TransactionError {}Show 17 variants
AccountInUse, AccountLoadedTwice, AccountNotFound, ProgramAccountNotFound, InsufficientFundsForFee, InvalidAccountForFee, AlreadyProcessed, BlockhashNotFound, InstructionError(u8, InstructionError), CallChainTooDeep, MissingSignatureForFee, InvalidAccountIndex, SignatureFailure, InvalidProgramForExecution, SanitizeFailure, ClusterMaintenance, AccountBorrowOutstanding,
Expand description
Reasons a transaction might be rejected.
Variants
An account is already being processed in another transaction in a way that does not support parallelism
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
Attempt to debit an account but found no record of a prior credit.
Attempt to load a program that does not exist
The from Pubkey
does not have sufficient balance to pay the fee to schedule the transaction
This account may not be used to pay transaction fees
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.
The bank has not seen the given recent_blockhash
or the transaction is too old and
the recent_blockhash
has been discarded.
An error occurred while processing an instruction. The first element of the tuple indicates the instruction index in which the error occurred.
Tuple Fields of InstructionError
0: u8
1: InstructionError
Loader call chain is too deep
Transaction requires a fee but has no signature present
Transaction contains an invalid account reference
Transaction did not pass signature verification
This program may not be used for executing instructions
Transaction failed to sanitize accounts offsets correctly implies that account locks are not taken for this TX, and should not be unlocked.
Transaction processing left an account with an outstanding borrowed reference
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl UnwindSafe for TransactionError
Blanket Implementations
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self