nimiq_rpc/primitives/block

Types

pub type Block {
  Micro(
    hash: String,
    size: Int,
    batch: Int,
    epoch: Int,
    network: String,
    version: Int,
    number: Int,
    timestamp: Int,
    parent_hash: String,
    seed: String,
    extra_data: String,
    state_hash: String,
    body_hash: String,
    history_hash: String,
    transactions: option.Option(List(transaction.Transaction)),
    producer: Producer,
    equivocation_proofs: option.Option(List(dynamic.Dynamic)),
    justification: option.Option(Justification),
  )
  Macro(
    hash: String,
    size: Int,
    batch: Int,
    epoch: Int,
    network: String,
    version: Int,
    number: Int,
    timestamp: Int,
    parent_hash: String,
    seed: String,
    extra_data: String,
    state_hash: String,
    body_hash: String,
    history_hash: String,
    transactions: option.Option(List(transaction.Transaction)),
    is_election_block: Bool,
    justification: Justification,
    next_batch_initial_punished_set: List(Int),
    parent_election_hash: String,
    interlink: option.Option(List(String)),
    slots: option.Option(List(Slots)),
  )
}

Constructors

  • Micro(
      hash: String,
      size: Int,
      batch: Int,
      epoch: Int,
      network: String,
      version: Int,
      number: Int,
      timestamp: Int,
      parent_hash: String,
      seed: String,
      extra_data: String,
      state_hash: String,
      body_hash: String,
      history_hash: String,
      transactions: option.Option(List(transaction.Transaction)),
      producer: Producer,
      equivocation_proofs: option.Option(List(dynamic.Dynamic)),
      justification: option.Option(Justification),
    )
  • Macro(
      hash: String,
      size: Int,
      batch: Int,
      epoch: Int,
      network: String,
      version: Int,
      number: Int,
      timestamp: Int,
      parent_hash: String,
      seed: String,
      extra_data: String,
      state_hash: String,
      body_hash: String,
      history_hash: String,
      transactions: option.Option(List(transaction.Transaction)),
      is_election_block: Bool,
      justification: Justification,
      next_batch_initial_punished_set: List(Int),
      parent_election_hash: String,
      interlink: option.Option(List(String)),
      slots: option.Option(List(Slots)),
    )
pub type Justification {
  MicroJustification(micro: String)
  MacroJustification(round: Int, sig: MacroSignature)
  SkipJustification(sig: MacroSignature)
}

Constructors

pub type MacroSignature {
  MacroSignature(
    signature: MacroSignatureInner,
    signers: List(Int),
  )
}

Constructors

pub type MacroSignatureInner {
  MacroSignatureInner(signature: String)
}

Constructors

  • MacroSignatureInner(signature: String)
pub type Producer {
  MicroProducer(
    public_key: String,
    slot_number: Int,
    validator: String,
  )
}

Constructors

  • MicroProducer(
      public_key: String,
      slot_number: Int,
      validator: String,
    )
pub type Slots {
  Slots(
    first_slot_number: Int,
    num_slots: Int,
    validator: String,
    public_key: String,
  )
}

Constructors

  • Slots(
      first_slot_number: Int,
      num_slots: Int,
      validator: String,
      public_key: String,
    )

Values

pub fn decoder() -> decode.Decoder(Block)
Search Document