ots
ots_getBlockDetailsByHash
Returns extended block details by block hash, including transaction count and uncle count. Like ots_getBlockDetails but addressed by hash instead of number.
Returns extended block details by block hash, including transaction count and uncle count. Like ots_getBlockDetails but addressed by hash instead of number.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Block hash. |
Returns
| Field | Type | Description |
|---|---|---|
block | object | Standard block object with full header fields. |
issuance | object | Block reward issuance breakdown. |
totalFees | string | Total transaction fees in the block (hex). |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"ots_getBlockDetailsByHash","params":["0xe90c483eaa122e74459dfa197dbe87bc180cc7d463fdf97efabea8ea5561d368"],"id":1}'
TRY IT
Notes
- Identical to
ots_getBlockDetailsbut accepts a block hash instead of a block number. - Returns
nullif the block hash is not found.
