Authenticated Esplora proxy for BDK applications.
BDK Client → Proxy (localhost:8080) → Maestro Esplora API
Clone Maestro-Esplora-Proxy Repo:
git clone https://github.com/maestro-org/maestro-esplora-proxy.git && cd maestro-esplora-proxy
Copy .env.example
template:
cp .env.example .env
Edit your .env
file:
MAESTRO_API_KEY=your-maestro-api-key-here
# mainnet
ESPLORA_URL=https://xbt-mainnet.gomaestro-api.org/v0/esplora
# testnet4
# ESPLORA_URL=https://xbt-testnet.gomaestro-api.org/v0/esplora
Run proxy:
cargo run
Within your client-side code, connect to the locally running Esplora Proxy.
Example
let blockchain = EsploraBlockchain::new("http://localhost:8080", 20);