Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GRPCRootClient

gRPC client for the root node. Uses raw gRPC (i.e., not gRPC web) and is therefore unsuitable for browser use.

See IRootClient for descriptions of each method.

Hierarchy

  • GRPCRootClient

Implements

Index

Constructors

constructor

  • new GRPCRootClient(url: string, creds?: ChannelCredentials): GRPCRootClient
  • Constructs a new GRPCRootClient.

    Parameters

    • url: string

      URL to the root node (without a protocol).

    • Optional creds: ChannelCredentials

      gRPC credentials to use while communicating with the root node.

    Returns GRPCRootClient

Methods

confirm

getBalance

  • getBalance(address: string): Promise<BN>
  • Parameters

    • address: string

    Returns Promise<BN>

getBlock

  • getBlock(number: number): Promise<Block>
  • Parameters

    • number: number

    Returns Promise<Block>

getUTXOs

  • getUTXOs(address: string): Promise<Outpoint[]>

send

Generated using TypeDoc