Consensys / ethql

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

Consider first-class support for Message Calls #41

Open raulk opened 6 years ago

raulk commented 6 years ago

Currently the Block->transactions field takes a TransactionFilter as an argument that can filter transactions with input data (i.e. messages). We can introduce first-class support for message calls, such that we allow retrieving the function signature and an array of parameters, only from those transactions that are indeed messages.

Just an idea:

block(number: 123) {
  messageCalls(matching: 'functionName(uint256,bytes32)') {
    param1: parameter(index: 0)
    param2: parameter(index: 1)
  }
}