β‘Agentic Lightning Commerce
What you'll build
Prerequisites
Step 1: Fund your Spark balance
# Check current Spark balance
xverse-wallet spark balance --json
# If empty, deposit from L1 (requires ~30 min for 3 confirmations)
xverse-wallet bitcoin balance --json # confirm you have native BTC
xverse-wallet spark deposit --amount 0.001 --yes --json
# Wait for confirmations, then claim
xverse-wallet spark claim --jsonStep 2: Accept payments β create Lightning invoices
Step 3: Make payments β pay Lightning invoices
Step 4: Call paid APIs automatically (MPP)
Step 5: Treasury management β sweep profits
Putting it all together: continuous commerce loop
Key numbers
Metric
Value
What's next
Last updated