ots
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.
Returns paginated transactions for a block along with their receipts. Designed for block explorer UIs that display transactions with status and gas information.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Block number as hex string. |
| 2 | number | Page number (0-indexed). |
| 3 | number | Page size (number of transactions per page). |
Returns
| Field | Type | Description |
|---|---|---|
fullblock | object | Block object with the requested page of full transaction objects. |
receipts | array | Array of transaction receipt objects corresponding to the transactions. |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "ots_getBlockTransactions",
"params": ["0x100", 0, 25],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"fullblock": {
"number": "0x100",
"hash": "0x...",
"transactions": []
},
"receipts": []
}
}
TRY IT
Notes
- Use page size of 25 for best results (matches the API's internal page size limit).
- Page numbers are 0-indexed: page
0returns the first batch, page1returns the second, etc. - Receipts are returned alongside transactions so you can display status, gas used, and logs without additional RPC calls.
- For blocks with many transactions, iterate through pages until you receive fewer transactions than the page size.
ots_getBlockDetails
Returns detailed block information including issuance and total fees data. This extends the standard block data with Otterscan-specific fields.
ots_getContractCreator
Returns the transaction hash and address that created a given contract. Returns null for externally-owned accounts (EOAs).
