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

Need to build a sankey similar to this:

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

1 Like

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

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.