# Returning argument values from call to another contracts method

**URL:** <https://community.bitquery.io/t/returning-argument-values-from-call-to-another-contracts-method/228>\
**Category:** GraphQL API\
**Tags:** support, closed\
**Created:** [June 25, 2021, 7:04am UTC](https://community.bitquery.io/t/returning-argument-values-from-call-to-another-contracts-method/228 "2021-06-25T07:04:57Z")\
**Posts on this page:** 6\
**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 25, 2021, 7:04am UTC](https://community.bitquery.io/t/returning-argument-values-from-call-to-another-contracts-method/228/1 "2021-06-25T07:04:57Z")

</div>

hi guys, i’m trying to return the value of the arguments in this “governanceShare” method, from smartcontract: (0xbaf9a5d4b0052359326a6cdab54babaa3a3a9643).  
This contract (0x0ef1b8a0e726fc3948e15b23993015eb1627f210), calls contract (…643), when performing a swap, to obtain the values of the arguments within governanceShare.  
I’m having trouble returning the values.  
Could you help me with the code?

My attempt:  
query MyQuery {  
ethereum {  
smartContractCalls(  
caller: {is: “0x0ef1b8a0e726fc3948e15b23993015eb1627f210”}  
date: {is: “21-06-23”}  
) {  
smartContract {  
address {  
address  
annotation  
}  
}  
smartContractMethod {  
name  
signature  
}  
amount(smartContractMethod: {is: “shareParameters”})  
callDepth  
}  
}  
}

 ![image](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/47866b1393685a0c230958883fab7811ca62c6c9.jpeg)

Note the caller in this screenshot is not always (…f210).  
To trace how I found, goto bitquery explorer:  
1 - 0x0ef1b8a0e726fc3948e15b23993015eb1627f210  
2 - “Events”  
3 - “Sync” event count ([Events in Ethereum Mainnet](https://explorer.bitquery.io/ethereum/txs/events?contract=0x0ef1b8a0e726fc3948e15b23993015eb1627f210&event=ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef))  
4 - click any transaction hash ([Transaction 0xb7b7f611c81975bc8e103257542485db67b0a3704c973b5761dde2802f2e3739 | Ethereum Mainnet](https://explorer.bitquery.io/ethereum/tx/0xb7b7f611c81975bc8e103257542485db67b0a3704c973b5761dde2802f2e3739))  
5 - “Calls” tab ([Calls Ethereum Mainnet 0xb7b7f611c81975bc8e103257542485db67b0a3704c973b5761dde2802f2e3739](https://explorer.bitquery.io/ethereum/tx/0xb7b7f611c81975bc8e103257542485db67b0a3704c973b5761dde2802f2e3739/calls))

And you will see the screenshot above. Every Sync event calls (…643) and uses the values of the arguments in “shareParameters”. I’d like to return the values it calls.  
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:** [July 9, 2021, 7:51am UTC](https://community.bitquery.io/t/returning-argument-values-from-call-to-another-contracts-method/228/2 "2021-07-09T07:51:57Z")

</div>

I think arguments of the internal calls is not allowed, I tried the following query but didn’t work.

However, I have raised this with devs.

```auto
{
  ethereum(network: ethereum) {
    arguments(
      smartContractMethod: {is: "shareParameters"}
      smartContractAddress: {is: "0xbaf9a5d4b0052359326a6cdab54babaa3a3a9643"}
      txHash: {is: "0xb7b7f611c81975bc8e103257542485db67b0a3704c973b5761dde2802f2e3739"}
    ) {
      argument{
        name
        type
      }
      block {
        timestamp {
          hour
        }
      }
    }
  }
}

```

---

<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 10, 2021, 2:46am UTC](https://community.bitquery.io/t/returning-argument-values-from-call-to-another-contracts-method/228/3 "2021-07-10T02:46:18Z")

</div>

Thanks for checking Gaurav

---

<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 15, 2021, 4:56am UTC](https://community.bitquery.io/t/returning-argument-values-from-call-to-another-contracts-method/228/4 "2021-07-15T04:56:50Z")

</div>

HI Gaurav,  
did the developers get back to you??  
Steven

---

<div class="post-metadata">

**Author:** ![Aleksey](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Aleksey](https://community.bitquery.io/u/Aleksey)\
**Post date:** [July 22, 2021, 10:58am UTC](https://community.bitquery.io/t/returning-argument-values-from-call-to-another-contracts-method/228/5 "2021-07-22T10:58:50Z")

</div>

> [@chiron](#):
>
> shareParameters

Have not found shareParameters argument, but the query can look as

```auto
{
  ethereum(network: ethereum) {
    arguments(
			smartContractEvent: {is: "Sync"}
      smartContractAddress: {is: "0x0ef1b8a0e726fc3948e15b23993015eb1627f210"}

      txHash: {is: "0xb7b7f611c81975bc8e103257542485db67b0a3704c973b5761dde2802f2e3739"}
    ) {
      argument{
        name
        type
      }
      value {
        value
      }
      block {
        timestamp {
          hour
        }
      }

      
    }
  }
}

```

---

<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 29, 2021, 4:02pm UTC](https://community.bitquery.io/t/returning-argument-values-from-call-to-another-contracts-method/228/6 "2021-07-29T16:02:59Z")

</div>

> **[call arguments](https://graphql.bitquery.io/ide/N3cFXpoOix)**
>
> call arguments
