@hiveio/dhive
    Preparing search index...

    Class BlockAPI

    Index
    client: Client
    • Convenience for calling block_api.

      Parameters

      • method: string
      • Optionalparams: any

      Returns Promise<any>

    • Return block blockNum, or null if the node has no such block.

      Parameters

      • blockNum: number

      Returns Promise<BlockApiSignedBlock | null>

    • Return the header of block blockNum, or null if the node has no such block.

      Parameters

      • blockNum: number

      Returns Promise<BlockApiBlockHeader | null>

    • Return up to count consecutive blocks starting at startingBlockNum. Nodes reject a count above 1000, and return no blocks past their head block.

      Parameters

      • startingBlockNum: number
      • count: number

      Returns Promise<BlockApiSignedBlock[]>