# Cannot get argument value of event

**URL:** <https://community.bitquery.io/t/cannot-get-argument-value-of-event/442>\
**Category:** GraphQL API\
**Tags:** support, open\
**Created:** [August 25, 2021, 8:00pm UTC](https://community.bitquery.io/t/cannot-get-argument-value-of-event/442 "2021-08-25T20:00:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CYG38](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@CYG38](https://community.bitquery.io/u/CYG38)\
**Post date:** [August 25, 2021, 8:00pm UTC](https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/1 "2021-08-25T20:00:34Z")

</div>

This is link to the events:

> **[Contract Address 0x0f41ac3258123b1998225afc950e543612128dba | BscScan](https://testnet.bscscan.com/address/0x0f41ac3258123b1998225afc950e543612128dba#events)**
>
> The Contract Address 0x0f41ac3258123b1998225afc950e543612128dba page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

With this query below, I cannot get value of “amount”. It’s empty. Please support me to resolve it.

query MyQuery {  
ethereum(network: bsc\_testnet) {  
arguments(  
smartContractAddress: {is: “0x0F41aC3258123b1998225aFc950E543612128DBA”}  
options: {desc: “block.height”, limitBy: {each: “roundId”, limit: 1}}  
any: {argument: {is: “roundId”}, value: {is: “3”}}  
smartContractEvent: {is: “UserJoined”}  
) {  
block {  
height  
}  
roundId: any(of: argument\_value, argument: {is: “roundId”})  
amount: any(of: argument\_value, argument: {is: “amount”})  
transaction {  
hash  
}  
}  
}  
}

---

<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 26, 2021, 1:34pm UTC](https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/2 "2021-08-26T13:34:53Z")

</div>

What should be the value of “amount”? Can you tell by an example? Where can I find the value of “amount” in the below screenshot?

 ![community-query-5](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/2f20af13e5c16b5fb8b61c9406ed6f8caa4dfda0.png)

---

<div class="post-metadata">

**Author:** ![CYG38](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@CYG38](https://community.bitquery.io/u/CYG38)\
**Post date:** [August 26, 2021, 6:12pm UTC](https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/3 "2021-08-26T18:12:23Z")

</div>

You can see in the log of transaction. For example, this link: [Binance Transaction Hash (Txhash) Details | BscScan](https://testnet.bscscan.com/tx/0x81b30ead8b920499891d302cf92d247aa805b9e8912042b2a310bdb73b08855a#eventlog)

 ![eventlog](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/841eca4ff7075a97ba6741bf19b453679ff33359.png)

---

<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 26, 2021, 7:02pm UTC](https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/4 "2021-08-26T19:02:05Z")

</div>

The value is returned in **NUMER** form. The following query does the work.

> **[https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/2](https://graphql.bitquery.io/ide/W4A3hWH9GG)**
>
> Bitquery is analytical engine for blockchains

If you use the dropdown and change the **HEX** to **NUMBER** , you might see the desired result.

---

<div class="post-metadata">

**Author:** ![CYG38](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@CYG38](https://community.bitquery.io/u/CYG38)\
**Post date:** [August 26, 2021, 7:28pm UTC](https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/5 "2021-08-26T19:28:48Z")

</div>

“amount: any(of: argument\_value)” → It returns value of roundId. What I’d like to get is the value of “amount”.

Please update your query as below. You will see that amount = 2 = roundId. It’s incorrect.  
query MyQuery {  
ethereum(network: bsc\_testnet) {  
arguments(  
smartContractAddress: {is: “0x0F41aC3258123b1998225aFc950E543612128DBA”}  
options: {desc: “block.height”, limitBy: {each: “roundId”, limit: 5}}  
any: {argument: {is: “roundId”}, value: {is: “2”}}  
smartContractEvent: {is: “UserJoined”}  
) {  
block {  
height  
}  
roundId: any(of: , argument\_value, argument: {is: “roundId”})  
amount: any(of: argument\_value)  
transaction {  
hash  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![CYG38](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@CYG38](https://community.bitquery.io/u/CYG38)\
**Post date:** [August 26, 2021, 7:39pm UTC](https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/6 "2021-08-26T19:39:53Z")

</div>

I shared the query here: [https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/3](https://graphql.bitquery.io/ide/zrBLY5ogIT)
