SUBTC CLI — Poll (Check & Loop)
Poll is a non-blocking way
to check for incoming payments.
# Command
./subtc poll <wid> <addr> <sat>
# Example
./subtc poll w_abc123 tb1qxxx 20000
# Behavior
- Runs once
- Returns current status
# Loop Mode
./subtc poll <wid> <addr> <sat> --loop
Checks every 3 seconds.
# Custom Interval
./subtc poll <wid> <addr> <sat> --loop --interval=5
Checks every 5 seconds.
# Why It Matters
Gives you full control.
- No blocking
- Flexible timing
- Simple integration
# Use Cases
- CLI monitoring
- Scripts
- Dashboards
- Dev testing
# Poll vs Wait
Poll:
- Non-blocking
- Manual control
Wait:
- Blocking
- Automatic trigger
# Notes
- Works with inbox
- Lightweight
- Ideal for testing
-- tools subtc cli v2 : https://subtc.net/post/subtc-cli-v2-unified-bitcoin-cli