Skip to main content

eth_subscribe RPC Method

Loading...

Updated on
May 21, 2026

eth_subscribe RPC Method

Parameters

subscription_name
string
REQUIRED
Loading...
newHeads
string
Loading...
logs
string
Loading...
newPendingTransactions
string
Loading...
flag
boolean
Loading...
data
object
Loading...

Returns

result
string
Loading...
Request
1
curl -X POST "https://docs-demo.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "eth_subscribe",
6
"params": [
7
"newHeads"
8
],
9
"id": 1
10
}'
1
curl -X POST "https://docs-demo.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "eth_subscribe",
6
"params": [
7
"newHeads"
8
],
9
"id": 1
10
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x9cef478923ff08bf67fde6c64013158d"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x9cef478923ff08bf67fde6c64013158d"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free