Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MultichainProviders

Index

Constructors

  • new MultichainProviders(chainId?: number, urlOrKey?: string, type?: string): MultichainProviders

Properties

chainIdDefault: number = 1
getNonce: (address: string, chainId: number) => Promise<number> = ...

Type declaration

    • (address: string, chainId: number): Promise<number>
    • Parameters

      • address: string
      • chainId: number

      Returns Promise<number>

providers: ProviderList = {}

Methods

  • call(transaction: any, chainId: number): Promise<string>
  • connect(chainId: number, urlOrKey: string, type?: string): void | Provider
  • estimateGas(transaction: any, chainId: number): Promise<BigNumber>
  • getBalance(address: string, chainId: number): Promise<BigNumber>
  • getBlock(block: number, chainId: number): Promise<Block>
  • getBlockNumber(chainId: number): Promise<number>
  • getBlockWithTransactions(block: number, chainId: number): Promise<Block>
  • getCode(address: string, chainId: number): Promise<string>
  • getFeeData(chainId: number): Promise<FeeData>
  • getGasPrice(chainId: number): Promise<BigNumber>
  • getLogs(filter: Filter, chainId: number): Promise<Log[]>
  • getLogsDecoded(chainId: number, filter: Filter, interface_: Interface, fragment: EventFragment): Promise<{ log: Log; parsed: Result }[]>
  • Parameters

    • chainId: number
    • filter: Filter
    • interface_: Interface
    • fragment: EventFragment

    Returns Promise<{ log: Log; parsed: Result }[]>

  • getNetwork(chainId: number): Promise<Network>
  • getProvider(chainId: number): Provider
  • getResolver(name: string, chainId: number): Promise<any>
  • getStorageAt(address: string, position: string, chainId: number): Promise<string>
  • getTransaction(hash: string, chainId: number): Promise<TransactionResponse>
  • getTransactionCount(address: string, chainId: number): Promise<number>
  • getTransactionReceipt(hash: string, chainId: number): Promise<TransactionReceipt>
  • getTransactions(chainId: number, address: string): Promise<any>
  • lookupAddress(name: string, chainId: number): Promise<null | string>
  • resolveName(name: string, chainId: number): Promise<null | string>
  • sendTransaction(transaction: any, chainId: number): Promise<TransactionResponse>
  • waitForTransaction(hash: string, chainId: number): Promise<TransactionReceipt>

Generated using TypeDoc