- Types
- Functions
- AbstractProvider
- AbstractProviderPlugin
- FilterIdEventSubscriber
- FilterIdPendingSubscriber
- FilterIdSubscriber
- OnBlockSubscriber
- PerformActionTransaction
- PollingBlockSubscriber
- PollingEventSubscriber
- PollingOrphanSubscriber
- PollingTransactionSubscriber
- Subscriber
- UnmanagedSubscriber
<src>DebugEventAbstractProvider⇒ { action: "sendCcipReadFetchRequest" , index: number , request: FetchRequest , urls: Array< string > } | { action: "receiveCcipReadFetchResult" , request: FetchRequest , result: any } | { action: "receiveCcipReadFetchError" , request: FetchRequest , result: any } | { action: "sendCcipReadCall" , transaction: { data: string , to: string } } | { action: "receiveCcipReadCallResult" , result: string , transaction: { data: string , to: string } } | { action: "receiveCcipReadCallError" , error: Error , transaction: { data: string , to: string } }
<src>PerformActionFilter⇒ { address?: string | Array< string > , fromBlock?: BlockTag , toBlock?: BlockTag , topics?: Array< null | string | Array< string > > } | { address?: string | Array< string > , blockHash?: string , topics?: Array< null | string | Array< string > > }
<src>PerformActionRequest⇒ { method: "broadcastTransaction" , signedTransaction: string } | { blockTag: BlockTag , method: "call" , transaction: PerformActionTransaction } | { method: "chainId" } | { method: "estimateGas" , transaction: PerformActionTransaction } | { address: string , blockTag: BlockTag , method: "getBalance" } | { blockTag: BlockTag , includeTransactions: boolean , method: "getBlock" } | { blockHash: string , includeTransactions: boolean , method: "getBlock" } | { method: "getBlockNumber" } | { address: string , blockTag: BlockTag , method: "getCode" } | { method: "getGasPrice" } | { filter: PerformActionFilter , method: "getLogs" } | { address: string , blockTag: BlockTag , method: "getStorage" , position: bigint } | { hash: string , method: "getTransaction" } | { address: string , blockTag: BlockTag , method: "getTransactionCount" } | { hash: string , method: "getTransactionReceipt" } | { hash: string , method: "getTransactionResult" }
<src>Subscription⇒ { tag: string , type: "block" | "close" | "debug" | "network" | "pending" } | { hash: string , tag: string , type: "transaction" } | { filter: EventFilter , tag: string , type: "event" } | { filter: OrphanFilter , tag: string , type: "orphan" }
Generic long-lived socket provider.
Sub-classing notes
- a sub-class MUST call the `_start()` method once connected
- a sub-class MUST override the `_write(string)` method
- a sub-class MUST call `_processMessage(string)` for each message
inherits fromJsonRpcApiProvider, AbstractProvider, Provider, ContractRunner, EventEmitterable, NameResolver
SocketProvider...
CREATING INSTANCES
METHODS
PROPERTIES
CREATING INSTANCES
METHODS
<src>abstractProvider._getFilter(filter: Filter | FilterByBlockHash)⇒ PerformActionFilter | Promise< PerformActionFilter >
<src>abstractProvider._getTransactionRequest(request: TransactionRequest)⇒ PerformActionTransaction | Promise< PerformActionTransaction >
<src>abstractProvider._wrapTransactionReceipt(value: TransactionReceiptParams, network: Network)⇒ TransactionReceipt
<src>abstractProvider._wrapTransactionResponse(tx: TransactionResponseParams, network: Network)⇒ TransactionResponse
<src>abstractProvider.ccipReadFetch(tx: PerformActionTransaction, calldata: string, urls: Array< string >)⇒ Promise< null | string >
PROPERTIES
METHODS
inherits fromFilterIdSubscriber, Subscriber
A FilterIdSubscriber for receiving contract events.
CREATING INSTANCES
inherits fromFilterIdSubscriber, Subscriber
A FilterIdSubscriber for receiving pending transactions events.
inherits fromSubscriber
Some backends support subscribing to events using a Filter ID.
When subscribing with this technique, the node issues a unique Filter ID. At this point the node dedicates resources to the filter, so that periodic calls to follow up on the Filter ID will receive any events since the last call.
CREATING INSTANCES
METHODS
<src>filterIdSubscriber._emitResults(provider: AbstractProvider, result: Array< any >)⇒ Promise< void >
inherits fromPreparedTransactionRequest
PROPERTIES
METHODS