SUBTC — AI-Native Payment Layer Architecture
SUBTC Protocol is naturally aligned with AI agents.
It behaves as a financial execution layer that machines can control directly.
This is not accidental design.<br>It is the result of simplicity, determinism, and composability.
- AI Compatibility Foundations
SUBTC exposes a curl-first interface.
Agents do not require SDKs or complex integrations.
Example:
curl ...
This enables:
- GPT agents
- CLI bots
- autonomous scripts
Execution becomes immediate and universal.
- Deterministic Flow Model
All operations follow predictable steps:
wallet_create → wallet_id<br>wallet_receive → address<br>wallet_poll → state check<br>wallet_send → execution
This mirrors AI reasoning:
step → result → next step
No ambiguity.<br>No hidden state.
- Dual Execution Modes
SUBTC supports:
wallet_poll → non-blocking<br>wallet_wait_event → blocking / webhook
Mapping:
GPT agent → polling<br>backend agent → webhook<br>trading bot → hybrid
Same logic, different timing strategies.
- Autonomous Agent Pattern
Goal:
Send BTC when payment is received.
Flow:
- create wallet
- generate address
- wait for payment
- confirm state
- send funds
Loop:
while true:<br>poll payment<br>if reached:<br>send BTC<br>break
This maps directly to SUBTC endpoints.
- Execution Layer for Autonomous Systems
Agents require:
- tools
- actions
- observations
- memory
- loop
Mapping:
tool → curl endpoint<br>action → mode=wallet_send<br>observation → JSON response<br>memory → wallet_id<br>loop → wallet_poll
SUBTC becomes the tool interface.
- Marketplace Without Smart Contracts
Components:
Seller:
- creates inbox
- waits for payment
Buyer:
- sends BTC
SUBTC:
- enforces condition
Flow:
- inbox_create
- payment sent
- wallet_poll
- if reached → deliver product
Logic replaces contracts.
- Payment as a Condition
Instead of treating payment as an event:
payment = condition
if received_sat >= expected_sat:<br>execute action
This enables:
- automation
- AI control
- deterministic triggers
- Execution Patterns
Pattern 1 — Polling:
while !reached:<br>wallet_poll
Pattern 2 — Long Poll:
wallet_wait_event
Pattern 3 — Webhook:
callback_url
Each pattern fits a different system architecture.
- Trading Bot Integration
Strategy:
- monitor price
- detect dip → buy
- detect rise → sell
- move funds via SUBTC
Constraint:
blockchain confirmation delay
- Optimization Strategies
Use unconfirmed balance:
if unconfirmed_sat >= expected:<br>act early
Pre-fund wallets:
→ eliminate waiting
Hybrid execution:
→ AI decides instantly<br>→ blockchain settles later
- System Identity
SUBTC is not just an API.
It is:
AI-Compatible Financial Execution Layer
Comparison:
Stripe → web applications<br>SUBTC → AI agents
- Deployment Vision
Container model:
docker run subtc-store
Includes:
- payment gateway
- API layer
- webhook handler
- AI agent
Instant infrastructure.
- Embedded Agent Design
agent.go responsibilities:
- monitor payments
- trigger fulfillment
- send payouts
Fully autonomous cycle.
- Future Expansion
DEX bridge layer:
- connect to trading APIs
- AI decides trades
- SUBTC executes settlement
Separation of concerns:
decision vs execution
- Core Properties
SUBTC works with AI because it is:
simple<br>stateless<br>predictable<br>composable<br>scriptable
Conclusion
SUBTC transforms Bitcoin into a programmable interface for intelligent systems.
It enables machines to:
observe<br>decide<br>act
without friction.
This is the foundation for autonomous finance.