# For DeFi apps

Add a Buy BTC button to the wallet connection your app already has. Your users pay from the wallet they connected, and the BTC goes to their own Bitcoin address.

## What to build

1. Wrap your app in the React provider with a publishable key, and show a live price: [React and Python](https://maxy.co/docs/react-and-python).
2. Place orders from your server, where the secret key stays: [Keys and limits](https://maxy.co/docs/keys-and-limits).
3. Use the [flow helpers](https://maxy.co/docs/flow-helpers) to run the order from quote to completion.

## Bitcoin as collateral

If your users hold Bitcoin, MaxyLock lets them borrow against it while it stays on the Bitcoin network: [How MaxyLock works](https://maxy.co/docs/how-maxylock-works).

---
Source: https://maxy.co/docs/for-defi-apps (Maxy Docs › Maxy for your app › Use cases)
