mkey-0615-15:50

All transactions for Bitcoin address

Returns money flows and transactions on Bitcoin, where initial address is bc1q33…q753 and output address is bc1q33…q753, sorted by amount, highest first: sender address, annotation, receiver address, amount, depth, count, block height and 9 more fields.

By william Hsieh · saved 15 June 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
      block {
        height
        timestamp {
          unixtime
        }
      }
      transaction {
        hash
        valueIn
        valueInDecimal
        valueOut
        valueOutDecimal
        index
      }
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
      block {
        height
        timestamp {
          unixtime
        }
      }
      transaction {
        hash
        valueIn
        valueInDecimal
        valueOut
        valueOutDecimal
        index
      }
    }
    outtx: transactions(outputAddress: {is: $address}) {
      feeValue
      block {
        height
      }
      hash
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10000,
  "offset": 0,
  "network": "bitcoin",
  "address": "bc1q33jr6l046yk4xy64swalpzh80v209ug5gfq753",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries