eth_subscribe
Subscribe to different Ethereum event types like newHeads, logs, pendingTransactions, and minedTransactions using WebSockets.
Parameters:
Returns:
Example:
// initiate websocket stream
wscat -c wss://t3rn.blockpi.network/v1/ws/<your-api-key>
//create an event
{"jsonrpc":"2.0","id": 2, "method": "eth_subscribe", "params": ["newHeads"]}
// Result
Last updated
Was this helpful?