Set up the agent's Lightning wallet
setup_walletSet up a Bitcoin Lightning wallet for automatic payments: choose hosted custodial or connect your own NWC wallet, then get funding instructions.
Instructions
One-time wallet setup so purchases can pay automatically. Call with no arguments first: it returns the operator-facing options — present them to the operator verbatim and let them choose; do not choose for them. Then call {action:'create_hosted', confirm:true} ONLY after the operator explicitly agreed (creates a hosted custodial wallet at coinos.io; credentials are stored locally in ~/.hypawave/wallet.json and never sent to Hypawave), or {action:'connect_own'} to use an existing NWC wallet — without nwc_url it returns per-wallet steps to help the operator find their connection string. Also: {action:'funding_options', amount_sats?} returns operator-facing funding instructions for the configured wallet (instant Lightning invoice/address + on-chain deposit address for exchanges without Lightning, e.g. Robinhood) — present them verbatim whenever the wallet needs sats. The NWC_URL env var, when set, always takes precedence over anything configured here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Omit to get the options to present to the operator | |
| confirm | No | Required true for create_hosted — set only after the operator explicitly agreed | |
| nwc_url | No | For connect_own: the wallet's NWC connection string | |
| amount_sats | No | For funding_options: mint an exact-amount Lightning funding invoice for this many sats |