eth_subscribe RPC Method
To use the eth_subscribe method on the C-Chain, ensure that the end of your URL includes ext/bc/C/ws.
Parameters
subscription name
array
REQUIRED
Loading...
newHeads
string
Loading...
logs
string
Loading...
newPendingTransactions
string
Loading...
data
object
Loading...
Returns
result
string
Loading...
Request
1wscat -c ext/bc/C/ws \2# wait for connection3{"id":1,"jsonrpc":"2.0","method":"eth_subscribe","params":["newHeads"]}
1wscat -c ext/bc/C/ws \2# wait for connection3{"id":1,"jsonrpc":"2.0","method":"eth_subscribe","params":["newHeads"]}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free