eth_getSystemTxsByBlockHash
Returns system transactions for a specified block hash on HyperEVM. This Hyperliquid-specific method retrieves internal system transactions using the block hash, ensuring accurate block identification even in the event of chain reorganizations. This method uses 80 credits from your daily balance.
Parameters
hash: (string) [required] - The hash (32 bytes) of the block.
Returns
An array of system transaction objects included in the block:
type: (string) - The transaction type.chainId: (string) - The chain ID encoded as hexadecimal.nonce: (string) - The transaction count of the sender.gasPrice: (string) - Gas price in wei, encoded as hexadecimal.gas: (string) - Gas limit provided by the sender.to: (string) - Recipient address (null for contract creation).value: (string) - Value transferred in wei, encoded as hexadecimal.input: (string) - Input data of the transaction.r: (string) - ECDSA signature r.s: (string) - ECDSA signature s.v: (string) - ECDSA recovery id.hash: (string) - Transaction hash.blockHash: (string) - Block hash.blockNumber: (string) - Block number in hexadecimal.transactionIndex: (string) - Index of the transaction in the block.from: (string) - Sender address.
Example
Replace <YOUR-API-KEY> with an API key from your MetaMask Developer dashboard.
Request
- curl
- WSS
curl https://hyperevm-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getSystemTxsByBlockHash", "params": ["0x6c8e2e3fde20bc805fe9775ee65cdc9df6b9be70cfe1b473dc27c555a77425d9"], "id": 1}'
wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "eth_getSystemTxsByBlockHash", "params": ["0x6c8e2e3fde20bc805fe9775ee65cdc9df6b9be70cfe1b473dc27c555a77425d9"], "id": 1}'
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"type": "0x0",
"chainId": "0x1",
"nonce": "0x0",
"gasPrice": "0x2540be400",
"gas": "0x5208",
"to": "0x0000000000000000000000000000000000000000",
"value": "0x0",
"input": "0x",
"r": "0x0",
"s": "0x0",
"v": "0x0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x6c8e2e3fde20bc805fe9775ee65cdc9df6b9be70cfe1b473dc27c555a77425d9",
"blockNumber": "0xcc901c",
"transactionIndex": "0x0",
"from": "0x0000000000000000000000000000000000000000"
}
]
}