From 4b8cf2b22fdff32475a7517dcf43bebdd0274324 Mon Sep 17 00:00:00 2001 From: dev4 Date: Sat, 20 Sep 2025 21:50:30 +0000 Subject: [PATCH] Add API funds documentation - Document /api/v1/funds/transfer endpoint - Document /api/v1/funds/check endpoint - Document required Docker socket mounting - Document Bitcoin wallet requirements --- docs/API_FUNDS.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/API_FUNDS.md diff --git a/docs/API_FUNDS.md b/docs/API_FUNDS.md new file mode 100644 index 0000000..2b94897 --- /dev/null +++ b/docs/API_FUNDS.md @@ -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