matic_extended_coinpath_example

Returns money flows on Ethereum and Polygon, where initial address is 0xC6df…e2e0, currency is MATIC and initial date since 2022-05-16, sorted by amount, highest first: depth, count, transaction hash, iso8601, transaction value, sender address, annotation and 24 more fields.

By Andrey · saved 4 July 2022 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $inboundDepth: Int!, $limit: Int!, $currency: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    coinpath(
      initialAddress: {is: $address}
      currency: {is: $currency}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      initialDate: {since: $from, till: $till}
    ) {
      depth
      count
      transaction {
        hash
        time {
          iso8601
        }
        value
      }
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
            decimals
            tokenType
          }
          protocolType
        }
        balance
        amountIn
        amountOut
        receiversCount
        sendersCount
        firstTxAt {
          time
        }
        lastTxAt {
          time
        }
        type
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
            decimals
            tokenType
          }
          protocolType
        }
        balance
        amountIn
        amountOut
        receiversCount
        sendersCount
        firstTxAt {
          time
        }
        lastTxAt {
          time
        }
        type
      }
      amount
      currency {
        symbol
      }
      block {
        height
        timestamp {
          time
        }
      }
      transactions {
        amount
        txHash
        txValue
        timestamp
        height
      }
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "network": "matic",
  "address": "0xC6df3C38EF5D5b4eD1E33AAccDAB14d262C3e2e0",
  "currency": "MATIC",
  "from": "2022-05-16",
  "till": "2022-06-14T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries