Enum ckb_jsonrpc_types::IndexerTx
source · pub enum IndexerTx {
Ungrouped(IndexerTxWithCell),
Grouped(IndexerTxWithCells),
}Expand description
Indexer Transaction Object
Variants§
Ungrouped(IndexerTxWithCell)
Ungrouped format represent as IndexerTxWithCell
Fields
IndexerCellType is equivalent to "input" | "output".
IndexerTxWithCell is a JSON object with the following fields.
tx_hash: [H256] - transaction hashblock_number:BlockNumber- the number of the transaction committed in the blocktx_index:Uint32- the position index of the transaction committed in the blockio_index:Uint32- the position index of the cell in the transaction inputs or outputsio_type:IndexerCellType- io type
Grouped(IndexerTxWithCells)
Grouped format represent as IndexerTxWithCells
Fields
IndexerCellType is equivalent to "input" | "output".
IndexerTxWithCells is a JSON object with the following fields.
tx_hash: [H256] - transaction hashblock_number:BlockNumber- the number of the transaction committed in the blocktx_index:Uint32- the position index of the transaction committed in the blockcells: Array <(IndexerCellType, Uint32)>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IndexerTx
impl Send for IndexerTx
impl Sync for IndexerTx
impl Unpin for IndexerTx
impl UnwindSafe for IndexerTx
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more