SetAccountParams
SetAccountParams<
TThrowOnFail
>:BaseParams
<TThrowOnFail
> &object
Tevm params to set an account in the vm state all fields are optional except address
Example
Type declaration
address
readonly
address:Address
Address of account
balance?
optional
readonly
balance:bigint
Balance to set account to
deployedBytecode?
optional
readonly
deployedBytecode:Hex
Contract bytecode to set account to
nonce?
optional
readonly
nonce:bigint
Nonce to set account to
state?
key-value mapping to override all slots in the account storage before executing the calls
stateDiff?
key-value mapping to override individual slots in the account storage before executing the calls
storageRoot?
optional
readonly
storageRoot:Hex
Storage root to set account to
Type parameters
• TThrowOnFail extends boolean
= boolean
Source
packages/actions/src/SetAccount/SetAccountParams.ts:17