Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Web3KeyReadProvider Abstract

Hierarchy

Implements

  • IProvider

Index

Constructors

Properties

_currentChain: number = 0
provider: provider = null
web3: null | default = null

Accessors

  • get currentChain(): number
  • set currentChain(chainId: number): void

Methods

  • connect(): Promise<void>
  • createContract(abi: any, address: string): Contract
  • disconnect(): void
  • executeBatchCalls<T>(calls: TWeb3Call<T>[]): Promise<T[]>
  • getBlockNumber(): Promise<number>
  • getContractMethodFee(methodEstimateGas: number): Promise<BigNumber>
  • getErc20Balance(contract: Contract, address: string): Promise<BigNumber>
  • getFormattedBalance(balance: Value, decimals: Value): BigNumber
  • getSafeGasPriceWei(): Promise<BigNumber>
  • getTokenBalance(contract: Contract, address: string): Promise<BigNumber>
  • getWeb3(): default
  • isConnected(): boolean
  • watchAsset(config: { address: string; decimals?: number; image?: string; symbol: string; type: "ERC20" }): Promise<void>
  • isInjected(): boolean

Generated using TypeDoc