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

# kaia_getBlockByHash

> Returns detailed information about a block by hash.

### Parameters

**chainId** `string` *required* (default: 1001)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: kaia\_getBlockByHash)

JSON-RPC method name.

**params** `object` *required*

Parameters: \[blockHash, fullTransactions].

Positional parameters for `kaia_getBlockByHash`:

<ul>
  <li>`params[0]`: 32 Bytes - hash of the block where this transaction was included. Null when pending.</li>
  <li>`params[1]`: If true, includes full transaction objects; otherwise only hashes.</li>
</ul>

### Returns

**result** `object`

A Kaia block object. Null if the block cannot be found.

**properties**

**number** `string`

Block number in hex. Null when the block is pending.

**hash** `string`

Hash of the block. Null when the block is pending.

**parentHash** `string`

Hash of the parent block.

**logsBloom** `string`

Bloom filter for logs associated with this block. Null when pending.

**transactionsRoot** `string`

Root of the transaction trie of the block.

**stateRoot** `string`

Root of the final state trie of the block.

**receiptsRoot** `string`

Root of the receipts trie of the block.

**miner** `string`

Author (beneficiary) address of the block.

**difficulty** `string`

Difficulty for this block.

**totalDifficulty** `string`

Total chain difficulty up to this block.

**extraData** `string`

Extra data field of the block.

**size** `string`

Size of the block in bytes (hex).

**gasLimit** `string`

Maximum gas limit for this block.

**gasUsed** `string`

Total gas used by transactions in this block.

**timestamp** `string`

Unix timestamp of when the block was sealed.

**transactions** `array`

Array containing transaction hashes or full transaction objects.

**items**

**items\[]** `oneOf`

Legacy transaction (pre-EIP-2718).

**variants**

**variant1** `object`

Legacy transaction (pre-EIP-2718).

**properties**

**hash** `string`

32 Bytes - hash of the transaction.

**nonce** `integer`

Quantity - (optional) Integer of a nonce. This allows you to overwrite your own pending transactions that use the same nonce.

**blockHash** `string`

32 Bytes - hash of the block where this transaction was included. Null when pending.

**blockNumber** `oneOf`

Block number where this transaction was included. Null when pending.

**variants**

**variant1** `integer`

**variant2** `string`

**transactionIndex** `integer`

The transaction's index position in the block. Null when pending.

**from** `string`

20 Bytes - The address the transaction is sent from.

**to** `string`

20 Bytes - The address the transaction is directed to. (Optional when creating new contract)

**value** `integer`

Quantity - (optional) Integer of the value sent with this transaction.

**gasPrice** `integer`

Quantity - (optional) Integer of the gas price used for each paid gas.

**gas** `integer`

Quantity - (optional) Integer of the gas provided for the transaction execution. (eth\_call consumes zero gas)

**input** `string`

The data sent along with the transaction.

**v** `integer`

The standardised V field of the signature.

**standardV** `integer`

The standardised V field of the signature (0 or 1). Only applicable to legacy transactions.

**r** `integer`

The R field of the signature.

**raw** `string`

Raw transaction data.

**publicKey** `string`

Public key of the signer.

**chainId** `integer`

The chain id of the transaction, if any.

**creates** `string`

Creates contract hash.

**condition** `oneOf`

Conditional submission of the transaction. Can be an object with a block number (\{ block: 1 }), a UTC timestamp in seconds (\{ time: 1491290692 }), or null.

**variants**

**variant1** `object`

**properties**

**block** `integer`

Block number condition

**variant2** `object`

**properties**

**time** `integer`

UTC timestamp condition in seconds

**variant2** `string`

32-byte transaction hash.

**uncles** `array`

Array of uncle block hashes.

**items**

**items\[]** `string`

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1001 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "kaia_getBlockByHash",
    "params": [
      "0x9a4e12c1b8ef6f2f726755efaf3f0b0f3788c2d9d11b9bd65d9f8c17e7a019d2",
      true
    ]
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}
```


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