bitcoin fee aount and tx for an address

Returns the latest 10 transactions on Bitcoin, where date since 2022-04-22 and date till 2022-04-29: block height, timestamp time, index, fee value, input value, output value, hash and 3 more fields.

By gaurav · saved 29 April 2022 · run 3 times · 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) {
    transactions(
      date: {since: $from, till: $till}
      any: [{inputAddress: {is: $address}}, {outputAddress: {is: $address}}]
      options: {desc: ["block.height","index"], limit: $limit, offset: $offset}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      index
      feeValue
      inputValue
      outputValue
      hash
      feeValueDecimal
      inputValueDecimal
      outputValueDecimal
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "address": "bc1qgu0ljshvz2uv3muh2cm4dw5qxqkye0har0e2he",
  "network": "bitcoin",
  "from": "2022-04-22",
  "till": "2022-04-29T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries