Consensys / ethql

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

Transaction decoding: tokens - allow fetching symbol, totalSupply, balances and allowances #42

Closed raulk closed 6 years ago

raulk commented 6 years ago

Consider the following selection of an ERC20 transaction:

{
  block(number: 1234) {
    transactions {
       decoded {
         ... on ERC20Transfer {
           symbol // new
           totalSupply // new
           from {
             address
             tokenBalance // new
             allowance(spender: "0x1923...") // new
           }
           to {
              address
           }
           value
         }
       }
    }
  }
}