# Need to create a sankey but with multiple addresses in the input

**URL:** <https://community.bitquery.io/t/need-to-create-a-sankey-but-with-multiple-addresses-in-the-input/1360>\
**Category:** GraphQL API\
**Created:** [January 26, 2023, 3:52am UTC](https://community.bitquery.io/t/need-to-create-a-sankey-but-with-multiple-addresses-in-the-input/1360 "2023-01-26T03:52:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin\_vauld](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sachin\_vauld](https://community.bitquery.io/u/sachin_vauld)\
**Post date:** [January 26, 2023, 3:52am UTC](https://community.bitquery.io/t/need-to-create-a-sankey-but-with-multiple-addresses-in-the-input/1360/1 "2023-01-26T03:52:10Z")

</div>

Need to build a sankey similar to this:

> **[0x28ec0f3f849843f42839d5997b43d9f437181ce4 money flow in Ethereum Mainnet](https://explorer.bitquery.io/ethereum/address/0x28ec0f3f849843f42839d5997b43d9f437181ce4/graph?from=2020-01-01&till=2021-01-31)**
>
> Money Flow by address 0x28ec0f3f849843f42839d5997b43d9f437181ce4 activity in Ethereum Mainnet, statistics of token exchanges

But in the input I need to include multiple addresses not just one. Kindly assist.

---

<div class="post-metadata">

**Author:** ![Divya](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Divya](https://community.bitquery.io/u/Divya)\
**Post date:** [January 26, 2023, 8:32am UTC](https://community.bitquery.io/t/need-to-create-a-sankey-but-with-multiple-addresses-in-the-input/1360/2 "2023-01-26T08:32:26Z")

</div>

You can create a query like this, with multiple addresses in **initialAddress** condition

```auto
query ($network: EthereumNetwork!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $currency: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    inbound: coinpath(
      currency: {is: $currency}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
      initialAddress: {in: ["0x28ec0f3f849843f42839d5997b43d9f437181ce4","0x8815d60fd5cbd586ff80724b4bc77a730c007c23"]}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      amount
      currency {
        symbol
      }
      depth
      count
    }
    outbound: coinpath(
     initialAddress: {in: ["0x28ec0f3f849843f42839d5997b43d9f437181ce4","0x8815d60fd5cbd586ff80724b4bc77a730c007c23"]}
      currency: {is: $currency}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      amount
      currency {
        symbol
      }
      depth
      count
    }
  }
}

```

And then click on Graph in the **Using** option.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/280d31f84075bf792dcba06fd30c2d8e074c1fdc.png)
