Expand description
Wrappers for JSON serialization.
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 struct as a sorted key for tx-pool
- A banned P2P address.
- The JSON view of a Block used as a parameter in the RPC.
- Block Economic State.
- Block filter data and hash.
- Block base rewards.
- A block template for miners.
- The JSON view of a Block including header and body.
- BlockResponse with cycles format wrapper
- 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
- RFC0043 deployment params
- An object containing various state info regarding deployments of consensus changes
- Chain information.
- Transaction’s verify result by test_tx_pool_accept
- JSON view of an epoch.
- Response result of the RPC method
estimate_cycles
. - Runtime logger config for extra loggers.
- Serialize and Deserialize implementations for FeeRate
- The fee_rate statistics information, includes mean and median, unit: shannons per kilo-weight
- The information about one hardfork feature.
- Hardfork information
- The block header.
- The JSON view of a Header.
- Live cell
- Cells capacity
- IndexerPagination wraps objects array and last_cursor to provide paging
- A array represent (half-open) range bounded inclusively below and exclusively above [start, end).
- SearchKey represent indexer support params
- IndexerSearchKeyFilter represent indexer params
filter
- Indexer tip information
- Ungrouped Tx inner type
- Grouped Tx inner type
- 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.
- A Tx details info in tx-pool.
- The 10-byte fixed-length binary encoded as a 0x-prefixed hex string in JSON.
- Two protocol parameters
closest
andfarthest
define the closest and farthest on-chain distance between a transaction’s proposal and commitment. - Represents the ratio
numerator / denominator
, wherenumerator
anddenominator
are both unsigned 64-bit integers. - Represents the ratio
numerator / denominator
, wherenumerator
anddenominator
are both unsigned 256-bit integers. - Information of a remote node.
- The information about an active running protocol.
- This is a wrapper for JSON serialization to select the format between Json and Hex.
- 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’ witnesses in a block.
- 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.
- Tx-pool entries object
- Transaction entry info
- Array of transaction ids
- Transaction pool information.
- Transaction status and the block hash if it is committed.
- 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 wrapper represent response of
get_block
|get_block_by_number
, return a Block with cycles. - The dep cell type. Allowed values: “code” and “dep_group”.
- Deployment name
- The possible softfork deployment state
- The enum
Either
with variantsLeft
andRight
is a general purpose sum type with two cases. - Cell type
- Order Desc | Asc
- ScriptType
Lock
|Type
- IndexerSearchMode represent search mode, default is prefix search
- Indexer Transaction Object
- Transaction output validators that prevent common mistakes.
- TX reject message,
PoolTransactionReject
is a JSON object with following fields. - All transactions in tx-pool.
- The enum
ResponseFormatInnerType
with variantsJson
andHex
is used to supply a format choice for the format ofResponseFormatResponse.transaction
- Specifies how the script
code_hash
is used to match the script code and how to run the code. - SoftFork information
- 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 typeEpochNumberWithFraction
instead of allUint64
- 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 Aliases§
- 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.