ticket#_7893_Q1

Returns 10000 money flows on Bitcoin, where initial address is bc1qav…n9hp, sorted by block timestamp unixtime: sender address, receiver address, amount, transaction hash, value in, value out, timestamp and 3 more fields.

By Omkar_BQ · saved 25 April 2024 · Bitquery API v1

What it returns

Filters

The query

query ($address: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: bitcoin) {
    in: coinpath(
      initialAddress: {is: $address}
      options: {direction: inbound, asc: "block.timestamp.unixtime", limit: $limit, offset: $offset}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount
      transaction {
        hash
        valueIn
        valueOut
      }
      transactions {
        timestamp
        txHash
        txValue
      }
      block {
        timestamp {
          unixtime
        }
      }
    }
    out: coinpath(
      initialAddress: {is: $address}
      options: {direction: outbound, asc: "block.timestamp.unixtime", limit: $limit, offset: $offset}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount
      transaction {
        hash
        valueIn
        valueOut
      }
      transactions {
        timestamp
        txHash
        txValue
      }
      block {
        timestamp {
          unixtime
        }
      }
    }
  }
}

Variables

{
  "limit": 10000,
  "offset": 0,
  "network": "bitcoin",
  "address": "bc1qavvncghk892k59a2xj3fulyh2t3nmzjq7nn9hp"
}

Similar queries