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 · Bitquery API v1

What it returns

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
      }
    }
  }
}

Similar queries