Struct ckb_jsonrpc_types::TxStatus [−][src]
pub struct TxStatus {
pub status: Status,
pub block_hash: Option<H256>,
pub reason: Option<String>,
}
Expand description
Transaction status and the block hash if it is committed.
Fields
status: Status
The transaction status, allowed values: “pending”, “proposed” “committed” “unknown” and “rejected”.
block_hash: Option<H256>
The block hash of the block which has committed this transaction in the canonical chain.
reason: Option<String>
The reason why the transaction is rejected
Implementations
Pending transaction which is in the memory pool and must be proposed first.
Transaction which has already been committed.
Params
hash
- the block hash in which the transaction is committed.
Transaction which has already been rejected recently.
Params
reason
- the reason why the transaction is rejected.
Returns true if the status is Unknown.
Trait Implementations
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 RefUnwindSafe for TxStatus
impl UnwindSafe for TxStatus
Blanket Implementations
Mutably borrows from an owned value. Read more