Messages
{
"jsonrpc": "2.0",
"id": 1,
"method": "blockSubscribe",
"params": [
"all"
]
}WebSocket methods
blockSubscribe WebSocket method
Subscribe to Solana blocks matching an account filter at the commitment level you choose, over WebSocket.
WSS
/
Subscribe to blocks matching the account filter at the requested commitment. Save the subscription ID returned in result and match it against params.subscription in notifications. Use blockUnsubscribe on the same connection to stop the stream.
Messages
{
"jsonrpc": "2.0",
"id": 1,
"method": "blockSubscribe",
"params": [
"all"
]
}api_key
type:httpApiKey
API key for authentication. Provide your Solana Tracker API key as a query parameter.
blockSubscribe
type:object
Subscribe to block notifications
Was this page helpful?