@ethereumjs/vm / runBlock
Re-exports: EIP2930Receipt
Re-exports: PostByzantiumTxReceipt
Re-exports: PreByzantiumTxReceipt
▸ calculateMinerReward(minerReward
: BN, ommersNum
: number): BN
Name | Type |
---|---|
minerReward |
BN |
ommersNum |
number |
Returns: BN
Defined in: runBlock.ts:315
▸ encodeReceipt(tx
: TypedTransaction, receipt
: TxReceipt): Buffer
Returns the encoded tx receipt.
Name | Type |
---|---|
tx |
TypedTransaction |
receipt |
TxReceipt |
Returns: Buffer
Defined in: runBlock.ts:337
▸ generateTxReceipt(tx
: TypedTransaction, txRes
: RunTxResult, blockGasUsed
: BN): Promise<{ encodedReceipt
: Buffer ; receiptLog
: string ; txReceipt
: PreByzantiumTxReceipt | PostByzantiumTxReceipt }>
Generates the tx receipt and returns { txReceipt, encodedReceipt, receiptLog }
deprecated
Please use the new generateTxReceipt
located in runTx.
Name | Type |
---|---|
tx |
TypedTransaction |
txRes |
RunTxResult |
blockGasUsed |
BN |
Returns: Promise<{ encodedReceipt
: Buffer ; receiptLog
: string ; txReceipt
: PreByzantiumTxReceipt | PostByzantiumTxReceipt }>
Defined in: runBlock.ts:352
▸ rewardAccount(state
: StateManager, address
: Address, reward
: BN): Promise<Account>
Name | Type |
---|---|
state |
StateManager |
address |
Address |
reward |
BN |
Returns: Promise<Account>
Defined in: runBlock.ts:323