JsonRpcSchemaTevm
JsonRpcSchemaTevm:
object
Type declaration
tevm_call
tevm_call:
object
Description
A versatile way of executing an EVM call with many options and detailed return data
Link
https://tevm.sh/learn/json-rpc/#tevm-methods
Example
provider.request({ method: 'tevm_call', params: [{ from: '0x...', to: '0x...', data: '0x...' }] })})// => { data: '0x...', events: [{...}], ... }tevm_call.Method
tevm_call.Method:
"tevm_call"
tevm_call.Parameters
tevm_call.Parameters:
CallJsonRpcRequest["params"]
tevm_call.ReturnType
tevm_call.ReturnType:
SerializeToJson<CallResult<never>>
tevm_dumpState
tevm_dumpState:
object
Description
Dumps the current cached state of the EVM.
Link
https://tevm.sh/learn/json-rpc/#tevm-methods
Example
provider.request({ method: 'tevm_dumpState' })})tevm_dumpState.Method
tevm_dumpState.Method:
"tevm_dumpState"
tevm_dumpState.Parameters?
optionaltevm_dumpState.Parameters:DumpStateJsonRpcRequest["params"]
tevm_dumpState.ReturnType
tevm_dumpState.ReturnType:
SerializeToJson<DumpStateResult<never>>
tevm_getAccount
tevm_getAccount:
object
Description
Returns the account state of the given address
Link
https://tevm.sh/learn/json-rpc/#tevm-methods
Example
provider.request({ method: 'tevm_getAccount', params: [{address: '0x...' }])})tevm_getAccount.Method
tevm_getAccount.Method:
"tevm_getAccount"
tevm_getAccount.Parameters
tevm_getAccount.Parameters:
GetAccountJsonRpcRequest["params"]
tevm_getAccount.ReturnType
tevm_getAccount.ReturnType:
SerializeToJson<GetAccountResult<never>>
tevm_loadState
tevm_loadState:
object
Description
Loads the provided state into the EVM
Link
https://tevm.sh/learn/json-rpc/#tevm-methods
Example
provider.request({ method: 'tevm_loadState', params: [{ state: {...} }] }])})// => { success: true }tevm_loadState.Method
tevm_loadState.Method:
"tevm_loadState"
tevm_loadState.Parameters
tevm_loadState.Parameters:
LoadStateJsonRpcRequest["params"]
tevm_loadState.ReturnType
tevm_loadState.ReturnType:
SerializeToJson<LoadStateResult<never>>
tevm_setAccount
tevm_setAccount:
object
Description
Sets the account state of the given address
Link
https://tevm.sh/learn/json-rpc/#tevm-methods
Example
provider.request({ method: 'tevm_setAccount', params: [{address: '0x...', value: '0x42' }])})rtevm_setAccount.Method
tevm_setAccount.Method:
"tevm_setAccount"
tevm_setAccount.Parameters
tevm_setAccount.Parameters:
SetAccountJsonRpcRequest["params"]
tevm_setAccount.ReturnType
tevm_setAccount.ReturnType:
SerializeToJson<SetAccountResult<never>>