ots
ots_getBlockDetails
Returns detailed block information including issuance and total fees data. This extends the standard block data with Otterscan-specific fields.
Returns detailed block information including issuance and total fees data. This extends the standard block data with Otterscan-specific fields.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Block number as hex string. |
Returns
| Field | Type | Description |
|---|---|---|
block | object | Standard block object with all header fields and transaction hashes. |
issuance | object | Block reward breakdown with blockReward, uncleReward, and issuance fields (hex wei). |
totalFees | string | Total transaction fees paid in the block (hex wei). |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "ots_getBlockDetails",
"params": ["0x100"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"block": {
"number": "0x100",
"hash": "0x...",
"parentHash": "0x...",
"timestamp": "0x...",
"gasUsed": "0x...",
"gasLimit": "0x...",
"miner": "0x...",
"transactions": []
},
"issuance": {
"blockReward": "0x0",
"uncleReward": "0x0",
"issuance": "0x0"
},
"totalFees": "0x0"
}
}
TRY IT
Notes
- The
issuancefield provides block reward information. On PulseChain (proof-of-stake), block rewards are zero. - The
totalFeesfield is the sum of all gas fees paid by transactions in the block. - This method combines data that would otherwise require multiple RPC calls.
ots_hasCode
Checks whether an address contains contract code at the specified block. This is a lightweight alternative to calling eth_getCode and checking if the result is empty.
ots_getBlockTransactions
Returns paginated transactions for a block along with their receipts. Designed for block explorer UIs that display transactions with status and gas information.
