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: String

TX signer_id is not a valid AccountId

SignerDoesNotExist

Fields

signer_id: AccountId

TX signer_id is not found in a storage

InvalidNonce

Fields

tx_nonce: Nonce
ak_nonce: Nonce

Transaction nonce must be account[access_key].nonce + 1.

NonceTooLarge

Fields

tx_nonce: Nonce
upper_bound: Nonce

Transaction nonce is larger than the upper bound given by the block height

InvalidReceiverId

Fields

receiver_id: String

TX receiver_id is not a valid AccountId

InvalidSignature

TX signature is not valid

NotEnoughBalance

Fields

signer_id: AccountId
balance: Balance
cost: Balance

Account does not have enough balance to cover TX cost

LackBalanceForState

Fields

signer_id: AccountId

An account which doesn’t have enough balance to cover storage.

amount: Balance

Required 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

Fields

size: u64
limit: u64

The size of serialized transaction exceeded the limit.

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. 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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.