Skip to main content

eth_subscribe RPC Method

Loading...

Updated on
Dec 04, 2024

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
1
wscat -c ext/bc/C/ws \
2
# wait for connection
3
{"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