Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GenericNode

Hierarchy

Index

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[] = []

Methods

buildCall

  • buildCall(cmethod: string, cparams: any): any
  • Build an RPC call

    Parameters

    • cmethod: string
    • cparams: any

    Returns any

    call

Abstract estimateGas

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

    Parameters

    • callArguments: any

    Returns Promise<number>

    gas estimate

Abstract getBalance

  • getBalance(address: string): Promise<BigNumber>
  • Gets balance

    Parameters

    • address: string

    Returns Promise<BigNumber>

    balance

getCurrentNetworkPathString

  • getCurrentNetworkPathString(): any
  • Gets current network path string

    Returns any

    current network path string

getNetwork

Abstract getNonce

  • getNonce(address: string): Promise<number>
  • Gets nonce

    Parameters

    • address: string

    Returns Promise<number>

    nonce

Abstract 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
  • Converts the received data into the requested type

    Parameters

    • data: any
    • Optional type: string

    Returns any

    decoded result

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

Abstract send

setCustomNetworkUrl

  • setCustomNetworkUrl(url: string): void
  • Sets custom network url

    Parameters

    • url: string

    Returns void

Static getImplementedClassName

  • getImplementedClassName(name: string): string
  • Gets implemented class name

    Parameters

    • name: string

    Returns string

    class name string

Generated using TypeDoc