Skip to content

ScriptJsonRpcResponse

ScriptJsonRpcResponse: JsonRpcResponse<"tevm_script", SerializeToJson<CallResult>, TevmScriptError["code"]>

JSON-RPC response for tevm_script method

Example

import { createMemoryClient } from 'tevm'
const tevm = createMemoryClient()
const respose: ScriptJsonRpcResponse = await tevm.request({
method: 'tevm_script',
params: {
deployedBytecode: '608...',
abi: [...],
args: [...]
})

Source

procedures/src/script/ScriptJsonRpcResponse.ts:20