Skip to content
On this page

stopImpersonatingAccount

Stop impersonating an account after having previously used impersonateAccount.

Import

ts
import { stopImpersonatingAccount } from 'viem/test'

Usage

ts
import { stopImpersonatingAccount } from 'viem/test'
import { testClient } from '.'
 
await stopImpersonatingAccount(testClient, { 
  address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC'
})

Parameters

address

  • Type: Address

The address of the target account.

ts
await stopImpersonatingAccount(testClient, {
  address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC', 
})

Released under the MIT License.