Constructors

Properties

bits: number = 0
merkleRoot?: Uint8Array = undefined
nonce: number = 0
prevHash?: Uint8Array = undefined
timestamp: number = 0
transactions?: Transaction[] = undefined
version: number = 1
witnessCommit?: Uint8Array = undefined

Methods

  • Parameters

    • OptionalheadersOnly: boolean
    • allowWitness: boolean = true

    Returns number

  • Returns boolean

  • Returns boolean

  • Returns Uint8Array

  • Returns null | Uint8Array

  • Returns boolean

  • Parameters

    • OptionalheadersOnly: boolean

    Returns Uint8Array

  • Parameters

    • OptionalheadersOnly: boolean

    Returns string

  • Parameters

    Returns Uint8Array

  • Parameters

    • bits: number

    Returns Uint8Array