buy_vpn
Purchases VPN access in one call: quote, pay on-chain, fulfill payment, and save credentials for HTTP or SOCKS5 proxy use.
Instructions
PREFERRED. Buy VPN in one call: quote → pay on-chain → fulfill → save credentials. Call ONCE per purchase. Do not use curl/shell against /pay. Do not call dry_run then buy again (each quote creates a new invoice). If this errors after payment, call fulfill_payment with the recovery fields from the error — never retry buy_vpn. One purchase covers every service the plan includes: the result's vpn object has port/connection_string for the HTTP proxy, and socks5_port/socks5_connection_string (same username/password) when the plan includes SOCKS5 — check list_vpn_catalog's services field beforehand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | ||
| country | No | ||
| dry_run | No | ||
| network | No |