Skip to main content

eth_subscribe RPC Method

Loading...

Updated on
May 28, 2026

eth_subscribe RPC Method

To use the eth_subscribe method on the Avalanche 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
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