Skip to content

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

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.

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?

optional tevm_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

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

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

https://tevm.sh/learn/json-rpc/#tevm-methods

Example

provider.request({ method: 'tevm_setAccount', params: [{address: '0x...', value: '0x42' }])})
r

tevm_setAccount.Method

tevm_setAccount.Method: "tevm_setAccount"

tevm_setAccount.Parameters

tevm_setAccount.Parameters: SetAccountJsonRpcRequest["params"]

tevm_setAccount.ReturnType

tevm_setAccount.ReturnType: SerializeToJson<SetAccountResult<never>>

Defined in

eip1193/JsonRpcSchemaTevm.ts:12