Events
Read the event queue and mark events as handled.
Events are a simple queue emitted by the daemon (for example, channel lifecycle updates).
Watch (blocks)
events watch waits until it receives events.
rgbldk events watch --count 1If you do not want to block forever, run it in a shell that has a timeout feature, or use events next instead.
Next (non-blocking)
rgbldk events nextIf there is an event, you will see something like:
ChannelReady user_channel_id=...Copy the user_channel_id value if you need it.
Mark handled
rgbldk events handled