Inbound and Outbound on Bitcoin

Returns 10 inputs on Bitcoin, where input address is 18cBEM…L5PX, date since 2023-06-01 and date till 2023-06-08, 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 value.

By gaurav · saved 8 June 2023 · 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)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "18cBEMRxXHqzWWCxZNtU91F5sbUNKhL5PX",
  "network": "bitcoin",
  "from": "2023-06-01",
  "till": "2023-06-08T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries