# AddressSelector Type should be an array?

**URL:** https://community.bitquery.io/t/addressselector-type-should-be-an-array/141
**Category:** GraphQL API
**Tags:** closed
**Created:** [June 9, 2021, 4:08pm UTC](https://community.bitquery.io/t/addressselector-type-should-be-an-array/141 "2021-06-09T16:08:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![matt-ci](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/matt-ci/32/23_2.png) [@matt-ci](https://community.bitquery.io/u/matt-ci)
#### Post date: [June 9, 2021, 4:08pm UTC](https://community.bitquery.io/t/addressselector-type-should-be-an-array/141/1 "2021-06-09T16:08:12Z")

</div>

Hi, I’m loving the API in general, thank you for your hard work!

I want to query a few addresses at once but am unable to do this because the `in` field of the `AddressSelector` is a `String`, rather than a `[String]`.

This is the type of query I’m trying to perform:

```auto
bitcoin(network: $network) {
    inbound: coinpath(initialAddress: {in: ['a', 'b']},) {
      ...
  }
}
     

```

And here is a screenshot of the definition:

 ![Screenshot 2021-06-09 at 16.59.21](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/322d644c1f6889cedd2296fa9c6f90e53917fa77.png)

Should the `in` and `notIn` fields actually be `[String]`?

---

<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 10, 2021, 3:15pm UTC](https://community.bitquery.io/t/addressselector-type-should-be-an-array/141/2 "2021-06-10T15:15:44Z")

</div>

Thanks we have raised with the dev team

---

<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 2, 2021, 11:25am UTC](https://community.bitquery.io/t/addressselector-type-should-be-an-array/141/3 "2021-07-02T11:25:21Z")

</div>

This is solved, please check.

---

<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, 7:01am UTC](https://community.bitquery.io/t/addressselector-type-should-be-an-array/141/4 "2021-07-09T07:01:13Z")

</div>



---

<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 27, 2021, 2:33pm UTC](https://community.bitquery.io/t/addressselector-type-should-be-an-array/141/5 "2021-07-27T14:33:12Z")

</div>



---

<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 28, 2021, 6:26am UTC](https://community.bitquery.io/t/addressselector-type-should-be-an-array/141/6 "2021-07-28T06:26:59Z")

</div>

Continued on [AddressSelector Type is a String, but should be an Array](https://community.bitquery.io/t/addressselector-type-is-a-string-but-should-be-an-array/349)

---

<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: [August 10, 2021, 9:38am UTC](https://community.bitquery.io/t/addressselector-type-should-be-an-array/141/7 "2021-08-10T09:38:25Z")

</div>

This is solved

```auto
{
  bitcoin(network: bitcoin) {
    inputs(
      inputAddress: {in: ["18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX", "34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo"]}
    ) {
      value
      inputAddress{
        address
      }
    }
  }
}

```
