Consensys / ethql

A GraphQL interface to Ethereum :fire:
Apache License 2.0
623 stars 85 forks source link

Transaction Filters: By inputData #24

Open mbaxter opened 6 years ago

mbaxter commented 6 years ago

It may be useful to filter transactions by inputData content. This would allow users to target transactions that invoke arbitrary contract methods. The filter might look something like: transactions(filter: { inputStartsWith: "0x12345678" }).

raulk commented 6 years ago

Another possibility is for ethql to calculate the hash to match against from a user-provided Solidity function signature, e.g.:

transactions(filter: { solidityFunction: "transfer(address,uint256,bytes)" }) {
}

WDYT?

mbaxter commented 6 years ago

Nice - I like that idea 👍