SetAccountParams
SetAccountParams<
TThrowOnFail>:BaseParams<TThrowOnFail> &object
Tevm params to set an account in the vm state all fields are optional except address
Example
const accountParams: import('tevm/api').SetAccountParams = { account: '0x...', nonce: 5n, balance: 9000000000000n, storageRoot: '0x....', deployedBytecode: '0x....'}Type declaration
address
address:
Address
Address of account
balance?
optionalbalance:bigint
Balance to set account to
deployedBytecode?
optionaldeployedBytecode:Hex
Contract bytecode to set account to
nonce?
optionalnonce: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?
optionalstorageRoot:Hex
Storage root to set account to
Type parameters
• TThrowOnFail extends boolean = boolean
Source
params/SetAccountParams.ts:17