Skip to content

DumpStateJsonRpcProcedure

DumpStateJsonRpcProcedure: (request) => Promise<DumpStateJsonRpcResponse>

Procedure for handling tevm_dumpState JSON-RPC requests

Parameters

request: DumpStateJsonRpcRequest

Returns

Promise<DumpStateJsonRpcResponse>

the state as a JSON-RPC successful result

Example

const result = await tevm.request({
. method: 'tevm_DumpState',
params: [],
. id: 1,
jsonrpc: '2.0'
. }
console.log(result) // { jsonrpc: '2.0', id: 1, method: 'tevm_dumpState', result: {'0x...': '0x....', ...}}

Defined in

packages/actions/src/DumpState/DumpStateJsonRpcProcedure.ts:16