Type Alias gsdk::TxStatus

source ·
pub type TxStatus = TxStatus<GearConfig, OnlineClient<GearConfig>>;
Expand description

Transaction status.

Aliased Type§

enum TxStatus {
    Validated,
    Broadcasted {
        num_peers: u32,
    },
    NoLongerInBestBlock,
    InBestBlock(TxInBlock<GearConfig, OnlineClient<GearConfig>>),
    InFinalizedBlock(TxInBlock<GearConfig, OnlineClient<GearConfig>>),
    Error {
        message: String,
    },
    Invalid {
        message: String,
    },
    Dropped {
        message: String,
    },
}

Variants§

§

Validated

Transaction is part of the future queue.

§

Broadcasted

Fields

§num_peers: u32

Number of peers it’s been broadcast to.

The transaction has been broadcast to other nodes.

§

NoLongerInBestBlock

Transaction is no longer in a best block.

§

InBestBlock(TxInBlock<GearConfig, OnlineClient<GearConfig>>)

Transaction has been included in block with given hash.

§

InFinalizedBlock(TxInBlock<GearConfig, OnlineClient<GearConfig>>)

Transaction has been finalized by a finality-gadget, e.g GRANDPA

§

Error

Fields

§message: String

Human readable message; what went wrong.

Something went wrong in the node.

§

Invalid

Fields

§message: String

Human readable message; why was it invalid.

Transaction is invalid (bad nonce, signature etc).

§

Dropped

Fields

§message: String

Human readable message; why was it dropped.

The transaction was dropped.