Skip to content
On this page

snapshot

Snapshot the state of the blockchain at the current block.

Import

ts
import { snapshot } from 'viem'

Usage

ts
import { snapshot } from 'viem'
import { testClient } from '.'
 
const id = await snapshot(testClient) 

Returns

ID of the snapshot that was created.

Released under the MIT License.