outflow of an address

Returns 10 inputs on Bitcoin and Zcash, where input address is t1at7n…c3Ak, date since 2024-07-01 and date till 2024-07-08, sorted by block height transaction index, highest first: block height, timestamp time, output transaction hash, output transaction index, input address address, transaction hash, transaction index and 2 more fields.

By gaurav · saved 8 July 2024 · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inputs(
      date: {since: $from, till: $till}
      inputAddress: {is: $address}
      options: {desc: ["block.height", "transaction.index"], limit: $limit, offset: $offset}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      outputTransaction {
        hash
        index
      }
      inputAddress {
        address
      }
      transaction {
        hash
        index
      }
      inputIndex
      value
      value_usd: value(in: USD)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "t1at7nVNsv6taLRrNRvnQdtfLNRDfsGc3Ak",
  "network": "zcash",
  "from": "2024-07-01",
  "till": "2024-07-08T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries