# Querying senders, and filtering for method. Which is best cube to achieve this?

**URL:** <https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [July 3, 2021, 1:38pm UTC](https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273 "2021-07-03T13:38:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiron](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/chiron/32/51_2.png) [@chiron](https://community.bitquery.io/u/chiron)\
**Post date:** [July 3, 2021, 1:38pm UTC](https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273/1 "2021-07-03T13:38:47Z")

</div>

hey Aleksey, i’ve created this, to list all senders, via transactions cube.  
However, I also need to filter for certain methods.  
Which is best cube that will facilitate below code, and allow for filtering by method (which shows up in transaction (per etherscan / transactions tab)?  
Thanks

query MyQuery {  
ethereum {  
transactions(  
options: {desc: “count”}  
date: {since: “21-03-01”, till: “21-06-28”}  
txTo: {is: “0x11111112542d85b3ef69ae05771c2dccff4faa26”}  
) {  
sender {  
address  
annotation  
}  
count  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![chiron](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/chiron/32/51_2.png) [@chiron](https://community.bitquery.io/u/chiron)\
**Post date:** [July 4, 2021, 9:00am UTC](https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273/2 "2021-07-04T09:00:35Z")

</div>

when i run this for all of June, if i sum results of “count”, i get 160,683.

I created the following code, and i get a different sum amount:  
query MyQuery {  
ethereum {  
smartContractCalls(  
options: {desc: “count”, limit: 10000}  
date: {since: “21-06-30”, till: “21-06-30”}  
smartContractAddress: {is: “0x11111112542d85b3ef69ae05771c2dccff4faa26”}  
#smartContractMethod: {is: “unoswap”}  
) {  
count(uniq: txs)  
#transaction {  
#txFrom {  
#address  
}  
}  
}  
#}  
#}

11,617

---

<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:** [July 6, 2021, 4:36am UTC](https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273/3 "2021-07-06T04:36:39Z")

</div>

Is this solved? if yes…please answer how you solved it

---

<div class="post-metadata">

**Author:** ![chiron](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/chiron/32/51_2.png) [@chiron](https://community.bitquery.io/u/chiron)\
**Post date:** [July 6, 2021, 4:59am UTC](https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273/4 "2021-07-06T04:59:11Z")

</div>

no i haven’t been able to solve this. Waiting for Aleksey

---

<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:** [July 22, 2021, 12:39pm UTC](https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273/5 "2021-07-22T12:39:06Z")

</div>

> [@chiron](#):
>
> query MyQuery {  
> ethereum {  
> transactions(  
> options: {desc: “count”}  
> date: {since: “21-03-01”, till: “21-06-28”}  
> txTo: {is: “0x11111112542d85b3ef69ae05771c2dccff4faa26”}  
> ) {  
> sender {  
> address  
> annotation  
> }  
> count  
> }  
> }  
> }

Can you rephrase the problem here once… I didn’t understand

---

<div class="post-metadata">

**Author:** ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)\
**Post date:** [August 22, 2021, 7:35am UTC](https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273/6 "2021-08-22T07:35:08Z")

</div>

@chiron is this problem resolved from your end? or is it still pending?

---

<div class="post-metadata">

**Author:** ![chiron](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/chiron/32/51_2.png) [@chiron](https://community.bitquery.io/u/chiron)\
**Post date:** [August 23, 2021, 12:35am UTC](https://community.bitquery.io/t/querying-senders-and-filtering-for-method-which-is-best-cube-to-achieve-this/273/7 "2021-08-23T00:35:06Z")

</div>

can close this ticket
