CLI
--max caps one payment in CC (in the token’s unit with --asset) and --pay-to <party> pins the payee. Without them pay pays whatever the 402 asks.
If a payment was signed and the request does not end in a 2xx, pay exits 2: the payment may have settled. Check balance before paying again. Exit 1 means nothing was signed.
Code
fetch, POST bodies included. expectedPayTo pins the payee; maxPaymentValueByInstrument caps a token.
MCP
Hosted. Connecthttps://pay.ftptech.xyz/mcp as a custom connector in Claude, ChatGPT (developer mode) or Perplexity and sign in with a passkey. FTP holds the wallet for you; limits default to 5 CC per payment and 20 CC per day. Steps: ftptech.xyz/mcp.
Local, self-custody:
--allow-domains every payment is refused. Tools: get_address, get_balance, request_funding, claim, pay, withdraw, swap.
Tokens
Paying in a token needs your consent:canton-agent-wallet preapproval --admin <registrar> --id USDCx. Registrars are in MainNet values.
Commands
All commands and options: agent-wallet README.
Good to know
- The key is the money. It lives in
~/.canton-agent/wallet.json. Back it up withexport. - A wallet created through FTP’s relay with 2.12 or later has three hosts (FTP, Nodejumper, Qasara), and any two confirm. If one is lost, see Recover a wallet.
- Do not retry a payment in a loop. After a timeout or error, check
balancefirst: the payment may have gone through. - Behind a proxy, set
HTTPS_PROXYfor the CLI.