Query all BTC transactions where address is in inputs OR outputs

Hello,

I am looking to make a query that will get all BTC transactions where an address appears in either the inputs or the outputs. So far I have a query that looks like the one below, however this query is all transactions where the address apears in the inputs AND outputs. Any Idea on how to do ‘OR’ condition filters?

My current incorrect Query:

query MyQuery {
bitcoin(network: bitcoin) {
transactions(
inputAddress: {in: “bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh”}
outputAddress: {in: “bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh”}
) {
hash
}
}
}

You can try running a similar query All transactions for Bitcoin address. I hope this helps you solve your problem.

Other queries:

  1. inbound-btc
  2. outbound-btc