TransactionError enum
Values
- AccountInUse → const TransactionError
-
An account is already being processed in another transaction in a way that does not support parallelism.
ignore: constant_identifier_names
- AccountLoadedTwice → const TransactionError
-
A
Pubkey
appears twice in the transaction'saccount_keys
. Instructions can referencePubkey
s more than once but the message must contain a list with no duplicate keys.ignore: constant_identifier_names
- AccountNotFound → const TransactionError
-
Attempt to debit an account but found no record of a prior credit.
ignore: constant_identifier_names
- ProgramAccountNotFound → const TransactionError
-
Attempt to load a program that does not exist.
ignore: constant_identifier_names
- InsufficientFundsForFee → const TransactionError
-
The from
Pubkey
does not have sufficient balance to pay the fee to schedule the transaction.ignore: constant_identifier_names
- InvalidAccountForFee → const TransactionError
-
This account may not be used to pay transaction fees.
ignore: constant_identifier_names
- AlreadyProcessed → const TransactionError
-
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.ignore: constant_identifier_names
- BlockhashNotFound → const TransactionError
-
The bank has not seen the given
recent_blockhash
or the transaction is too old and therecent_blockhash
has been discarded.ignore: constant_identifier_names
- InstructionError → const TransactionError
-
An error occurred while processing an instruction. The first element of the tuple indicates the instruction index in which the error occurred.
ignore: constant_identifier_names
- CallChainTooDeep → const TransactionError
-
Loader call chain is too deep.
ignore: constant_identifier_names
- MissingSignatureForFee → const TransactionError
-
Transaction requires a fee but has no signature present.
ignore: constant_identifier_names
- InvalidAccountIndex → const TransactionError
-
Transaction contains an invalid account reference.
ignore: constant_identifier_names
- SignatureFailure → const TransactionError
-
Transaction did not pass signature verification.
ignore: constant_identifier_names
- InvalidProgramForExecution → const TransactionError
-
This program may not be used for executing instructions.
ignore: constant_identifier_names
- SanitizeFailure → const TransactionError
-
Transaction failed to sanitise accounts offsets correctly implies that account locks are not taken for this TX, and should not be unlocked.
ignore: constant_identifier_names
- ClusterMaintenance → const TransactionError
-
Transactions are currently disabled due to cluster maintenance.
ignore: constant_identifier_names
- AccountBorrowOutstanding → const TransactionError
-
Transaction processing left an account with an outstanding borrowed reference.
ignore: constant_identifier_names
- WouldExceedMaxBlockCostLimit → const TransactionError
-
Transaction would exceed max Block Cost Limit.
ignore: constant_identifier_names
- UnsupportedVersion → const TransactionError
-
Transaction version is unsupported.
ignore: constant_identifier_names
- InvalidWritableAccount → const TransactionError
-
Transaction loads a writable account that cannot be written.
ignore: constant_identifier_names
- WouldExceedMaxAccountCostLimit → const TransactionError
-
Transaction would exceed max account limit within the block.
ignore: constant_identifier_names
- WouldExceedMaxAccountDataCostLimit → const TransactionError
-
Transaction would exceed max account data limit within the block.
ignore: constant_identifier_names
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
tryFromJson(
String? name) → TransactionError? -
Returns the enum variant where EnumName.name is equal to
name
.
Constants
-
values
→ const List<
TransactionError> - A constant List of the values in this enum, in order of their declaration.