# Using Function to extract arguments from contract, not expressed in logs

**URL:** <https://community.bitquery.io/t/using-function-to-extract-arguments-from-contract-not-expressed-in-logs/196>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [June 18, 2021, 5:19am UTC](https://community.bitquery.io/t/using-function-to-extract-arguments-from-contract-not-expressed-in-logs/196 "2021-06-18T05:19:05Z")\
**Posts on this page:** 3\
**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:** [June 18, 2021, 5:19am UTC](https://community.bitquery.io/t/using-function-to-extract-arguments-from-contract-not-expressed-in-logs/196/1 "2021-06-18T05:19:05Z")

</div>

hi, could you please create an example of querying a function, from within a smartContract’s code, and returning an arguments value (for that function)?

In “argument” cube / smartContractSignature / signatureType (Function / Event) / Event OR Method

seem to be the relevant code for the query, but I haven’t been able to create a query.  
Thanks

---

<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:** [June 18, 2021, 6:47am UTC](https://community.bitquery.io/t/using-function-to-extract-arguments-from-contract-not-expressed-in-logs/196/2 "2021-06-18T06:47:58Z")

</div>

Read here the difference between [Smart Contract Method vs Event](https://www.reddit.com/r/ethdev/comments/ab9vb1/how_do_you_describe_difference_between_event_and/).

> **[Smart contract Method Details](https://graphql.bitquery.io/ide/Z3T8ZkV2lJ)**
>
> Smart contract Method Details

---

<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:** [July 9, 2021, 9:36am UTC](https://community.bitquery.io/t/using-function-to-extract-arguments-from-contract-not-expressed-in-logs/196/3 "2021-07-09T09:36:58Z")

</div>


