Skip to main content

eth_subscribe RPC Method

Loading...

Updated on
May 28, 2026

eth_subscribe RPC Method

Parameters

subscription name
string
REQUIRED
Loading...
newHeads
Loading...
logs
Loading...
newPendingTransactions
Loading...
data
object
Loading...

Returns

result
string
Loading...
Request
1
import { Core } from '@quicknode/sdk'
2
3
const core = new Core({
4
endpointUrl: "",
5
})
6
7
core.client
8
.watchBlocks(
9
{
10
onBlock: block => console.log(block),
11
poll: false
12
}
13
)
14
1
import { Core } from '@quicknode/sdk'
2
3
const core = new Core({
4
endpointUrl: "",
5
})
6
7
core.client
8
.watchBlocks(
9
{
10
onBlock: block => console.log(block),
11
poll: false
12
}
13
)
14
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free