---
title: "Get double consensus by hash"
method: GET
path: "/v1/operations/double_consensus/{hash}"
tags: ["Operations"]
---

# Get double consensus by hash

`GET /v1/operations/double_consensus/{hash}`

Returns a double consensus operation with specified hash.

## Path parameters

- `hash` string, required

## Query parameters

- `quote` 'None' | 'Btc' | 'Eur' | 'Usd' | 'Cny' | 'Jpy' | 'Krw' | 'Eth' | 'Gbp'

## Response `200`

- DoubleConsensusOperation[]
  - `type` string — Type of the operation, `double_consensus` - is used by bakers to provide evidence of double (pre)attestation ((pre)attestation of two different blocks at the same block height) by a baker
  - `id` integer — Unique ID of the operation, stored in the TzKT indexer database
  - `level` integer — Height of the block from the genesis block, in which the operation was included
  - `timestamp` string, date-time — Datetime of the block, in which the operation was included (ISO 8601, e.g. `2020-02-20T02:40:57Z`)
  - `block` string, required — Hash of the block, in which the operation was included
  - `hash` string, required — Hash of the operation
  - `accusedLevel` integer — Height of the block from the genesis, at which double (pre)attestation occurred
  - `slashedLevel` integer — Height of the block from the genesis, at which the offender was slashed
  - `kind` string, required — Kind of misbehaviour (`double_attestation` or `double_preattestation`)
  - `accuser` Alias, required
    - `alias` string, nullable — Account alias name (off-chain data).
    - `address` string, required — Account address (public key hash).
  - `reward` integer — Reward of the baker, produced the block, in which the accusation was included
  - `offender` Alias, required
    - `alias` string, nullable — Account alias name (off-chain data).
    - `address` string, required — Account address (public key hash).
  - `lostStaked` integer — Amount slashed from baker's own staked balance
  - `lostUnstaked` integer — Amount slashed from baker's own unstaked balance
  - `lostExternalStaked` integer — Amount slashed from baker's external staked balance
  - `lostExternalUnstaked` integer — Amount slashed from baker's external unstaked balance
  - `stakingUpdatesCount` integer, nullable — Number of staking updates happened internally
  - `quote` QuoteShort
    - `btc` number, double, nullable — XTZ/BTC price
    - `eur` number, double, nullable — XTZ/EUR price
    - `usd` number, double, nullable — XTZ/USD price
    - `cny` number, double, nullable — XTZ/CNY price
    - `jpy` number, double, nullable — XTZ/JPY price
    - `krw` number, double, nullable — XTZ/KRW price
    - `eth` number, double, nullable — XTZ/ETH price
    - `gbp` number, double, nullable — XTZ/GBP price

---

[API](https://skmtc.dev/tzkt/apis/tzkt-api.md) · [All operations](https://skmtc.dev/tzkt/apis/tzkt-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tzkt/tzkt-api/revisions/a2e2aba5e534/schema)
