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 readonly data: Hex

The input data.

deployedBytecode?

optional readonly deployedBytecode: Hex

The EVM code to run.

salt?

optional readonly salt: Hex

An optional CREATE2 salt.

Type parameters

TThrowOnFail extends boolean = boolean

Source

packages/actions/src/Call/CallParams.ts:16