rootSubscribe RPC-Methode
Abonnieren Sie Benachrichtigungen, wann immer ein neuer Root durch den Validator festgelegt wird.
{"jsonrpc": "2.0","id": 1,"method": "rootSubscribe"}
params
Noneresult
Response
{"jsonrpc": "2.0","result": 0,"id": 1}
integer
Abonnement-ID (wird zum Abbestellen benötigt)
Benachrichtigungsformat:
Das Ergebnis ist die neueste Root-Slot-Nummer.
{"jsonrpc": "2.0","method": "rootNotification","params": {"result": 42,"subscription": 0}}
Is this page helpful?