40 Compute Units.
Over HTTPS, Hyperliquid Mainnet keeps roughly 165 days of blocks, receipts and logs; requests for older blocks return JSON-RPC error
-32603 with invalid block height. Over WebSocket the request is served by nanoreth, the HyperEVM archive client, and any block back to genesis is available.Parameters
blockReference- string - a block number in hexadecimal, a block hash, or a tag such as"latest".
Returns
type:string- the value typestatus:stringcumulativeGasUsed:string- the sum of gas used by this transaction and all preceding transactions in the same block.blockHash:string- the hash of the block. null when pendingblockNumber:string- the block numbercontractAddress:string(optional) - the contract address created, if the transaction was a contract creation, otherwise null.effectiveGasPrice:string- the actual value per gas deducted from the sender accountfrom:string- the address of the sendergasUsed:string- the amount of gas used by this specific transaction alonelogs:arrayobjectstransactionHash:string- the hash of the transactions this log was created from. null when its a pending logaddress:string(optional) - an address from which this log originatedtopics:array(optional) - an array of zero to four 32 Bytes DATA of indexed log arguments. In Solidity, the first topic is the hash of the signature of the event (e.g. Deposit(address, bytes32, uint256)), except you declare the event with the anonymous specifier.data:string(optional) - contains one or more 32 Bytes non-indexed arguments of the logblockNumber:string(optional) - the block number where this log was in. null when its a pending logtransactionIndex:string(optional) - the integer of the transaction’s index position that the log was created from. null when it’s a pending logblockHash:string(optional) - the hash of the block where this log was in. null when its a pending loglogIndex:string(optional) - the integer of the log index position in the block. null when its a pending logremoved:boolean(optional) - true when the log was removed due to a chain reorganization, and false if it’s a valid log
logsBloom:string- the bloom filter for light clients to quickly retrieve related logsstatus:string(optional) - it is either 1 (success) or 0 (failure) encoded as a hexadecimalto:string(optional) - the address of the receiver. null when it’s a contract creation transactiontransactionHash:string- the hash of the transactiontransactionIndex:string- an index of the transaction in the block