slotSubscribe RPC-Methode

Abonnieren Sie Benachrichtigungen, wann immer ein Slot vom Validator verarbeitet wird

{
"jsonrpc": "2.0",
"id": 1,
"method": "slotSubscribe"
}

params

None

result

Response
{
"jsonrpc": "2.0",
"result": 0,
"id": 1
}
integer

Abonnement-ID (wird zum Abbestellen benötigt)

Benachrichtigungsformat:

Die Benachrichtigung ist ein Objekt mit den folgenden Feldern:

  • parent: <u64> - Der übergeordnete Slot
  • root: <u64> - Der aktuelle Root-Slot
  • slot: <u64> - Der neu gesetzte Slot-Wert

Beispiel:

{
"jsonrpc": "2.0",
"method": "slotNotification",
"params": {
"result": {
"parent": 75,
"root": 44,
"slot": 76
},
"subscription": 0
}
}

Is this page helpful?