ots_getBlockTransactions
JSON-RPC method retrieves paginated transactions for a specific block on the Hyperliquid EVM blockchain. This Otterscan-specific method optimizes data transfer by removing verbose fields like logs and providing pagination support for blocks with many transactions.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
- block number (integer, required): The block number to retrieve transactions from
- page number (integer, required): The page number to retrieve (0-indexed)
- page size (integer, required): The number of transactions per page
Response
The method returns a paginated response with transaction data and receipts.Response structure
fullblock
— the complete block informationnumber
— block numberhash
— block hashparentHash
— parent block hashtimestamp
— block timestampgasLimit
— block gas limitgasUsed
— total gas usedbaseFeePerGas
— base fee per gas
receipts
— array of transaction receipts (simplified, without logs)transactionHash
— hash of the transactionstatus
— success status (0x1 for success, 0x0 for failure)cumulativeGasUsed
— cumulative gas used up to this transactiongasUsed
— gas used by this transactioneffectiveGasPrice
— actual gas price paidcontractAddress
— contract address created (if applicable)
txs
— array of transactions for the requested page- Standard transaction fields (hash, from, to, value, input, etc.)
Usage example
Shell
Example response
Pagination example
To retrieve all transactions from a large block:Use cases
Theots_getBlockTransactions
method is essential for:
- Block explorers: Display transaction lists with pagination controls
- Large block handling: Efficiently process blocks with many transactions
- Performance optimization: Reduce bandwidth by excluding verbose log data
- Transaction indexing: Build transaction databases with pagination
- API rate limiting: Control data flow with page-based retrieval
- Mobile applications: Optimize data usage with smaller response sizes
- Real-time monitoring: Process new blocks transaction by transaction
- Data analysis: Systematically analyze all transactions in blocks
- Archive services: Export block transaction data in manageable chunks
- User interfaces: Implement infinite scroll or pagination in dApps
Body
application/json
JSON-RPC version
Available options:
2.0
The RPC method name
Available options:
ots_getBlockTransactions
Parameters: [block number, page, page size]
Request identifier