tevmLoadState
tevmLoadState(
client
,params
):Promise
<LoadStateResult
<InternalError
>>
A tree-shakeable version of the tevmLoadState
action for viem.
Loads the state into TEVM from a plain JavaScript object.
This action is useful for restoring the state that was previously dumped using the tevmDumpState
action.
Parameters
• client: Client
<TevmTransport
<string
>, undefined
| Chain
, undefined
| Account
, undefined
, undefined
| object
>
The viem client configured with TEVM transport.
• params: LoadStateParams
<boolean
>
The state to load into TEVM.
Returns
Promise
<LoadStateResult
<InternalError
>>
The result of loading the state.
Example
See
- LoadStateParams for options reference.
- LoadStateResult for return values reference.
- TEVM Actions Guide
- tevmDumpState for dumping the state.