Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Web3KeyWriteProvider Abstract

Hierarchy

Index

Constructors

Properties

_currentAccount: null | string = null
_currentChain: number = 0
_rpcConfig: TRPCConfig = RPC_URLS_BY_NETWORK
accounts: string[] = []
persistStorageService: PersistStorageService = ...
provider: provider = null
walletMeta: undefined | IWalletMeta
web3: null | default = null

Accessors

  • get currentAccount(): string
  • set currentAccount(addr: null | string): void
  • get currentChain(): number
  • set currentChain(chainId: number): void
  • get rpcConfig(): TRPCConfig
  • set rpcConfig(config: TRPCConfig): void

Methods

  • addNetworkToWallet(chainId: number): Promise<any>
  • addTokenToWallet(__namedParameters: ITokenInfo): Promise<boolean>
  • addWalletEventsListener(): void
  • 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
  • getMaxFees(): Promise<IGetMaxFeesResult>
  • getReadWeb3(): default
  • getSafeGasPriceWei(): Promise<BigNumber>
  • getTokenBalance(contract: Contract, address: string): Promise<BigNumber>
  • getUnlockedAccounts(web3: default): Promise<string[]>
  • getWalletMeta(): IWalletMeta
  • getWeb3(): default
  • inject(): Promise<void>
  • isBinance(): boolean
  • isConnected(): boolean
  • removeWalletEventsListener(provider?: provider): void
  • sendTransactionAsync(from: string, to: string, sendOptions: ISendOptions): Promise<IWeb3SendResult>
  • setWalletMeta(): void
  • signMessage(message: string, account?: string): Promise<any>
  • switchNetwork(chainId: number): Promise<void>
  • watchAsset(config: { address: string; decimals?: number; image?: string; symbol: string; type: "ERC20" }): Promise<void>
  • isInjected(): boolean

Generated using TypeDoc