tevmDumpState
tevmDumpState(
client
):Promise
<DumpStateResult
<TevmDumpStateError
>>
A tree-shakeable version of the tevmDumpState
action for viem.
Dumps the state of TEVM into a plain JavaScript object that can later be used to restore state
using the tevmLoadState
action.
This action is useful for persisting and restoring the state between different sessions or processes.
Parameters
• client: Client
<TevmTransport
<string
>, undefined
| Chain
, undefined
| Account
, undefined
, undefined
| object
>
The viem client configured with TEVM transport.
Returns
Promise
<DumpStateResult
<TevmDumpStateError
>>
The dump of the TEVM state.
Example
See
- DumpStateResult for return values reference.
- TEVM Actions Guide
- tevmLoadState for restoring the state.