Coinpath APIs

Returns 10 money flows on Ethereum, where receiver is 0x7a25…488d, sender is 0x7a25…488d and currency is ETH, sorted by amount, highest first: sender address, annotation, contract type, currency symbol, currency name, receiver address, amount and 4 more fields.

By gaurav · saved 24 September 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $currency: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    inbound: coinpath(
      receiver: {is: $address}
      currency: {is: $currency}
      options: {desc: "amount", limit: $limit}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
            __typename
          }
          __typename
        }
        __typename
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
            __typename
          }
          __typename
        }
        __typename
      }
      amount
      transfers: count
      transactions {
        txHash
        timestamp
        amount
        __typename
      }
      __typename
    }
    outbound: coinpath(
      sender: {is: $address}
      currency: {is: $currency}
      options: {desc: "amount", limit: $limit}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
            __typename
          }
          __typename
        }
        __typename
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
            __typename
          }
          __typename
        }
        __typename
      }
      amount
      transfers: count
      transactions {
        txHash
        timestamp
        amount
        __typename
      }
      __typename
    }
    __typename
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "currency": "ETH",
  "network": "ethereum",
  "address": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
  "from": "2021-09-22",
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries