TevmProvider
An ethers JsonRpcApiProvider using a tevm MemoryClient as it’s backend
TevmProvider
The TevmProvider class is an instance of an ethers provider using Tevm as it’s backend. The createMemoryProvider
method can be used to create an in memory instance of tevm using a memoryClient as it’s backend.
Examples
Using with an http client
The constructor takes any instance of tevm including the httpClient
.
Ethers provider support
You can use all the normal ethers apis to interact with tevm.
Tevm actions support
The entire tevm api exists on the tevm
property. For example the tevm.script
method can be used to run an arbitrary script.
Tevm JSON-RPC support
An ethers TevmProvider supports the tevm JSON-RPC methods. For example you can use tevm_account
to set account
See
Extends
JsonRpcApiProvider
Constructors
new TevmProvider()
new TevmProvider(
client
):TevmProvider
Parameters
• client: TevmSendApi
& TevmActionsApi
| object
An instance of a tevm Memory client or BaseClient with TevmSendApi
Returns
Overrides
JsonRpcApiProvider.constructor
Source
extensions/ethers/src/TevmProvider.js:173
Properties
#private
private
#private:any
Inherited from
JsonRpcApiProvider.#private
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:212
#private
private
#private:any
Inherited from
JsonRpcApiProvider.#private
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:253
tevm
tevm:
TevmSendApi
&TevmActionsApi
An instance of the TevmClient interface.
See
Example
Source
extensions/ethers/src/TevmProvider.js:168
Accessors
_network
get
_network():Network
Gets the [[Network]] this provider has committed to. On each call, the network is detected, and if it has changed, the call will reject.
Returns
Network
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:224
destroyed
get
destroyed():boolean
If this provider has been destroyed using the [[destroy]] method.
Once destroyed, all resources are reclaimed, internal event loops and timers are cleaned up and no further requests may be sent to the provider.
Returns
boolean
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:419
disableCcipRead
get
disableCcipRead():boolean
Prevent any CCIP-read operation, regardless of whether requested
in a [[call]] using enableCcipRead
.
set
disableCcipRead(value
):void
Parameters
• value: boolean
Returns
boolean
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:282
paused
get
paused():boolean
Whether the provider is currently paused.
A paused provider will not emit any events, and generally should not make any requests to the network, but that is up to sub-classes to manage.
Setting paused = true
is identical to calling .pause(false)
,
which will buffer any events that occur while paused until the
provider is unpaused.
set
paused(pause
):void
Parameters
• pause: boolean
Returns
boolean
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:438
plugins
get
plugins():AbstractProviderPlugin
[]
Returns all the registered plug-ins.
Returns
AbstractProviderPlugin
[]
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:269
pollingInterval
get
pollingInterval():number
Returns
number
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:260
provider
get
provider():this
Returns this
, to allow an AbstractProvider to implement
the [[ContractRunner]] interface.
Returns
this
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:265
ready
get
ready():boolean
Returns true only if the [[_start]] has been called.
Returns
boolean
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:270
Methods
_clearTimeout()
_clearTimeout(
timerId
):void
Clear a timer created using the [[_setTimeout]] method.
Parameters
• timerId: number
Returns
void
Inherited from
JsonRpcApiProvider._clearTimeout
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:374
_detectNetwork()
_detectNetwork():
Promise
<Network
>
Sub-classes may override this; it detects the actual network that we are currently connected to.
Keep in mind that [[send]] may only be used once [[ready]], otherwise the _send primitive must be used instead.
Returns
Promise
<Network
>
Inherited from
JsonRpcApiProvider._detectNetwork
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:245
_forEachSubscriber()
_forEachSubscriber(
func
):void
Perform %%func%% on each subscriber.
Parameters
• func
Returns
void
Inherited from
JsonRpcApiProvider._forEachSubscriber
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:387
_getAddress()
_getAddress(
address
):string
|Promise
<string
>
Returns or resolves to the address for %%address%%, resolving ENS names and [[Addressable]] objects and returning if already an address.
Parameters
• address: AddressLike
Returns
string
| Promise
<string
>
Inherited from
JsonRpcApiProvider._getAddress
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:332
_getBlockTag()
_getBlockTag(
blockTag
?):string
|Promise
<string
>
Returns or resolves to a valid block tag for %%blockTag%%, resolving negative values and returning if already a valid block tag.
Parameters
• blockTag?: BlockTag
Returns
string
| Promise
<string
>
Inherited from
JsonRpcApiProvider._getBlockTag
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:337
_getFilter()
_getFilter(
filter
):PerformActionFilter
|Promise
<PerformActionFilter
>
Returns or resolves to a filter for %%filter%%, resolving any ENS names or [[Addressable]] object and returning if already a valid filter.
Parameters
• filter: Filter
| FilterByBlockHash
Returns
PerformActionFilter
| Promise
<PerformActionFilter
>
Inherited from
JsonRpcApiProvider._getFilter
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:343
_getOption()
_getOption<
K
>(key
):JsonRpcApiProviderOptions
[K
]
Returns the value associated with the option %%key%%.
Sub-classes can use this to inquire about configuration options.
Type parameters
• K extends keyof JsonRpcApiProviderOptions
Parameters
• key: K
Returns
JsonRpcApiProviderOptions
[K
]
Inherited from
JsonRpcApiProvider._getOption
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:219
_getProvider()
_getProvider(
chainId
):AbstractProvider
Parameters
• chainId: number
Returns
AbstractProvider
Inherited from
JsonRpcApiProvider._getProvider
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:364
_getSubscriber()
_getSubscriber(
sub
):Subscriber
Return a Subscriber that will manage the %%sub%%.
Sub-classes may override this to modify the behavior of subscription management.
Parameters
• sub: Subscription
Returns
Subscriber
Inherited from
JsonRpcApiProvider._getSubscriber
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:266
_getTransactionRequest()
_getTransactionRequest(
_request
):PerformActionTransaction
|Promise
<PerformActionTransaction
>
Returns or resolves to a transaction for %%request%%, resolving any ENS names or [[Addressable]] and returning if already a valid transaction.
Parameters
• _request: TransactionRequest
Returns
PerformActionTransaction
| Promise
<PerformActionTransaction
>
Inherited from
JsonRpcApiProvider._getTransactionRequest
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:349
_perform()
_perform(
req
):Promise
<any
>
Resolves to the non-normalized value by performing %%req%%.
Sub-classes may override this to modify behavior of actions,
and should generally call super._perform
as a fallback.
Parameters
• req: PerformActionRequest
Returns
Promise
<any
>
Inherited from
JsonRpcApiProvider._perform
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:237
_recoverSubscriber()
_recoverSubscriber(
oldSub
,newSub
):void
If a [[Subscriber]] fails and needs to replace itself, this method may be used.
For example, this is used for providers when using the
eth_getFilterChanges
method, which can return null if state
filters are not supported by the backend, allowing the Subscriber
to swap in a [[PollingEventSubscriber]].
Parameters
• oldSub: Subscriber
• newSub: Subscriber
Returns
void
Inherited from
JsonRpcApiProvider._recoverSubscriber
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:402
_send()
_send(
payload
):Promise
<(JsonRpcResult
|JsonRpcError
)[]>
Sends a JSON-RPC %%payload%% (or a batch) to the underlying tevm instance.
Parameters
• payload: JsonRpcPayload
| JsonRpcPayload
[]
Returns
Promise
<(JsonRpcResult
| JsonRpcError
)[]>
Overrides
JsonRpcApiProvider._send
Source
extensions/ethers/src/TevmProvider.js:187
_setTimeout()
_setTimeout(
_func
,timeout
?):number
Create a timer that will execute %%func%% after at least %%timeout%% (in ms). If %%timeout%% is unspecified, then %%func%% will execute in the next event loop.
Pausing the provider will pause any associated timers.
Parameters
• _func
• timeout?: number
Returns
number
Inherited from
JsonRpcApiProvider._setTimeout
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:383
_start()
_start():
void
Sub-classes MUST call this. Until [[_start]] has been called, no calls
will be passed to [[_send]] from [[send]]. If it is overridden, then
super._start()
MUST be called.
Calling it multiple times is safe and has no effect.
Returns
void
Inherited from
JsonRpcApiProvider._start
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:253
_waitUntilReady()
_waitUntilReady():
Promise
<void
>
Resolves once the [[_start]] has been called. This can be used in sub-classes to defer sending data until the connection has been established.
Returns
Promise
<void
>
Inherited from
JsonRpcApiProvider._waitUntilReady
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:259
_wrapBlock()
_wrapBlock(
value
,network
):Block
Provides the opportunity for a sub-class to wrap a block before returning it, to add additional properties or an alternate sub-class of [[Block]].
Parameters
• value: BlockParams
• network: Network
Returns
Block
Inherited from
JsonRpcApiProvider._wrapBlock
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:293
_wrapLog()
_wrapLog(
value
,network
):Log
Provides the opportunity for a sub-class to wrap a log before returning it, to add additional properties or an alternate sub-class of [[Log]].
Parameters
• value: LogParams
• network: Network
Returns
Log
Inherited from
JsonRpcApiProvider._wrapLog
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:299
_wrapTransactionReceipt()
_wrapTransactionReceipt(
value
,network
):TransactionReceipt
Provides the opportunity for a sub-class to wrap a transaction receipt before returning it, to add additional properties or an alternate sub-class of [[TransactionReceipt]].
Parameters
• value: TransactionReceiptParams
• network: Network
Returns
TransactionReceipt
Inherited from
JsonRpcApiProvider._wrapTransactionReceipt
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:305
_wrapTransactionResponse()
_wrapTransactionResponse(
tx
,network
):TransactionResponse
Provides the opportunity for a sub-class to wrap a transaction response before returning it, to add additional properties or an alternate sub-class of [[TransactionResponse]].
Parameters
• tx: TransactionResponseParams
• network: Network
Returns
TransactionResponse
Inherited from
JsonRpcApiProvider._wrapTransactionResponse
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:311
addListener()
addListener(
event
,listener
):Promise
<TevmProvider
>
Parameters
• event: ProviderEvent
• listener: Listener
Returns
Promise
<TevmProvider
>
Inherited from
JsonRpcApiProvider.addListener
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:410
attachPlugin()
attachPlugin(
plugin
):this
Attach a new plug-in.
Parameters
• plugin: AbstractProviderPlugin
Returns
this
Inherited from
JsonRpcApiProvider.attachPlugin
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:273
broadcastTransaction()
broadcastTransaction(
signedTx
):Promise
<TransactionResponse
>
Parameters
• signedTx: string
Returns
Promise
<TransactionResponse
>
Inherited from
JsonRpcApiProvider.broadcastTransaction
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:358
call()
call(
_tx
):Promise
<string
>
Parameters
• _tx: TransactionRequest
Returns
Promise
<string
>
Inherited from
JsonRpcApiProvider.call
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:353
ccipReadFetch()
ccipReadFetch(
tx
,calldata
,urls
):Promise
<null
|string
>
Resolves to the data for executing the CCIP-read operations.
Parameters
• tx: PerformActionTransaction
• calldata: string
• urls: string
[]
Returns
Promise
<null
| string
>
Inherited from
JsonRpcApiProvider.ccipReadFetch
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:287
destroy()
destroy():
void
Returns
void
Inherited from
JsonRpcApiProvider.destroy
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:320
emit()
emit(
event
, …args
):Promise
<boolean
>
Parameters
• event: ProviderEvent
• …args: any
[]
Returns
Promise
<boolean
>
Inherited from
JsonRpcApiProvider.emit
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:405
estimateGas()
estimateGas(
_tx
):Promise
<bigint
>
Parameters
• _tx: TransactionRequest
Returns
Promise
<bigint
>
Inherited from
JsonRpcApiProvider.estimateGas
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:352
getAvatar()
getAvatar(
name
):Promise
<null
|string
>
Parameters
• name: string
Returns
Promise
<null
| string
>
Inherited from
JsonRpcApiProvider.getAvatar
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:366
getBalance()
getBalance(
address
,blockTag
?):Promise
<bigint
>
Parameters
• address: AddressLike
• blockTag?: BlockTag
Returns
Promise
<bigint
>
Inherited from
JsonRpcApiProvider.getBalance
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:354
getBlock()
getBlock(
block
,prefetchTxs
?):Promise
<null
|Block
>
Parameters
• block: BlockTag
• prefetchTxs?: boolean
Returns
Promise
<null
| Block
>
Inherited from
JsonRpcApiProvider.getBlock
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:359
getBlockNumber()
getBlockNumber():
Promise
<number
>
Returns
Promise
<number
>
Inherited from
JsonRpcApiProvider.getBlockNumber
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:326
getCode()
getCode(
address
,blockTag
?):Promise
<string
>
Parameters
• address: AddressLike
• blockTag?: BlockTag
Returns
Promise
<string
>
Inherited from
JsonRpcApiProvider.getCode
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:356
getFeeData()
getFeeData():
Promise
<FeeData
>
Returns
Promise
<FeeData
>
Inherited from
JsonRpcApiProvider.getFeeData
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:351
getLogs()
getLogs(
_filter
):Promise
<Log
[]>
Parameters
• _filter: Filter
| FilterByBlockHash
Returns
Promise
<Log
[]>
Inherited from
JsonRpcApiProvider.getLogs
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:363
getNetwork()
getNetwork():
Promise
<Network
>
Returns
Promise
<Network
>
Inherited from
JsonRpcApiProvider.getNetwork
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:350
getPlugin()
getPlugin<
T
>(name
):null
|T
Get a plugin by name.
Type parameters
• T extends AbstractProviderPlugin
= AbstractProviderPlugin
Parameters
• name: string
Returns
null
| T
Inherited from
JsonRpcApiProvider.getPlugin
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:277
getResolver()
getResolver(
name
):Promise
<null
|EnsResolver
>
Parameters
• name: string
Returns
Promise
<null
| EnsResolver
>
Inherited from
JsonRpcApiProvider.getResolver
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:365
getRpcError()
getRpcError(
payload
,_error
):Error
Returns an ethers-style Error for the given JSON-RPC error %%payload%%, coalescing the various strings and error shapes that different nodes return, coercing them into a machine-readable standardized error.
Parameters
• payload: JsonRpcPayload
• _error: JsonRpcError
Returns
Error
Inherited from
JsonRpcApiProvider.getRpcError
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:291
getRpcRequest()
getRpcRequest(
req
):null
|object
Returns the request method and arguments required to perform %%req%%.
Parameters
• req: PerformActionRequest
Returns
null
| object
Inherited from
JsonRpcApiProvider.getRpcRequest
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:281
getRpcTransaction()
getRpcTransaction(
tx
):JsonRpcTransactionRequest
Returns %%tx%% as a normalized JSON-RPC transaction request, which has all values hexlified and any numeric values converted to Quantity values.
Parameters
• tx: TransactionRequest
Returns
JsonRpcTransactionRequest
Inherited from
JsonRpcApiProvider.getRpcTransaction
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:276
getSigner()
getSigner(
address
?):Promise
<JsonRpcSigner
>
Resolves to the [[Signer]] account for %%address%% managed by the client.
If the %%address%% is a number, it is used as an index in the the accounts from [[listAccounts]].
This can only be used on clients which manage accounts (such as Geth with imported account or MetaMask).
Throws if the account doesn’t exist.
Parameters
• address?: string
| number
Returns
Promise
<JsonRpcSigner
>
Inherited from
JsonRpcApiProvider.getSigner
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:318
getStorage()
getStorage(
address
,_position
,blockTag
?):Promise
<string
>
Parameters
• address: AddressLike
• _position: BigNumberish
• blockTag?: BlockTag
Returns
Promise
<string
>
Inherited from
JsonRpcApiProvider.getStorage
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:357
getTransaction()
getTransaction(
hash
):Promise
<null
|TransactionResponse
>
Parameters
• hash: string
Returns
Promise
<null
| TransactionResponse
>
Inherited from
JsonRpcApiProvider.getTransaction
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:360
getTransactionCount()
getTransactionCount(
address
,blockTag
?):Promise
<number
>
Parameters
• address: AddressLike
• blockTag?: BlockTag
Returns
Promise
<number
>
Inherited from
JsonRpcApiProvider.getTransactionCount
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:355
getTransactionReceipt()
getTransactionReceipt(
hash
):Promise
<null
|TransactionReceipt
>
Parameters
• hash: string
Returns
Promise
<null
| TransactionReceipt
>
Inherited from
JsonRpcApiProvider.getTransactionReceipt
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:361
getTransactionResult()
getTransactionResult(
hash
):Promise
<null
|string
>
Parameters
• hash: string
Returns
Promise
<null
| string
>
Inherited from
JsonRpcApiProvider.getTransactionResult
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:362
listAccounts()
listAccounts():
Promise
<JsonRpcSigner
[]>
Returns
Promise
<JsonRpcSigner
[]>
Inherited from
JsonRpcApiProvider.listAccounts
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:319
listenerCount()
listenerCount(
event
?):Promise
<number
>
Parameters
• event?: ProviderEvent
Returns
Promise
<number
>
Inherited from
JsonRpcApiProvider.listenerCount
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:406
listeners()
listeners(
event
?):Promise
<Listener
[]>
Parameters
• event?: ProviderEvent
Returns
Promise
<Listener
[]>
Inherited from
JsonRpcApiProvider.listeners
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:407
lookupAddress()
lookupAddress(
address
):Promise
<null
|string
>
Parameters
• address: string
Returns
Promise
<null
| string
>
Inherited from
JsonRpcApiProvider.lookupAddress
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:368
off()
off(
event
,listener
?):Promise
<TevmProvider
>
Parameters
• event: ProviderEvent
• listener?: Listener
Returns
Promise
<TevmProvider
>
Inherited from
JsonRpcApiProvider.off
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:408
on()
on(
event
,listener
):Promise
<TevmProvider
>
Parameters
• event: ProviderEvent
• listener: Listener
Returns
Promise
<TevmProvider
>
Inherited from
JsonRpcApiProvider.on
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:403
once()
once(
event
,listener
):Promise
<TevmProvider
>
Parameters
• event: ProviderEvent
• listener: Listener
Returns
Promise
<TevmProvider
>
Inherited from
JsonRpcApiProvider.once
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:404
pause()
pause(
dropWhilePaused
?):void
Pause the provider. If %%dropWhilePaused%%, any events that occur while paused are dropped, otherwise all events will be emitted once the provider is unpaused.
Parameters
• dropWhilePaused?: boolean
Returns
void
Inherited from
JsonRpcApiProvider.pause
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:445
removeAllListeners()
removeAllListeners(
event
?):Promise
<TevmProvider
>
Parameters
• event?: ProviderEvent
Returns
Promise
<TevmProvider
>
Inherited from
JsonRpcApiProvider.removeAllListeners
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:409
removeListener()
removeListener(
event
,listener
):Promise
<TevmProvider
>
Parameters
• event: ProviderEvent
• listener: Listener
Returns
Promise
<TevmProvider
>
Inherited from
JsonRpcApiProvider.removeListener
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:411
resolveName()
resolveName(
name
):Promise
<null
|string
>
Parameters
• name: string
Returns
Promise
<null
| string
>
Inherited from
JsonRpcApiProvider.resolveName
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:367
resume()
resume():
void
Resume the provider.
Returns
void
Inherited from
JsonRpcApiProvider.resume
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:449
send()
send(
method
,params
):Promise
<any
>
Requests the %%method%% with %%params%% via the JSON-RPC protocol over the underlying channel. This can be used to call methods on the backend that do not have a high-level API within the Provider API.
This method queues requests according to the batch constraints in the options, assigns the request a unique ID.
Do NOT override this method in sub-classes; instead override [[_send]] or force the options values in the call to the constructor to modify this method’s behavior.
Parameters
• method: string
• params: any
[] | Record
<string
, any
>
Returns
Promise
<any
>
Inherited from
JsonRpcApiProvider.send
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts:305
waitForBlock()
waitForBlock(
blockTag
?):Promise
<Block
>
Parameters
• blockTag?: BlockTag
Returns
Promise
<Block
>
Inherited from
JsonRpcApiProvider.waitForBlock
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:370
waitForTransaction()
waitForTransaction(
hash
,_confirms
?,timeout
?):Promise
<null
|TransactionReceipt
>
Parameters
• hash: string
• _confirms?: null
| number
• timeout?: null
| number
Returns
Promise
<null
| TransactionReceipt
>
Inherited from
JsonRpcApiProvider.waitForTransaction
Source
node_modules/.pnpm/ethers@6.13.0_bufferutil@4.0.8_utf-8-validate@6.0.4/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts:369
createMemoryProvider()
static
readonly
createMemoryProvider(options
):Promise
<TevmProvider
>
Creates a new TevmProvider instance with a TevmMemoryClient.
Parameters
• options: BaseClientOptions
Options to create a new TevmProvider.
Returns
Promise
<TevmProvider
>
A new TevmProvider instance.
See
Example
Source
extensions/ethers/src/TevmProvider.js:124