Skip to content

CallParams

CallParams<TThrowOnFail>: BaseCallParams<TThrowOnFail> & object

Tevm params to execute a call on the vm Call is the lowest level method to interact with the vm and other messages such as contract and script are using call under the hood

Example

const callParams: import('@tevm/api').CallParams = {
data: '0x...',
bytecode: '0x...',
gasLimit: 420n,
}

Type declaration

data?

optional data: Hex

The input data.

deployedBytecode?

optional deployedBytecode: Hex

The EVM code to run.

salt?

optional salt: Hex

An optional CREATE2 salt.

Type parameters

TThrowOnFail extends boolean = boolean

Source

params/CallParams.ts:16