Add API funds documentation
All checks were successful
build-and-push-ext / build_push (push) Successful in 7s

- Document /api/v1/funds/transfer endpoint
- Document /api/v1/funds/check endpoint
- Document required Docker socket mounting
- Document Bitcoin wallet requirements
This commit is contained in:
dev4 2025-09-20 21:50:30 +00:00
parent 7fc16f2d48
commit 4b8cf2b22f

25
docs/API_FUNDS.md Normal file
View File

@ -0,0 +1,25 @@
# API Funds - LeCoffre Back Mini
## Endpoints disponibles
- `POST /api/v1/funds/transfer` : Transfert automatique de fonds
- `GET /api/v1/funds/check` : Vérification des fonds
## Configuration requise
- Docker socket monté : `/var/run/docker.sock:/var/run/docker.sock`
- Accès au container `bitcoin-signet`
- Wallets Bitcoin : `mining_mnemonic` et `default`
## Transfert automatique
```bash
curl -X POST https://dev4.4nkweb.com/api/v1/funds/transfer \
-H "Content-Type: application/json" \
-d '{"amount": 0.01, "source": "mining_mnemonic", "target": "default"}'
```
## Vérification des fonds
```bash
curl https://dev4.4nkweb.com/api/v1/funds/check
```
## Date
2025-09-20