Skip to content

LoadStateJsonRpcProcedure

LoadStateJsonRpcProcedure: (request) => Promise<LoadStateJsonRpcResponse>

Procedure for handling script JSON-RPC requests Procedure for handling tevm_loadState JSON-RPC requests

Example

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

Parameters

request: LoadStateJsonRpcRequest

Returns

Promise<LoadStateJsonRpcResponse>

Source

procedures/src/loadstate/LoadStateJsonRpcProcedure.ts:17