Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

eth.getBlock() JSON Fields Unavailable in v4.6, yet Available in v1.9 #6933

@keennay

Description

@keennay

Hi all,

I'm in the process of migrating our tools from Web3JS v1.9.0 to v4.6.0. I'd noticed eth.getBlock() on v4 returns less fields than on v1, specifically blobGasUsed, excessBlobGas, and others. This is while pointed to the same Ethereum Mainnet Go-Ethereum archive node, and confirmed a CURL command direct to the GETH node provides those extra values.

Is there an extra parameter to send to eth.getBlock, in order to view all data?

Below is the JSON response pointed to the same node, for block 19513177, using Web3JS v1.9 & v4.6.

Web3JS v1.9.0:
https://pastebin.com/q4XXcfh1

Web3JS v4.6.0:
https://pastebin.com/tEd2bLYK

==========

EDIT: Was initially on Web3JS v4.4, upgraded to v4.6 and the problem persists.

Metadata

Metadata

Assignees

Labels

4.x4.0 relatedBugAddressing a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions