Skip to content

core/types: add stable API to compute tx intrinsic gas #31058

@fjl

Description

@fjl

Package types should have a way of computing the intrinsic gas of a transaction.

API Idea:

func (tx *Transaction) IntrinsicGas(rules *params.Rules) uint64

This might also be useful for the data floor gas added in EIP-7623:

func (tx *Transaction) DataFloorGas(rules *params.Rules) uint64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions