All bitcoin transctions for a bitcoin address

Returns the latest 10 transactions on Bitcoin: timestamp time, block height, fee value, hash, output value and input value.

By Qadir · saved 16 January 2025 · run 22 times · Bitquery API v1

What it returns

The query

query MyQuery {
  bitcoin(network: bitcoin) {
    transactions(
      options: {desc: "block.timestamp.time", limit: 10}
      any: [{inputAddress: {is: "bc1qmr6939yretxh8m02a9mjq24wtvhz4kzph4wkv4"}}, {outputAddress: {is: "bc1qmr6939yretxh8m02a9mjq24wtvhz4kzph4wkv4"}}]
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      feeValue
      fee_value_usd: feeValue(in: USD)
      hash
      outputValue_in_USD:outputValue (calculate: sum, in: USD)
      inputValue_in_USD: inputValue(calculate: sum, in: USD)
      outputValue (calculate: sum)
      inputValue(calculate: sum)
    }
  }
}

Variables

{
  "limit": 10,
  "network": "bitcoin",
  "address": "bc1qmr6939yretxh8m02a9mjq24wtvhz4kzph4wkv4"
}

Similar queries