# How to Connect WordPress to a Self-Hosted Bitcoin Wallet API Keep BTC_KEY in the server environment and use the WordPress HTTP API from a private backend function. Replace the fixed placeholder wallet origin with your trusted HTTPS endpoint. The example calls RECEIVE on testnet only and disables redirects. Never accept an arbitrary engine URL from a browser. Add authenticated session creation, rate limits and full address checksum validation before exposing a public endpoint. The BTC KEY may authorize more than RECEIVE, so isolate the engine behind a restricted service. Do not log request headers. Educational example; no live integration test. License: 0BSD.