Test an AI Agent with a Bitcoin Wallet Sandbox
Goal
Give an agent a narrow testnet-only tool interface that can request balances and propose payments.
Exercise
Validate structured inputs on the server, cap the allowed amount, log request IDs, and require approval before any broadcast. Exercise malformed requests and unauthorized actions.
Verify your result
- Write down the expected behavior before running the exercise.
- Test one valid case and at least two invalid or unexpected cases.
- Confirm that errors are visible and that no sensitive values appear in logs.
- Save the observations so the procedure can be repeated.
Safety note
Never give a general-purpose agent unrestricted access to a funded mainnet wallet.
Next step
Read the [related guide](/docs/ai-agent-bitcoin-api-permissions) before extending the exercise.
