Cardano Wrong Transaction TImestamp

The timestamp of the transactions that this query return are wrong, they are set to 00:00Z for every transaction throughout the day

By Federico · saved 5 June 2023 · run 11 times · Bitquery API v1

What it returns

Filters

The query

query ($network: CardanoNetwork!, $address: String!, $limit: Int!, $lastInputHeight: Int, $lastOutputHeight: Int) {
  cardano(network: $network) {
    inputs(
      inputAddress: {is: $address}
      options: {limitBy: {each: "hash.hash", limit: $limit}, asc: ["timestamp.date", "height.height"], limit: $limit}
      height: {gt: $lastInputHeight}
    ) {
      value
      height: block {
        height
      }
      currency {
        symbol
        tokenId
      }
      hash: transaction {
        hash
      }
      timestamp: date {
        date(format: "%FT%TZ")
      }
    }
    outputs(
      outputAddress: {is: $address}
      options: {limitBy: {each: "hash.hash", limit: $limit}, asc: ["timestamp.date", "height.height"], limit: $limit}
      height: {gt: $lastOutputHeight}
    ) {
      value
      height: block {
        height
      }
      currency {
        symbol
        tokenId
      }
      timestamp: date {
        date(format: "%FT%TZ")
      }
      hash: transaction {
        hash
      }
    }
  }
}

Variables

{
  "network": "cardano",
  "address": "addr1q8ugrr0q6ukwfvphslgvp86fmld8y92ek6u02nwllygls5ppd0rca96vh6njqfgsmd9xnpl0xr6wrct3nq5vjwrhvwcsp7z7cm",
  "limit": 1
}

Similar queries