# Get all BTC transactions for a address as well as input & output wallet addresses

**URL:** https://community.bitquery.io/t/get-all-btc-transactions-for-a-address-as-well-as-input-output-wallet-addresses/97
**Category:** GraphQL API
**Tags:** closed
**Created:** [May 30, 2021, 9:57am UTC](https://community.bitquery.io/t/get-all-btc-transactions-for-a-address-as-well-as-input-output-wallet-addresses/97 "2021-05-30T09:57:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![luyanda.dhlamini](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/luyanda.dhlamini/32/27_2.png) [@luyanda.dhlamini](https://community.bitquery.io/u/luyanda.dhlamini)
#### Post date: [May 30, 2021, 9:57am UTC](https://community.bitquery.io/t/get-all-btc-transactions-for-a-address-as-well-as-input-output-wallet-addresses/97/1 "2021-05-30T09:57:55Z")

</div>

I am looking to get all bitcoin (BTC) transactions for a bitcoin address.  
[is there a simpler way to do this than my approach below?]

I have used the **inputs resource path** to get transactions that went out of a target address.  
However I’m unable to get the bitcoin addresses that these amounts went to using this resource.  
I can only get the transaction hash & index as well as the output hash & index this way.

How do I get the destination wallet addresses?  
See public query below for context.  
[query link](https://graphql.bitquery.io/ide/lLAvp2hYVH/lLAvp2hYVH)

---

<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: [October 14, 2021, 2:05pm UTC](https://community.bitquery.io/t/get-all-btc-transactions-for-a-address-as-well-as-input-output-wallet-addresses/97/2 "2021-10-14T14:05:26Z")

</div>

Hey @luyanda.dhlamini you can use the following query as an example to get all the transactions for a given bitcoin address.

> **[All transactions for Bitcoin address](https://graphql.bitquery.io/ide/yjnh98O6So)**
>
> All transactions for Bitcoin address
