> ## Documentation Index
> Fetch the complete documentation index at: https://community.pqabelian.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Block Details

> Retrieve a block by height or hash, including consensus and transaction metadata.

Returns a block identified by either its height or hash. Provide exactly one of the two query parameters.

## Request parameters

**height** `number`

Block height. Provide this or `hash`, but not both.

**hash** `string`

Block hash, with or without a `0x` prefix. Provide this or `height`, but not both.

## Response fields

**type** `string` *required*

Response type. Always `block`.

**payload** `object` *required*

**hash** `string` *required*

Block hash.

**size** `integer` *required*

Block size.

**fullsize** `integer` *required*

Full block size, including transactions.

**height** `integer` *required*

Block height.

**version** `integer` *required*

Block version.

**versionHex** `string` *required*

Block version in hexadecimal form.

**merkleroot** `string` *required*

Merkle root.

**txn** `integer` *required*

Transaction count.

**coinbaseTxId** `string` *required*

Coinbase transaction ID.

**time** `integer` *required*

Block timestamp.

**nonce** `string` *required*

Block nonce.

**bits** `string` *required*

Primary consensus target bits.

**difficulty** `number` *required*

Primary consensus difficulty.

**bitsSecond** `string` *required*

Secondary consensus target bits.

**difficultySecond** `number` *required*

Secondary consensus difficulty.

**powScaleSecond** `integer` *required*

Secondary proof-of-work scale.

**consensusApplied** `integer` *required*

Consensus identifier applied to the block.

**previousblockhash** `string` *required*

Previous block hash.

**nextblockhash** `string` *required*

Next block hash.

**contenthash** `string` *required*

Block content hash.

**mixdigest** `string` *required*

Mix digest.

**sealhash** `string` *required*

Seal hash.

**totalfee** `number` *required*

Total block fees.

**confirmations** `integer` *required*

Confirmation count as calculated by the explorer.

```bash Request theme={null}
curl --request GET \
  --url 'https://api.pqabelian.io/v2/block/detail?height=563681'
```

```json Response theme={null}
{
  "type": "block",
  "payload": {
    "hash": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "size": 1048576,
    "fullsize": 1179648,
    "height": 563681,
    "version": 1,
    "versionHex": "00000001",
    "merkleroot": "1123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "txn": 12,
    "coinbaseTxId": "2123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "time": 1763899200,
    "nonce": "123456789",
    "bits": "1d00ffff",
    "difficulty": 1.0,
    "bitsSecond": "1d00ffff",
    "difficultySecond": 1.0,
    "powScaleSecond": 1,
    "consensusApplied": 1,
    "previousblockhash": "3123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "nextblockhash": "4123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "contenthash": "5123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "mixdigest": "6123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "sealhash": "7123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "totalfee": 0.25,
    "confirmations": 0
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.