Skip to content

eth_getFilterChanges has unclear input and return values #10

@digitaldonkey

Description

@digitaldonkey

I ran into some issues which seem important to be aware of when using the Schema with

eth_getFilterChanges": [["Q"], ["FilterChange"], 1],

Input "Q" is a different Q than others.

is IMHO not correct if you see Q as a 32byte padded number.
Q in this specific case is actually unpadded.

Return values are not correctly represented.

There are two different return types

  • Filter added with eth_newBlockFilter (block hashes) -> returns [D32]
  • eth_newPendingTransactionFilter (transaction hashes) -> returns [D32]
  • Filter added with eth_newFilter -> returns [FilterChange]

https://github.com/ethereum/wiki/wiki/JSON-RPC#returns-42

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions