Inflow / outflow for address

use «any» in GraphQL query if you want to combine any arbitrary filters. This example shows how to get list of transfers from / to an address in one request

By Aleksey · saved 18 November 2020 · run 29 times · Bitquery API v1

What it returns

Filters

The query

query {
  ethereum{
    out: transfers(currency: {is: "ETH"}
    date: {is: "2020-06-11"} 
      options: {asc: "out"}
		any:[	{sender:{is: "0x7a250d5630b4cf539739df2c5dacb4c659f2488d"}}
					{receiver:{is: "0x7a250d5630b4cf539739df2c5dacb4c659f2488d"}}
			]
     
    ){
      in: amount(receiver: {is: "0x7a250d5630b4cf539739df2c5dacb4c659f2488d"})
      out: amount(sender: {is: "0x7a250d5630b4cf539739df2c5dacb4c659f2488d"})
      currency {symbol}
      transaction {
        hash
      }
    }
    
  }
}

Similar queries