# Retrieve all transaction between a specific contract address and specific wallet

**URL:** <https://community.bitquery.io/t/retrieve-all-transaction-between-a-specific-contract-address-and-specific-wallet/58>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [May 24, 2021, 4:27pm UTC](https://community.bitquery.io/t/retrieve-all-transaction-between-a-specific-contract-address-and-specific-wallet/58 "2021-05-24T16:27:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glitchy](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@Glitchy](https://community.bitquery.io/u/Glitchy)\
**Post date:** [May 24, 2021, 4:27pm UTC](https://community.bitquery.io/t/retrieve-all-transaction-between-a-specific-contract-address-and-specific-wallet/58/1 "2021-05-24T16:27:35Z")

</div>

Hello,

I’m looking for a way I could retrieve all the past transactions between a contract and a user wallet address.

The transactions I’m looking for are like this one: [Binance Transaction Hash (Txhash) Details | BscScan](https://bscscan.com/tx/0x29c2138102a2e8f7bf33471294e985b15e079750a118d7ea5f2d4f4f92d93e03)

The value I’m interested in would be the amount of BNB transferred from the contract to the wallet.

Thanks for your help.

---

<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:** [May 24, 2021, 5:19pm UTC](https://community.bitquery.io/t/retrieve-all-transaction-between-a-specific-contract-address-and-specific-wallet/58/2 "2021-05-24T17:19:36Z")

</div>

If you want to check transactions

Replace the Contract address and wallet address in the below query.

```
{
  ethereum(network: bsc) {
    transactions(options: {desc: "block.timestamp.time",
      limit: 10, offset: 0}, 
      date: {since: null, till: null},
      txSender: {is: "Contract address"}
      txTo: {is : "Wallet address"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      success
      address: to {
        address
        annotation
      }
      gasValue
      gasCurrency {
        symbol
      }
      hash
    }
  }
}

```

Another way to check transfers only

Replace the Contract address and wallet address in the below query.

```
{
  ethereum(network: bsc) {
    transfers(options: {desc: "block.height",
      limit: 10, offset: 0},
      date: {since: "2021-05-24", till: null},
      amount: {gt: 0}
      sender: {is: "Contract address"}
      receiver:{is: "Wallet address"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      transaction {
        hash
      }
      external
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![Glitchy](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@Glitchy](https://community.bitquery.io/u/Glitchy)\
**Post date:** [May 24, 2021, 5:43pm UTC](https://community.bitquery.io/t/retrieve-all-transaction-between-a-specific-contract-address-and-specific-wallet/58/3 "2021-05-24T17:43:15Z")

</div>

Briliant thanks a ton!
