Messages
{
"jsonrpc": "2.0",
"id": 1,
"method": "slotsUpdatesSubscribe"
}{
"jsonrpc": "2.0",
"method": "slotsUpdatesNotification",
"params": {
"result": {
"parent": 75,
"slot": 76,
"timestamp": 1625081266243,
"type": "firstShredReceived"
},
"subscription": 0
}
}{
"jsonrpc": "2.0",
"id": 1,
"method": "slotsUpdatesSubscribe"
}{
"jsonrpc": "2.0",
"method": "slotsUpdatesNotification",
"params": {
"result": {
"parent": 75,
"slot": 76,
"timestamp": 1625081266243,
"type": "firstShredReceived"
},
"subscription": 0
}
}Websockets
Slots updates subscribe
Suscríbete para recibir actualizaciones del ciclo de vida de los slots con su tipo y marca de tiempo. Guarda el ID devuelto en result y compáralo con params.subscription en las notificaciones. Usa slotsUpdatesUnsubscribe en la misma conexión para cancelar.
WSS
/
Messages
{
"jsonrpc": "2.0",
"id": 1,
"method": "slotsUpdatesSubscribe"
}{
"jsonrpc": "2.0",
"method": "slotsUpdatesNotification",
"params": {
"result": {
"parent": 75,
"slot": 76,
"timestamp": 1625081266243,
"type": "firstShredReceived"
},
"subscription": 0
}
}{
"jsonrpc": "2.0",
"id": 1,
"method": "slotsUpdatesSubscribe"
}{
"jsonrpc": "2.0",
"method": "slotsUpdatesNotification",
"params": {
"result": {
"parent": 75,
"slot": 76,
"timestamp": 1625081266243,
"type": "firstShredReceived"
},
"subscription": 0
}
}api_key
type:httpApiKey
API key for authentication. Provide your Solana Tracker API key as a query parameter.
slotsUpdatesSubscribe
type:object
Subscribe to slot updates
slotsUpdatesNotification
type:object
Slot updates notification
slotsUpdatesSubscribe
type:object
Subscribe to slot updates
slotsUpdatesNotification
type:object
Slot updates notification
¿Esta página le ayudó?