Options
All
  • Public
  • Public/Protected
  • All
Menu

Blockchain http repository.

since

1.0

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected url

url: string

Methods

Protected call

  • call<D, M>(remoteCall: Promise<{ body: D; response: IncomingMessage }>, mapper: (value: D, index: number) => M): Observable<M>
  • This method knows how to call, convert and handle exception when doing remote http operations.

    Type parameters

    • D

    • M

    Parameters

    • remoteCall: Promise<{ body: D; response: IncomingMessage }>

      the remote call

    • mapper: (value: D, index: number) => M

      the mapper from dto to the model object.

        • (value: D, index: number): M
        • Parameters

          • value: D
          • index: number

          Returns M

    Returns Observable<M>

createNetworkTypeObservable

errorHandling

  • errorHandling(error: any): Error

getBlockByHeight

getBlockTransactions

getBlocksByHeightWithLimit

  • getBlocksByHeightWithLimit(height: UInt64, limit: number): Observable<BlockInfo[]>

getMerkleTransaction

  • Get the merkle path for a given a transaction and block Returns the merkle path for a transaction included in a block. The path is the complementary data needed to calculate the merkle root. A client can compare if the calculated root equals the one recorded in the block header, verifying that the transaction was included in the block.

    Parameters

    • height: UInt64

      The height of the block.

    • hash: string

      The hash of the transaction.

    Returns Observable<MerkleProofInfo>

    Observable

queryParams

transactionFilter

Generated using TypeDoc