# How to query for transfer by sender OR receiver

**URL:** https://community.bitquery.io/t/how-to-query-for-transfer-by-sender-or-receiver/624
**Category:** GraphQL API
**Created:** [November 13, 2021, 8:54am UTC](https://community.bitquery.io/t/how-to-query-for-transfer-by-sender-or-receiver/624 "2021-11-13T08:54:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![qiyh42an](https://avatars.discourse-cdn.com/v4/letter/q/eb9ed0/32.png) [@qiyh42an](https://community.bitquery.io/u/qiyh42an)
#### Post date: [November 13, 2021, 8:54am UTC](https://community.bitquery.io/t/how-to-query-for-transfer-by-sender-or-receiver/624/1 "2021-11-13T08:54:10Z")

</div>

This is my query:

> **[query by sender or receiver](https://graphql.bitquery.io/ide/PgrHTIyQw9)**
>
> Bitquery is analytical engine for blockchains

I want to query for both `sender` and `receiver` in a single query, how can I do that?  
Right now, I am just doing two queries, one for querying by sender and one for querying by receiver.

Thank you

---

<div class="post-metadata">

### Author: ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)
#### Post date: [November 15, 2021, 5:38am UTC](https://community.bitquery.io/t/how-to-query-for-transfer-by-sender-or-receiver/624/2 "2021-11-15T05:38:19Z")

</div>

Try this:

> **[sender or receiver](https://graphql.bitquery.io/ide/dJv5hg9BVa)**
>
> sender or receiver

---

<div class="post-metadata">

### Author: ![qiyh42an](https://avatars.discourse-cdn.com/v4/letter/q/eb9ed0/32.png) [@qiyh42an](https://community.bitquery.io/u/qiyh42an)
#### Post date: [November 15, 2021, 8:07am UTC](https://community.bitquery.io/t/how-to-query-for-transfer-by-sender-or-receiver/624/3 "2021-11-15T08:07:16Z")

</div>

Ah this works, thanks so much!
