@tevm/actions / SetAccountParams
SetAccountParams<
TThrowOnFail> =BaseParams<TThrowOnFail> &object
Defined in: packages/actions/src/SetAccount/SetAccountParams.ts:16
Tevm params to set an account in the vm state all fields are optional except address
readonlyaddress:Address
Address of account
readonlyoptionalbalance?:bigint
Balance to set account to
readonlyoptionaldeployedBytecode?:Hex
Contract bytecode to set account to
readonlyoptionalnonce?:bigint
Nonce to set account to
readonlyoptionalstate?:Record<Hex,Hex>
key-value mapping to override all slots in the account storage before executing the calls
readonlyoptionalstateDiff?:Record<Hex,Hex>
key-value mapping to override individual slots in the account storage before executing the calls
readonlyoptionalstorageRoot?:Hex
Storage root to set account to
| Type Parameter | Default type |
|---|---|
TThrowOnFail extends boolean |
boolean |
const accountParams: import('tevm/api').SetAccountParams = {
account: '0x...',
nonce: 5n,
balance: 9000000000000n,
storageRoot: '0x....',
deployedBytecode: '0x....'
}