Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LightClientRPC

Hierarchy

  • LightClientRPC

Index

Constructors

constructor

  • Parameters

    • uri: string

      light client uri

    Returns LightClientRPC

Methods

fetchHeader

  • Parameters

    • blockHash: string

    Returns Promise<FetchHeaderResult>

fetchTransaction

  • Parameters

    • txHash: string

    Returns Promise<FetchTransactionResult>

getCells

  • Type parameters

    • WithData: boolean

    Parameters

    Returns Promise<GetLiveCellsResult<WithData>>

getCellsCapacity

  • Parameters

    Returns Promise<CellsCapacity>

getGenesisBlock

  • getGenesisBlock(): Promise<Block>
  • Returns Promise<Block>

getHeader

  • getHeader(blockHash: string): Promise<Header>
  • Parameters

    • blockHash: string

    Returns Promise<Header>

getScripts

  • Returns Promise<Array<LightClientScript>>

getTipHeader

  • getTipHeader(): Promise<Header>
  • Returns Promise<Header>

getTransaction

  • Parameters

    • txHash: string

    Returns Promise<TransactionWithHeader>

getTransactions

sendTransaction

  • Parameters

    Returns Promise<Hash>

setScripts

  • Parameters

    Returns Promise<void>

Generated using TypeDoc