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

The transaction has been broadcast to other nodes.

Fields

§num_peers: u32

Number of peers it’s been broadcast to.

§

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

Something went wrong in the node.

Fields

§message: String

Human readable message; what went wrong.

§

Invalid

Transaction is invalid (bad nonce, signature etc).

Fields

§message: String

Human readable message; why was it invalid.

§

Dropped

The transaction was dropped.

Fields

§message: String

Human readable message; why was it dropped.