suspend fun execute(sender: Address, destination: Address, value: Bytes, code: Bytes, inputData: Bytes, gas: Gas, gasPrice: Wei, currentCoinbase: Address, currentNumber: Long, currentTimestamp: Long, currentGasLimit: Long, currentDifficulty: UInt256, callKind: CallKind = CallKind.CALL, revision: HardFork = latestHardFork, depth: Int = 0): EVMResult
(source)
Execute an operation in the EVM.
sender
- the sender of the transaction
destination
- the destination of the transaction
inputData
- the execution input
gas
- the gas available for the operation
currentCoinbase
- the coinbase address to reward
currentNumber
- current block number
currentTimestamp
- current block timestamp
currentGasLimit
- current gas limit
currentDifficulty
- block current total difficulty
revision
- the hard fork revision in which to execute
Return
the result of the execution