Metode RPC rootSubscribe
Berlangganan untuk menerima notifikasi setiap kali root baru ditetapkan oleh validator.
{"jsonrpc": "2.0","id": 1,"method": "rootSubscribe"}
params
Noneresult
Response
{"jsonrpc": "2.0","result": 0,"id": 1}
integer
id langganan (diperlukan untuk berhenti berlangganan)
Format Notifikasi:
Hasilnya adalah nomor slot root terbaru.
{"jsonrpc": "2.0","method": "rootNotification","params": {"result": 42,"subscription": 0}}
Is this page helpful?