Expand description

Wrappers for JSON serialization.

Structs§

Enums§

  • The wrapper represent response of get_block | get_block_by_number, return a Block with cycles.
  • An enum to represent the two kinds of dao withdrawal amount calculation option. DaoWithdrawingCalculationKind is equivalent to H256 | OutPoint.
  • The dep cell type. Allowed values: “code” and “dep_group”.
  • Deployment name
  • The possible softfork deployment state
  • The enum Either with variants Left and Right 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 variants Json and Hex is is used to supply a format choice for the format of ResponseFormatResponse.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 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 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.

Derive Macros§