Méthode RPC slotSubscribe
S'abonner pour recevoir une notification chaque fois qu'un slot est traité par le validator
{"jsonrpc": "2.0","id": 1,"method": "slotSubscribe"}
params
Noneresult
Response
{"jsonrpc": "2.0","result": 0,"id": 1}
integer
Identifiant d'abonnement (nécessaire pour se désabonner)
Format de notification :
La notification sera un objet avec les champs suivants :
parent: <u64>
- Le slot parentroot: <u64>
- Le slot racine actuelslot: <u64>
- La nouvelle valeur de slot définie
Exemple :
{"jsonrpc": "2.0","method": "slotNotification","params": {"result": {"parent": 75,"root": 44,"slot": 76},"subscription": 0}}
Is this page helpful?