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...
logs
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