Options
All
  • Public
  • Public/Protected
  • All
Menu

Module api

Index

Functions

Const call

  • call(network: Network, params: [{ data?: undefined | string; from?: undefined | string; gas?: undefined | number; gasPrice?: undefined | number; to: string; value?: undefined | number }, Tag]): Promise<string>
  • Send an eth_call call to the network.

    Parameters

    • network: Network
    • params: [{ data?: undefined | string; from?: undefined | string; gas?: undefined | number; gasPrice?: undefined | number; to: string; value?: undefined | number }, Tag]

    Returns Promise<string>

Const getChainId

  • getChainId(network: Network): Promise<number>
  • Returns the current chain ID as number.

    Parameters

    Returns Promise<number>

Const getVersion

  • getVersion(network: Network): Promise<number>
  • Returns the current network ID as number.

    Parameters

    Returns Promise<number>

Generated using TypeDoc