SUBTC CLI — Wait (Blocking & Webhook)

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

Wait allows you to pause execution
until funds are received.

This is a blocking operation.

# Command

./subtc wait <wid> <addr> <sat>

# Example

./subtc wait w_abc123 tb1qxxx 20000

# Behavior

- Blocks until funds arrive
- Returns when condition is met

# Timeout

./subtc wait <wid> <addr> <sat> 300

Wait up to 300 seconds.

# Webhook Mode

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

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

# Why It Matters

No need for loops.
No need for manual checks.

Just wait.

# Use Cases

- Payment confirmation
- 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