Skip to content
On this page

setLoggingEnabled

Enable or disable logging on the test node network.

Usage

ts
import { testClient } from './client'
 
await testClient.setLoggingEnabled(true) 
ts
import { createTestClient, http } from 'viem'
import { foundry } from 'viem/chains'

export const testClient = createTestClient({
  chain: foundry,
  mode: 'anvil',
  transport: http(), 
})

Released under the MIT License.