Skip to content

Latest commit

 

History

History
198 lines (114 loc) · 4.33 KB

runcodeopts.md

File metadata and controls

198 lines (114 loc) · 4.33 KB

ethereumjs-vm > RunCodeOpts

Interface: RunCodeOpts

Options for the runCode method.

Hierarchy

RunCodeOpts

Index

Properties


Properties

<Optional> address

● address: Buffer

Defined in runCode.ts:63

The address of the account that is executing this code. The address should be a Buffer of bytes. Defaults to 0


<Optional> block

● block: any

Defined in runCode.ts:28

The Block the tx belongs to. If omitted a blank block will be used


<Optional> caller

● caller: Buffer

Defined in runCode.ts:40

The address that ran this code. The address should be a Buffer of 20bits. Defaults to 0


<Optional> code

● code: Buffer

Defined in runCode.ts:44

The EVM code to run


<Optional> data

● data: Buffer

Defined in runCode.ts:48

The input data


<Optional> depth

● depth: undefined | number

Defined in runCode.ts:57


<Optional> evm

● evm: EVM

Defined in runCode.ts:29


<Optional> gasLimit

● gasLimit: Buffer

Defined in runCode.ts:52

Gas limit


<Optional> gasPrice

● gasPrice: Buffer

Defined in runCode.ts:31


<Optional> isStatic

● isStatic: undefined | false | true

Defined in runCode.ts:58


<Optional> message

● message: Message

Defined in runCode.ts:36


<Optional> origin

● origin: Buffer

Defined in runCode.ts:35

The address where the call originated from. The address should be a Buffer of 20bits. Defaults to 0


<Optional> pc

● pc: undefined | number

Defined in runCode.ts:67

The initial program counter. Defaults to 0


<Optional> selfdestruct

● selfdestruct: undefined | object

Defined in runCode.ts:59


<Optional> txContext

● txContext: TxContext

Defined in runCode.ts:30


<Optional> value

● value: Buffer

Defined in runCode.ts:56

The value in ether that is being sent to opt.address. Defaults to 0