Skip to content

SetAccountHandler

SetAccountHandler: (params) => Promise<SetAccountResult>

Sets the state of a specific ethereum address

Example

import {parseEther} from 'tevm'
await tevm.setAccount({
address: '0x123...',
deployedBytecode: '0x6080604...',
balance: parseEther('1.0')
})

Parameters

params: SetAccountParams

Returns

Promise<SetAccountResult>

Source

packages/actions/src/SetAccount/SetAccountHandlerType.ts:15