Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fjl opened this issue Jan 21, 2025 · 0 comments
Open

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

fjl opened this issue Jan 21, 2025 · 0 comments

Comments

@fjl
Copy link
Contributor

fjl commented Jan 21, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant