Use when creating crypto or stablecoin invoices, generating payment quotes, or tracking invoice payment status with the Weave CLI.
Weave is a CLI for crypto invoicing and cross-chain payment workflows. Use this when you need to create Bitcoin, Ethereum, Solana, USDC, or USDT invoices, generate payment quotes, and monitor settlement across supported networks such as Base, Tron, and Zcash for agent workflows or operations.
Use weave for full Weave Cash invoice lifecycle workflows:
weave create)weave quote)weave status or weave status --watch)--human only when explicitly requested.weave --help
weave tokens
weave is missing, provide compliant install guidance and ask before running:go install github.com/AryanJ-NYC/weave-cash/apps/cli/cmd/weave@latest
weave --help
If Go is unavailable, use npm fallback:
npm i -g weave-cash-cli
weave --help
If both Go and npm are unavailable, report the missing prerequisites.
metadata.openclaw.install / metadata.clawdbot.install package-manager installs.weave tokens output from the runtime binary.--receive-network is required only for receive tokens that support multiple networks.Ethereum|ETH, Solana|SOL, Tron|TRX when supported by runtime output).Collect:
receive-tokenamount (positive numeric string)wallet-addressreceive-network only when required by runtime token/network mapdescription, buyer-name, buyer-email, buyer-address)Command:
weave create \
--receive-token USDC \
--receive-network Ethereum \
--amount 25 \
--wallet-address 0x1111111111111111111111111111111111111111
Expected JSON shape:
{
"id": "inv_123",
"invoiceUrl": "https://www.weavecash.com/invoice/inv_123"
}
Capture id for downstream quote/status calls.
Collect:
invoice-idpay-tokenpay-networkrefund-addressCommand:
weave quote inv_123 \
--pay-token USDT \
--pay-network Ethereum \
--refund-address 0x2222222222222222222222222222222222222222
Expected fields:
depositAddressdepositMemo (optional)amountInamountOuttimeEstimateexpiresAtOne-shot:
weave status inv_123
Watch mode:
weave status inv_123 --watch --interval-seconds 5 --timeout-seconds 900
Interpretation:
0: reached terminal status (COMPLETED, FAILED, REFUNDED, EXPIRED)2: watch timeout (not a command failure)1: command/API/network/validation failureWhen exit code is 1, surface structured stderr JSON when present. Common API-derived shape:
{
"error": "api message",
"status": 409,
"details": {
"error": "Invoice is not in PENDING status"
}
}
If watch times out (exit 2), treat as incomplete progress, not fatal failure. Recommend extending --timeout-seconds or rerunning a one-shot weave status <invoice-id>.
The installed binary and source tree can drift in token support. Always use runtime discovery (weave tokens) when deciding valid token/network combinations.