EthActionsApi
EthActionsApi:
object
The actions api is the high level API for interacting with a Tevm client similar to viem actions These actions correspond 1:1 eith the public ethereum JSON-RPC api
See
https://tevm.sh/learn/actions/
Type declaration
eth
eth:
object
Standard JSON-RPC methods for interacting with the VM
See
eth.blockNumber
eth.blockNumber:
EthBlockNumberHandler
Returns the current block number
Set the tag
to a block number or block hash to get the balance at that block
Block tag defaults to ‘pending’ tag which is the optimistic state of the VM
See
Example
eth.call
eth.call:
EthCallHandler
Executes a call without modifying the state
Set the tag
to a block number or block hash to get the balance at that block
Block tag defaults to ‘pending’ tag which is the optimistic state of the VM
See
Example
eth.chainId
eth.chainId:
EthChainIdHandler
Returns the current chain id
Set the tag
to a block number or block hash to get the balance at that block
Block tag defaults to ‘pending’ tag which is the optimistic state of the VM
See
Example
eth.gasPrice
eth.gasPrice:
EthGasPriceHandler
Returns the current gas price
Set the tag
to a block number or block hash to get the balance at that block
Block tag defaults to ‘pending’ tag which is the optimistic state of the VM
See
Example
eth.getBalance
eth.getBalance:
EthGetBalanceHandler
Returns the balance of a given address
Set the tag
to a block number or block hash to get the balance at that block
Block tag defaults to ‘pending’ tag which is the optimistic state of the VM
See
Example
eth.getCode
eth.getCode:
EthGetCodeHandler
Returns code at a given address
Set the tag
to a block number or block hash to get the balance at that block
Block tag defaults to ‘pending’ tag which is the optimistic state of the VM
See
Example
eth.getStorageAt
eth.getStorageAt:
EthGetStorageAtHandler
Returns storage at a given address and slot
Set the tag
to a block number or block hash to get the balance at that block
Block tag defaults to ‘pending’ tag which is the optimistic state of the VM