Class TorProvider

You can also set up a SOCKS5 I2P tunnel on some port and then use that instead. Meaning that this should be compatible with I2P.

Hierarchy

  • Web3Provider
    • TorProvider

Constructors

  • Parameters

    Returns TorProvider

Properties

_bootstrapPoll: Timer
_emitted: {
    [eventName: string]: number | "pending";
}

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
provider: ExternalProvider

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
  • Returns boolean

  • set polling(value): void
  • Parameters

    • value: boolean

    Returns void

  • get pollingInterval(): number
  • Returns number

  • set pollingInterval(value): void
  • Parameters

    • value: number

    Returns void

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

Methods

  • Parameters

    • eventName: EventType
    • listener: Listener
    • once: boolean

    Returns TorProvider

  • Parameters

    • transaction: TransactionRequest
    • blockTag: BlockTag
    • attempt: number

    Returns Promise<string>

  • Parameters

    • addressOrName: string | Promise<string>

    Returns Promise<string>

  • Parameters

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

    Returns Promise<Block | BlockWithTransactions>

  • Parameters

    • blockTag: BlockTag | Promise<BlockTag>

    Returns Promise<BlockTag>

  • Returns Promise<number>

  • Parameters

    • filter: Filter | FilterByBlockHash | Promise<Filter | FilterByBlockHash>

    Returns Promise<Filter | FilterByBlockHash>

  • Parameters

    • maxAge: number

    Returns Promise<number>

  • Parameters

    • name: string
    • Optional operation: string

    Returns Promise<string>

  • Parameters

    • transaction: Deferrable<TransactionRequest>

    Returns Promise<Transaction>

  • Returns Promise<Network>

  • Parameters

    • blockNumber: number

    Returns void

  • Parameters

    • event: Event

    Returns void

  • Returns void

  • Parameters

    • event: Event

    Returns void

  • Returns Promise<Network>

  • 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

    • eventName: EventType
    • listener: Listener

    Returns Provider

  • Parameters

    • transaction: Deferrable<TransactionRequest>
    • Optional blockTag: BlockTag | Promise<BlockTag>

    Returns Promise<string>

  • Parameters

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

    Returns Promise<null | string>

  • Returns Promise<Network>

  • Parameters

    • eventName: EventType
    • Rest ...args: any[]

    Returns boolean

  • Parameters

    • transaction: Deferrable<TransactionRequest>

    Returns Promise<BigNumber>

  • Parameters

    • nameOrAddress: string

    Returns Promise<null | string>

  • Parameters

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

    Returns Promise<BigNumber>

  • Parameters

    • blockHashOrBlockTag: BlockTag | Promise<BlockTag>

    Returns Promise<Block>

  • Returns Promise<number>

  • Parameters

    • blockHashOrBlockTag: BlockTag | Promise<BlockTag>

    Returns Promise<BlockWithTransactions>

  • Parameters

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

    Returns Promise<string>

  • Returns Promise<number>

  • Returns Promise<FeeData>

  • Returns Promise<BigNumber>

  • Parameters

    • filter: Filter | FilterByBlockHash | Promise<Filter | FilterByBlockHash>

    Returns Promise<Log[]>

  • Returns Promise<Network>

  • Parameters

    • name: string

    Returns Promise<null | Resolver>

  • Parameters

    • Optional addressOrIndex: string | number

    Returns JsonRpcSigner

  • Parameters

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

    Returns Promise<string>

  • Parameters

    • transactionHash: string | Promise<string>

    Returns Promise<TransactionResponse>

  • Parameters

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

    Returns Promise<number>

  • Parameters

    • transactionHash: string | Promise<string>

    Returns Promise<TransactionReceipt>

  • Parameters

    • Optional addressOrIndex: string | number

    Returns UncheckedJsonRpcSigner

  • Returns Promise<string[]>

  • Parameters

    • Optional eventName: EventType

    Returns number

  • Parameters

    • Optional eventName: EventType

    Returns Listener[]

  • Parameters

    • address: string | Promise<string>

    Returns Promise<null | string>

  • Parameters

    • eventName: EventType
    • Optional listener: Listener

    Returns TorProvider

  • Parameters

    • eventName: EventType
    • listener: Listener

    Returns TorProvider

  • Parameters

    • eventName: EventType
    • listener: Listener

    Returns TorProvider

  • Parameters

    • method: string
    • params: any

    Returns Promise<any>

  • Returns Promise<void>

  • Parameters

    • method: string
    • params: any

    Returns [string, any[]]

  • Parameters

    • Optional eventName: EventType

    Returns TorProvider

  • Parameters

    • eventName: EventType
    • listener: Listener

    Returns Provider

  • Parameters

    • blockNumber: number

    Returns void

  • Parameters

    • name: string | Promise<string>

    Returns Promise<null | string>

  • Parameters

    • method: string
    • params: any[]

    Returns Promise<any>

  • Parameters

    • signedTransaction: string | Promise<string>

    Returns Promise<TransactionResponse>

  • Parameters

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

    Returns Promise<TransactionReceipt>

  • Returns string

  • Returns Formatter

  • Parameters

    • network: Networkish

    Returns Network

  • Parameters

    • transaction: TransactionRequest
    • Optional allowExtra: {
          [key: string]: boolean;
      }
      • [key: string]: boolean

    Returns {
        [key: string]: string | AccessList;
    }

    • [key: string]: string | AccessList
  • Parameters

    • value: any

    Returns value is Provider

Generated using TypeDoc