Add eth.BlockSpecifier
for EIP-1898 Support
#9
Labels
good first issue
Good for newcomers
issue-type/feature
Feature we are working on but not part of a larger project.
project/eth-api
size/s
1 to 2 days
team/backend
Work for a backend engineer.
Now that Infura is predominately using geth 1.9.x for our backend nodes, I'd like to consider exposing
EIP-1898
support, and adding it here seems like a good first step.I'm picturing something like:
And custom JSON (un)marshal routines that can handle the various cases:
.Raw
can be used when constructing a BlockSpecifier in code to control how it'll be marshaled, iftrue
then the specifier would be marshaled as a simple string instead of a JSON object (e.g.{ Tag: Tag("latest") }
would be just"latest"
and not{ "blockNumber": "latest" }
.The text was updated successfully, but these errors were encountered: