Enum near_primitives::errors::InvalidTxError [−][src]
pub enum InvalidTxError {
Show 14 variants
InvalidAccessKeyError(InvalidAccessKeyError),
InvalidSignerId {
signer_id: String,
},
SignerDoesNotExist {
signer_id: AccountId,
},
InvalidNonce {
tx_nonce: Nonce,
ak_nonce: Nonce,
},
NonceTooLarge {
tx_nonce: Nonce,
upper_bound: Nonce,
},
InvalidReceiverId {
receiver_id: String,
},
InvalidSignature,
NotEnoughBalance {
signer_id: AccountId,
balance: Balance,
cost: Balance,
},
LackBalanceForState {
signer_id: AccountId,
amount: Balance,
},
CostOverflow,
InvalidChain,
Expired,
ActionsValidation(ActionsValidationError),
TransactionSizeExceeded {
size: u64,
limit: u64,
},
}Expand description
An error happened during TX execution
Variants
InvalidAccessKeyError(InvalidAccessKeyError)
Tuple Fields
Happens if a wrong AccessKey used or AccessKey has not enough permissions
InvalidSignerId
Fields
signer_id: StringTX signer_id is not a valid AccountId
SignerDoesNotExist
Fields
signer_id: AccountIdTX signer_id is not found in a storage
InvalidNonce
Transaction nonce must be account[access_key].nonce + 1.
NonceTooLarge
Transaction nonce is larger than the upper bound given by the block height
InvalidReceiverId
Fields
receiver_id: StringTX receiver_id is not a valid AccountId
InvalidSignature
TX signature is not valid
NotEnoughBalance
Account does not have enough balance to cover TX cost
LackBalanceForState
Fields
signer_id: AccountIdAn account which doesn’t have enough balance to cover storage.
amount: BalanceRequired balance to cover the state.
Signer account doesn’t have enough balance after transaction.
CostOverflow
An integer overflow occurred during transaction cost estimation.
InvalidChain
Transaction parent block hash doesn’t belong to the current chain
Expired
Transaction has expired
ActionsValidation(ActionsValidationError)
Tuple Fields
An error occurred while validating actions of a Transaction.
TransactionSizeExceeded
The size of serialized transaction exceeded the limit.
Trait Implementations
impl BorshDeserialize for InvalidTxError where
InvalidAccessKeyError: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
Balance: BorshDeserialize,
Balance: BorshDeserialize,
AccountId: BorshDeserialize,
Balance: BorshDeserialize,
ActionsValidationError: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for InvalidTxError where
InvalidAccessKeyError: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
Balance: BorshDeserialize,
Balance: BorshDeserialize,
AccountId: BorshDeserialize,
Balance: BorshDeserialize,
ActionsValidationError: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshSerialize for InvalidTxError where
InvalidAccessKeyError: BorshSerialize,
String: BorshSerialize,
AccountId: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
String: BorshSerialize,
AccountId: BorshSerialize,
Balance: BorshSerialize,
Balance: BorshSerialize,
AccountId: BorshSerialize,
Balance: BorshSerialize,
ActionsValidationError: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for InvalidTxError where
InvalidAccessKeyError: BorshSerialize,
String: BorshSerialize,
AccountId: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
String: BorshSerialize,
AccountId: BorshSerialize,
Balance: BorshSerialize,
Balance: BorshSerialize,
AccountId: BorshSerialize,
Balance: BorshSerialize,
ActionsValidationError: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
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.
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 InvalidTxError
impl Send for InvalidTxError
impl Sync for InvalidTxError
impl Unpin for InvalidTxError
impl UnwindSafe for InvalidTxError
Blanket Implementations
Mutably borrows from an owned value. Read more