Skip to content

EIP-1898 Support #2808

@omarsayha

Description

@omarsayha

Note: The best place to start a Feature Request is usually in the Discussions, to mull through the desired feature, current options and think through the impact on the library overall.

Is your feature request related to a problem? Please describe.
Geth added support for https://eips.ethereum.org/EIPS/eip-1898 in the following PR ethereum/go-ethereum#19491

Describe the solution you'd like

The following methods should currently accept blockTag?: BlockTag | Promise:

getBalance
getStorageAt
getTransactionCount
getCode
call
getProof

In addition to a blockTag, it should also accept something like:

export interface BlockHashEIP1898 {
    blockHash: string;
    requireCanonical: boolean;
}

Describe alternatives you've considered
I can always use provider.send to call a method that conforms to eip-1898, but it would be nice if this were built into the library.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionQuestions, feedback and general information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions