Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

HDRootKey

HDRootKey: any = null

NETWORKS

NETWORKS: Network[] = []

blockchain

blockchain: any

callId

callId: number = 0

connected

connected: boolean = false

customNetworkUrl

customNetworkUrl: boolean = false

network

network: Network = this.NETWORKS[0]

Static NETWORKS

NETWORKS: Network[] = networks

Methods

buildCall

  • buildCall(cmethod: string, cparams: any): any

estimateGas

  • estimateGas(callArguments: any): Promise<number>

getBalance

  • getBalance(caddress: string): Promise<BigNumber>

getCurrentNetworkPathString

  • getCurrentNetworkPathString(): any

getNetwork

getNonce

  • getNonce(caddress: string): Promise<number>

getTransactionReceipt

init

  • Initialises node on specified network or default if network param is not supplied

    Parameters

    Returns void

resetCustomNetworkUrl

  • resetCustomNetworkUrl(): void

resultDecoder

  • resultDecoder(data: any, type?: string): any

rpcCall

  • rpcCall(method: string, params: any, dec?: string): Promise<any>
  • Posts an RPC call to the current network

    Parameters

    • method: string

      RPC Method name

    • params: any

      RPC Method parameters

    • Optional dec: string

    Returns Promise<any>

    raw or decoded result

send

sendRaw

  • sendRaw(data: any): Promise<string>

setCustomNetworkUrl

  • setCustomNetworkUrl(url: string): void

Static getImplementedClassName

  • getImplementedClassName(name: string): string

Generated using TypeDoc