in/out transfer history 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 FlorianPohl · saved 11 April 2022 · run 5 times · Bitquery API v1

What it returns

The query

query {
  ethereum{
    out: transfers(
      options: {asc: "out"}
		any:[	{sender:{is: "0x022e73a40F6A719bdDe859620c1191FA3554bE1D"}}
					{receiver:{is: "0x022e73a40F6A719bdDe859620c1191FA3554bE1D"}}
			]
     
    ){
      in: amount(receiver: {is: "0x022e73a40F6A719bdDe859620c1191FA3554bE1D"})
      out: amount(sender: {is: "0x022e73a40F6A719bdDe859620c1191FA3554bE1D"})
      currency {symbol}
      transaction {
        hash
      }
    }
    
  }
}

Similar queries