mkey-0615-02:44

All transactions for Bitcoin address

Returns money flows and transactions on Bitcoin, where initial address is bc1qcj…4hwp, sorted by amount, highest first: sender address, annotation, receiver address, amount, depth, count, block height and 13 more fields.

By william Hsieh · saved 15 June 2023 · run 2 times · 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}}
      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
      }
      transactions {
        amount
        timestamp
        txHash
        txValue
        height
      }
    }
    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
      }
      transactions {
        amount
        timestamp
        txHash
        txValue
        height
      }
    }
    transactions {
      feeValue
    }
  }
}

Variables

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

Similar queries