sender_receiver_pair

Returns 100 money flows on Ethereum, where receiver is 0xa910…22ba or 0xbfba…0bf7, sender is 0xa910…22ba or 0xbfba…0bf7 and currency is ETH, sorted by amount, highest first: sender address, annotation, contract type, currency symbol, currency name, receiver address, amount and 2 more fields.

By Xavi · saved 4 January 2024 · Bitquery API v1

What it returns

Filters

The query

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

Variables

{
  "inboundDepth": 2,
  "outboundDepth": 2,
  "limit": 100,
  "offset": 0,
  "network": "ethereum",
  "addressList": [
    "0xa910f92acdaf488fa6ef02174fb86208ad7722ba",
    "0xbfba2df39ae248e3dfdefa7a92ac3df9be260bf7"
  ],
  "currency": "ETH",
  "from": "2023-01-01",
  "till": "2023-10-11T23:59:59",
  "dateFormat": "%Y-%m"
}

Similar queries