Endpoints
Wallet API
API endpoints for managing your Routstr wallet and payments
Wallet API
The Wallet API allows you to manage your Routstr wallet, check your balance, add funds, and withdraw your remaining balance.
Base URL
Authentication
All wallet endpoints require authentication with your Cashu token. Include it in the Authorization header:
Endpoints
Get Account Information
Retrieve information about your account, including your current balance.
Request Headers
Header | Description |
---|---|
Authorization | Bearer YOUR_CASHU_TOKEN |
Example Request
Example Response
Add Funds to Your Wallet
Add funds to your wallet using another Cashu token.
Request Parameters
Parameter | Type | Description |
---|---|---|
cashu_token | string | The Cashu token containing funds to add to your wallet |
Request Headers
Header | Description |
---|---|
Authorization | Bearer YOUR_CASHU_TOKEN |
Example Request
Example Response
Withdraw Your Balance
Withdraw your remaining balance as a Cashu token.
Request Headers
Header | Description |
---|---|
Authorization | Bearer YOUR_CASHU_TOKEN |
Example Request
Example Response
Error Handling
Status Code | Description |
---|---|
401 | Unauthorized - Invalid Cashu token |
402 | Payment Required - Insufficient funds |
400 | Bad Request - Invalid request parameters |
500 | Server Error - Something went wrong |