all outflows of a bitcoin address

Returns 10 inputs on Bitcoin, where input address is 3N3TTT…M4Z3, date since 2022-08-10 and date till 2022-08-17, sorted by block height transaction index, highest first: block height, timestamp time, output transaction hash, output transaction index, transaction hash, transaction index, input index and 5 more fields.

By gaurav · saved 17 August 2022 · run 1 time · 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
      }
      transaction {
        hash
        index
      }
      inputIndex
      value
      value_usd: value(in: USD)
      inputIndex
      inputScript
      inputAddress {
        address
      }
      inputScriptType {
        type
        pattern
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "3N3TTTPavvKG2p4drJX4KFS6x7JpbCM4Z3",
  "network": "bitcoin",
  "from": "2022-08-10",
  "till": "2022-08-17T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries