Crate ckb_jsonrpc_types[][src]

Expand description

Wrappers for JSON serialization.

Modules

jsonrpc errors

jsonrpc id field

jsonrpc params field

jsonrpc request

jsonrpc response

jsonrpc version field

Structs

An alert is a message about critical problems to be broadcast to all nodes via the p2p network.

An alert sent by RPC send_alert.

A banned P2P address.

The JSON view of a Block used as a parameter in the RPC.

Block Economic State.

Block base rewards.

A block template for miners.

The JSON view of a Block including header and body.

Fixed-length 32 bytes binary encoded as a 0x-prefixed hex string in JSON.

The cell data content and hash.

The cell dependency of a transaction.

The JSON view of a cell combining the fields in cell output and cell data.

The input cell of a transaction.

The fields of an output cell except the cell data.

The JSON view of a cell with its status information.

The cellbase transaction template of the new block for miners.

Chain information.

Consensus defines various parameters that influence chain consensus

Response result of the RPC method dry_run_transaction.

JSON view of an epoch.

Runtime logger config for extra loggers.

Serialize and Deserialize implementations for FeeRate

The block header.

The JSON view of a Header.

Variable-length binary encoded as a 0x-prefixed hex string in JSON.

The information of the node itself.

The information of a P2P protocol that is supported by the local node.

Runtime logger config.

Proof of CKB Merkle Tree.

Block rewards for miners.

Node P2P address and score.

Reference to a cell via transaction hash and output index.

The chain synchronization state between the local node and a remote node.

The transaction entry in the pool.

The 10-byte fixed-length binary encoded as a 0x-prefixed hex string in JSON.

Two protocol parameters closest and farthest define the closest and farthest on-chain distance between a transaction’s proposal and commitment.

Information of a remote node.

The information about an active running protocol.

Describes the lock script and type script for a cell.

The overall chain synchronization state of this local node.

The transaction.

Merkle proof for transactions in a block.

Transaction template which is ready to be committed in the new block.

The JSON view of a Transaction.

The JSON view of a transaction as well as its status.

Array of transaction ids

Transaction pool information.

Tx-pool verbose object

Transaction status and the block hash if it is committed.

Transaction verbose info

The uncle block used as a parameter in the RPC.

The uncle block.

The uncle block template of the new block for miners.

Enums

The dep cell type. Allowed values: “code” and “dep_group”.

Transaction output validators that prevent common mistakes.

TX reject message

All transactions in tx-pool.

This is a wrapper for JSON serialization to select the format between Json and Hex.

Specifies how the script code_hash is used to match the script code.

Status for transaction

Specifies the topic which to be added as active subscription.

Traits

This trait is a restriction for type Uint64, so we can only get epoch_number, epoch_index and epoch_length from the type EpochNumberWithFraction instead of all Uint64

A data structure that can be deserialized from any data format supported by Serde.

A data structure that can be serialized into any data format supported by Serde.

Type Definitions

The alert identifier that is used to filter duplicated alerts.

Alerts are sorted by priority. Greater integers mean higher priorities.

Consecutive block number starting from 0.

The capacity of a cell is the value of the cell in Shannons. It is also the upper limit of the cell occupied storage size where every 100,000,000 Shannons give 1-byte storage.

Count of cycles consumed by CKB VM to run scripts.

Consecutive epoch number starting from 0.

The epoch indicator of a block. It shows which epoch the block is in, and the elapsed epoch fraction after adding this block.

The Unix timestamp in milliseconds (1 second is 1000 milliseconds).

The 32-bit unsigned integer type encoded as the 0x-prefixed hex string in JSON.

The 64-bit unsigned integer type encoded as the 0x-prefixed hex string in JSON.

The 128-bit unsigned integer type encoded as the 0x-prefixed hex string in JSON.

The simple increasing integer version.

Derive Macros