pub enum InvalidTxError {
Show 21 variants
InvalidAccessKeyError(InvalidAccessKeyError),
InvalidSignerId {
signer_id: String,
},
SignerDoesNotExist {
signer_id: AccountId,
},
InvalidNonce {
ak_nonce: u64,
tx_nonce: u64,
},
NonceTooLarge {
tx_nonce: u64,
upper_bound: u64,
},
InvalidReceiverId {
receiver_id: String,
},
InvalidSignature,
NotEnoughBalance {
balance: NearToken,
cost: NearToken,
signer_id: AccountId,
},
LackBalanceForState {
amount: NearToken,
signer_id: AccountId,
},
CostOverflow,
InvalidChain,
Expired,
ActionsValidation(ActionsValidationError),
TransactionSizeExceeded {
limit: u64,
size: u64,
},
InvalidTransactionVersion,
StorageError(StorageError),
ShardCongested {
congestion_level: f64,
shard_id: u64,
},
ShardStuck {
missed_chunks: u64,
shard_id: u64,
},
InvalidNonceIndex {
num_nonces: u16,
tx_nonce_index: Option<u16>,
},
NotEnoughGasKeyBalance {
balance: NearToken,
cost: NearToken,
signer_id: AccountId,
},
NotEnoughBalanceForDeposit {
balance: NearToken,
cost: NearToken,
reason: DepositCostFailureReason,
signer_id: AccountId,
},
}Expand description
An error during transaction validation (before execution).
Variants§
InvalidAccessKeyError(InvalidAccessKeyError)
InvalidSignerId
SignerDoesNotExist
InvalidNonce
NonceTooLarge
InvalidReceiverId
InvalidSignature
NotEnoughBalance
LackBalanceForState
CostOverflow
InvalidChain
Expired
ActionsValidation(ActionsValidationError)
TransactionSizeExceeded
InvalidTransactionVersion
StorageError(StorageError)
ShardCongested
ShardStuck
InvalidNonceIndex
NotEnoughGasKeyBalance
NotEnoughBalanceForDeposit
Trait Implementations§
Source§impl Clone for InvalidTxError
impl Clone for InvalidTxError
Source§fn clone(&self) -> InvalidTxError
fn clone(&self) -> InvalidTxError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InvalidTxError
impl Debug for InvalidTxError
Source§impl<'de> Deserialize<'de> for InvalidTxError
impl<'de> Deserialize<'de> for InvalidTxError
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InvalidTxError
impl RefUnwindSafe for InvalidTxError
impl Send for InvalidTxError
impl Sync for InvalidTxError
impl Unpin for InvalidTxError
impl UnsafeUnpin for InvalidTxError
impl UnwindSafe for InvalidTxError
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.