eth_subscribe RPC Method
Please note that WebSocket functionality is only supported on the
/nanoreth namespace on Hyperliquid mainnet. The /evm namespace does not support WebSockets at this time. Parameters
subscription name
string
REQUIRED
Loading...
newHeads
Loading...
hash
string
Loading...
parentHash
string
Loading...
sha3Uncles
string
Loading...
miner
string
Loading...
stateRoot
string
Loading...
transactionsRoot
string
Loading...
receiptsRoot
string
Loading...
logsBloom
string
Loading...
difficulty
string
Loading...
number
string
Loading...
gasLimit
string
Loading...
gasUsed
string
Loading...
timestamp
string
Loading...
extraData
string
Loading...
mixHash
string
Loading...
nonce
string
Loading...
baseFeePerGas
string
Loading...
withdrawalsRoot
string
Loading...
blobGasUsed
string
Loading...
excessBlobGas
string
Loading...
parentBeaconBlockRoot
string
Loading...
size
string
Loading...
logs
Loading...
address
string
Loading...
topics
array
Loading...
data
string
Loading...
blockHash
string
Loading...
blockNumber
string
Loading...
blockTimestamp
string
Loading...
transactionHash
string
Loading...
transactionIndex
string
Loading...
logIndex
string
Loading...
removed
boolean
Loading...
newPendingTransactions
Loading...
data
object
Loading...
Returns
result
string
Loading...
Request
1wscat -c wss://docs-demo.hype-mainnet.quiknode.pro/nanoreth \2# wait for connection3{"id":1,"jsonrpc":"2.0","method":"eth_subscribe","params":["newHeads"]}4
1wscat -c wss://docs-demo.hype-mainnet.quiknode.pro/nanoreth \2# wait for connection3{"id":1,"jsonrpc":"2.0","method":"eth_subscribe","params":["newHeads"]}4
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free