SUBTC CLI — Poll (Check & Loop)

permalink SUBTC
#check#cli#loop#poll#subtc

Poll is a non-blocking way<br>to check for incoming payments.

Command

./subtc poll <wid> <sat>

Example

./subtc poll w_abc123 tb1qxxx 20000

Behavior

  • Runs once
  • Returns current status

Loop Mode

./subtc poll <wid> <sat> --loop

Checks every 3 seconds.

Custom Interval

./subtc poll <wid> <sat> --loop --interval=5

Checks every 5 seconds.

Why It Matters

Gives you full control.

  • No blocking
  • Flexible timing
  • Simple integration

Use Cases

  • Scripts
  • Dashboards
  • Dev testing

Poll vs Wait

Poll:

  • Non-blocking
  • Manual control

Wait:

  • Blocking

Notes

  • Works with inbox
  • Lightweight
  • Ideal for testing

-- tools subtc cli v2 : https://subtc.net/post/subtc-cli-v2-unified-bitcoin-cli