eth_subscribe RPC Method
Parameters
subscription name
string
REQUIRED
Loading...
newHeads
string
Loading...
logs
string
Loading...
data
object
Loading...
Returns
result
string
Loading...
Request
1wscat -c wss://docs-demo.robinhood-testnet.quiknode.pro/ \2# wait for connection3{"id":1,"jsonrpc":"2.0","method":"eth_subscribe","params":["newHeads"]}
1wscat -c wss://docs-demo.robinhood-testnet.quiknode.pro/ \2# wait for connection3{"id":1,"jsonrpc":"2.0","method":"eth_subscribe","params":["newHeads"]}
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0xcd0c3e8af590364c09d0fa6a1210faf5"5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0xcd0c3e8af590364c09d0fa6a1210faf5"5}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free