Hierarchy

  • BlockHeader

Constructors

  • Parameters

    • __namedParameters: BlockHeaderAttrs

    Returns BlockHeader

Properties

_aggregateCommit: any
_assetRoot?: any
_eventRoot?: any
_getAllProps: any
_getBlockHeaderProps: any
_getSigningProps: any
_id?: any
_resetComputedValues: any
_signature?: any
_stateRoot?: any
_transactionRoot?: any
_validatorsHash?: any
generatorAddress: Buffer
height: number
impliesMaxPrevotes: boolean
maxHeightGenerated: number
maxHeightPrevoted: number
previousBlockID: Buffer
timestamp: number
version: number

Accessors

  • get aggregateCommit(): {
        aggregationBits: Buffer;
        certificateSignature: Buffer;
        height: number;
    }
  • Returns {
        aggregationBits: Buffer;
        certificateSignature: Buffer;
        height: number;
    }

    • aggregationBits: Buffer
    • certificateSignature: Buffer
    • height: number
  • set aggregateCommit(val: {
        aggregationBits: Buffer;
        certificateSignature: Buffer;
        height: number;
    }): void
  • Parameters

    • val: {
          aggregationBits: Buffer;
          certificateSignature: Buffer;
          height: number;
      }
      • aggregationBits: Buffer
      • certificateSignature: Buffer
      • height: number

    Returns void

  • get assetRoot(): undefined | Buffer
  • Returns undefined | Buffer

  • set assetRoot(val: undefined | Buffer): void
  • Parameters

    • val: undefined | Buffer

    Returns void

  • get eventRoot(): undefined | Buffer
  • Returns undefined | Buffer

  • set eventRoot(val: undefined | Buffer): void
  • Parameters

    • val: undefined | Buffer

    Returns void

  • get id(): Buffer
  • Returns Buffer

  • get signature(): Buffer
  • Returns Buffer

  • get stateRoot(): undefined | Buffer
  • Returns undefined | Buffer

  • set stateRoot(val: undefined | Buffer): void
  • Parameters

    • val: undefined | Buffer

    Returns void

  • get transactionRoot(): undefined | Buffer
  • Returns undefined | Buffer

  • set transactionRoot(val: undefined | Buffer): void
  • Parameters

    • val: undefined | Buffer

    Returns void

  • get validatorsHash(): undefined | Buffer
  • Returns undefined | Buffer

  • set validatorsHash(val: undefined | Buffer): void
  • Parameters

    • val: undefined | Buffer

    Returns void

Methods

  • Returns Buffer

  • Returns Buffer

  • Parameters

    • chainID: Buffer
    • privateKey: Buffer

    Returns void

  • Returns {
        aggregateCommit: { readonly height: number; readonly aggregationBits: string; readonly certificateSignature: string; };
        assetRoot?: string;
        eventRoot?: string;
        generatorAddress: string;
        height: number;
        id?: string;
        impliesMaxPrevotes: boolean;
        maxHeightGenerated: number;
        maxHeightPrevoted: number;
        previousBlockID: string;
        signature?: string;
        stateRoot?: string;
        timestamp: number;
        transactionRoot?: string;
        validatorsHash?: string;
        version: number;
    }

    • Readonly aggregateCommit: { readonly height: number; readonly aggregationBits: string; readonly certificateSignature: string; }
    • Optional Readonly assetRoot?: string
    • Optional Readonly eventRoot?: string
    • Readonly generatorAddress: string
    • Readonly height: number
    • Optional id?: string
    • Readonly impliesMaxPrevotes: boolean
    • Readonly maxHeightGenerated: number
    • Readonly maxHeightPrevoted: number
    • Readonly previousBlockID: string
    • Optional signature?: string
    • Optional Readonly stateRoot?: string
    • Readonly timestamp: number
    • Optional Readonly transactionRoot?: string
    • Optional Readonly validatorsHash?: string
    • Readonly version: number
  • Returns Required<BlockHeaderAttrs>

  • Returns void

  • Returns void

  • Parameters

    • publicKey: Buffer
    • chainID: Buffer

    Returns void

  • Parameters

    • value: Buffer

    Returns BlockHeader

  • Parameters

    • value: Record<string, unknown>

    Returns BlockHeader

Generated using TypeDoc