slotSubscribe RPC 메소드
validator가 처리할 때마다 slot 알림을 받기 위한 구독
{"jsonrpc": "2.0","id": 1,"method": "slotSubscribe"}
params
Noneresult
Response
{"jsonrpc": "2.0","result": 0,"id": 1}
integer
구독 ID (구독 취소 시 필요)
알림 형식:
알림은 다음 필드를 포함하는 객체입니다:
parent: <u64>
- 부모 slotroot: <u64>
- 현재 루트 slotslot: <u64>
- 새로 설정된 slot 값
예시:
{"jsonrpc": "2.0","method": "slotNotification","params": {"result": {"parent": 75,"root": 44,"slot": 76},"subscription": 0}}
Is this page helpful?