SUBTC CLI — Wait (Blocking & Webhook)

permalink SUBTC
#blocking#cli#subtc#wait#webhook

Wait allows you to pause execution<br>until funds are received.

This is a blocking operation.

Command

./subtc wait <wid> <sat>

Example

./subtc wait w_abc123 tb1qxxx 20000

Behavior

  • Blocks until funds arrive

Timeout

./subtc wait <wid> <sat> 300

Wait up to 300 seconds.

Webhook Mode

./subtc wait <wid> <sat> 300 https://example.com/webhook

  • Sends HTTP request when payment arrives
  • Useful for backend systems

Why It Matters

No need for loops.<br>No need for manual checks.

Just wait.

Use Cases

  • Order processing
  • Automation scripts
  • Backend services

Notes

  • Works with inbox
  • Can be used with APIs
  • Designed for real-time systems

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