Class MoneroBlock

Models a Monero block in the blockchain.

Hierarchy

Constructors

Properties

cumulativeDifficulty: bigint
depth: number
difficulty: bigint
hash: string
height: number
hex: string
longTermWeight: number
majorVersion: number
minerTx: MoneroTx
minerTxHash: string
minorVersion: number
nonce: number
numTxs: number
orphanStatus: boolean
powHash: string
prevHash: string
reward: bigint
size: number
timestamp: number
txHashes: string[]
txs: MoneroTx[]
weight: number
DeserializationType: typeof DeserializationType = DeserializationType

Methods

  • Parameters

    • tx: any
    • Optional txType: DeserializationType

    Returns MoneroTx

  • Return the block's height which is the total number of blocks that have occurred before.

    Returns number

    the block's height

  • Returns string

  • Returns string[]

  • Set the block's height which is the total number of blocks that have occurred before.

    Parameters

    • height: number

      is the block's height to set

    Returns MoneroBlock

    a reference to this header for chaining

  • Parameters

    • txs: any
    • tx: any

    Returns void

Generated using TypeDoc