This project demonstrates how to use Cobo's WaaS 2 APIs/SDKs to build a basic wallet application.
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Copy
.env.example
to.env
and fill in your Cobo API credentials - Run the application:
cd app && uvicorn main:app --reload
- GET /api/wallets: List all wallets
- GET /api/wallets/{wallet_id}/balance: Get wallet balance
- GET /api/wallets/{wallet_id}/transactions: Get wallet transactions
- POST /api/wallets/{wallet_id}/deposit: Deposit to wallet
- POST /api/wallets/{wallet_id}/withdraw: Withdraw from wallet
- POST /api/webhook: Handle webhook events