Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • JsonRpcProvider
    • Web3Provider

Index

Constructors

Properties

_bootstrapPoll: Timer
_emitted: {}

Type declaration

  • [eventName: string]: number | "pending"
_eventLoopCache: Record<string, Promise<any>>
_events: Event[]
_fastBlockNumber: number
_fastBlockNumberPromise: Promise<number>
_fastQueryDate: number
_internalBlockNumber: Promise<{ blockNumber: number; reqTime: number; respTime: number }>
_isProvider: boolean
_lastBlockNumber: number
_maxFilterBlockRange: number
_maxInternalBlockNumber: number
_network: Network
_networkPromise: Promise<Network>
_nextId: number
_pendingFilter: Promise<number>
_poller: Timer
_pollingInterval: number
anyNetwork: boolean
connection: ConnectionInfo
disableCcipRead: boolean
formatter: Formatter
jsonRpcFetchFunc: JsonRpcFetchFunc

Accessors

  • get _cache(): Record<string, Promise<any>>
  • Returns Record<string, Promise<any>>

  • get blockNumber(): number
  • Returns number

  • get network(): Network
  • Returns Network

  • get polling(): boolean
  • set polling(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

  • get pollingInterval(): number
  • set pollingInterval(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

  • get ready(): Promise<Network>
  • Returns Promise<Network>

Methods

  • Parameters

    Returns Web3Provider

  • Parameters

    Returns Promise<string>

  • _getAddress(addressOrName: string | Promise<string>): Promise<string>
  • Parameters

    • addressOrName: string | Promise<string>

    Returns Promise<string>

  • Parameters

    • blockHashOrBlockTag: BlockTag | Promise<BlockTag>
    • Optional includeTransactions: boolean

    Returns Promise<Block | BlockWithTransactions>

  • Parameters

    Returns Promise<BlockTag>

  • _getFastBlockNumber(): Promise<number>
  • Returns Promise<number>

  • _getInternalBlockNumber(maxAge: number): Promise<number>
  • Parameters

    • maxAge: number

    Returns Promise<number>

  • _getResolver(name: string, operation?: string): Promise<string>
  • Parameters

    • name: string
    • Optional operation: string

    Returns Promise<string>

  • Parameters

    Returns Promise<Transaction>

  • _ready(): Promise<Network>
  • Returns Promise<Network>

  • _setFastBlockNumber(blockNumber: number): void
  • Parameters

    • blockNumber: number

    Returns void

  • _startEvent(event: Event): void
  • Parameters

    • event: Event

    Returns void

  • _startPending(): void
  • Returns void

  • _stopEvent(event: Event): void
  • Parameters

    • event: Event

    Returns void

  • _uncachedDetectNetwork(): Promise<Network>
  • Returns Promise<Network>

  • _waitForTransaction(transactionHash: string, confirmations: number, timeout: number, replaceable: { data: string; from: string; nonce: number; startBlock: number; to: string; value: BigNumber }): Promise<TransactionReceipt>
  • Parameters

    • transactionHash: string
    • confirmations: number
    • timeout: number
    • replaceable: { data: string; from: string; nonce: number; startBlock: number; to: string; value: BigNumber }
      • data: string
      • from: string
      • nonce: number
      • startBlock: number
      • to: string
      • value: BigNumber

    Returns Promise<TransactionReceipt>

  • Parameters

    • tx: Transaction
    • Optional hash: string
    • Optional startBlock: number

    Returns TransactionResponse

  • Parameters

    Returns Provider

  • Parameters

    Returns Promise<string>

  • ccipReadFetch(tx: Transaction, calldata: string, urls: string[]): Promise<null | string>
  • Parameters

    • tx: Transaction
    • calldata: string
    • urls: string[]

    Returns Promise<null | string>

  • detectNetwork(): Promise<Network>
  • Returns Promise<Network>

  • emit(eventName: EventType, ...args: any[]): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns Promise<BigNumber>

  • getAvatar(nameOrAddress: string): Promise<null | string>
  • Parameters

    • nameOrAddress: string

    Returns Promise<null | string>

  • getBalance(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<BigNumber>
  • Parameters

    • addressOrName: string | Promise<string>
    • Optional blockTag: BlockTag | Promise<BlockTag>

    Returns Promise<BigNumber>

  • Parameters

    Returns Promise<Block>

  • getBlockNumber(): Promise<number>
  • Returns Promise<number>

  • Parameters

    Returns Promise<BlockWithTransactions>

  • getCode(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<string>
  • Parameters

    • addressOrName: string | Promise<string>
    • Optional blockTag: BlockTag | Promise<BlockTag>

    Returns Promise<string>

  • getEtherPrice(): Promise<number>
  • Returns Promise<number>

  • Returns Promise<FeeData>

  • getGasPrice(): Promise<BigNumber>
  • Returns Promise<BigNumber>

  • getNetwork(): Promise<Network>
  • Returns Promise<Network>

  • getResolver(name: string): Promise<null | Resolver>
  • Parameters

    • name: string

    Returns Promise<null | Resolver>

  • Parameters

    • Optional addressOrIndex: string | number

    Returns JsonRpcSigner

  • Parameters

    Returns Promise<string>

  • Parameters

    • transactionHash: string | Promise<string>

    Returns Promise<TransactionResponse>

  • getTransactionCount(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<number>
  • Parameters

    • addressOrName: string | Promise<string>
    • Optional blockTag: BlockTag | Promise<BlockTag>

    Returns Promise<number>

  • getTransactionReceipt(transactionHash: string | Promise<string>): Promise<TransactionReceipt>
  • Parameters

    • transactionHash: string | Promise<string>

    Returns Promise<TransactionReceipt>

  • Parameters

    • Optional addressOrIndex: string | number

    Returns UncheckedJsonRpcSigner

  • listAccounts(): Promise<string[]>
  • Returns Promise<string[]>

  • Parameters

    Returns number

  • Parameters

    Returns Listener[]

  • lookupAddress(address: string | Promise<string>): Promise<null | string>
  • Parameters

    • address: string | Promise<string>

    Returns Promise<null | string>

  • Parameters

    Returns Web3Provider

  • Parameters

    Returns Web3Provider

  • Parameters

    Returns Web3Provider

  • perform(method: string, params: any): Promise<any>
  • Parameters

    • method: string
    • params: any

    Returns Promise<any>

  • poll(): Promise<void>
  • Returns Promise<void>

  • prepareRequest(method: string, params: any): [string, any[]]
  • Parameters

    • method: string
    • params: any

    Returns [string, any[]]

  • Parameters

    Returns Web3Provider

  • Parameters

    Returns Provider

  • resetEventsBlock(blockNumber: number): void
  • Parameters

    • blockNumber: number

    Returns void

  • resolveName(name: string | Promise<string>): Promise<null | string>
  • Parameters

    • name: string | Promise<string>

    Returns Promise<null | string>

  • send(method: string, params: any[]): Promise<any>
  • Parameters

    • method: string
    • params: any[]

    Returns Promise<any>

  • Parameters

    • signedTransaction: string | Promise<string>

    Returns Promise<TransactionResponse>

  • waitForTransaction(transactionHash: string, confirmations?: number, timeout?: number): Promise<TransactionReceipt>
  • Parameters

    • transactionHash: string
    • Optional confirmations: number
    • Optional timeout: number

    Returns Promise<TransactionReceipt>

  • defaultUrl(): string
  • Returns string

  • Returns Formatter

  • Parameters

    Returns Network

  • Parameters

    Returns {}

  • isProvider(value: any): value is Provider
  • Parameters

    • value: any

    Returns value is Provider

Generated using TypeDoc