/api/v1/wallet/balance wallet:readThe USDC credit balance rip.fun holds for one end-user. Identify them by external_user_id (your id) and/or wallet_address — new users are created on first use. available = balance − reserved; amounts come as micros strings plus *_usdc decimal strings.
GET /api/v1/wallet/balance?external_user_id=demo-explorer These inputs are shared across all docs pages — an id entered here carries over.
{
"success": true,
"data": {
"end_user": {
"id": 2,
"external_user_id": "demo-explorer",
"wallet_address": null
},
"wallet": {
"currency": "USDC",
"available": "0",
"reserved": "0",
"balance": "0",
"available_usdc": "0.000000",
"reserved_usdc": "0.000000",
"balance_usdc": "0.000000"
}
}
}curl -X GET 'https://service.rip.fun/api/v1/wallet/balance?external_user_id=demo-explorer' \ -H 'X-API-Key: rip_…'
| Field | Type | Required | Description |
|---|---|---|---|
external_user_id | query string | — | Your id for the end-user (≤255 chars). At least one identifier required. |
wallet_address | query string | — | End-user Base wallet address |
data)| Field | Description |
|---|---|
end_user | Resolved end-user (id, external_user_id, wallet_address) |
wallet.available / reserved / balance | USDC micros as strings ("12500000" = 12.5 USDC) |
wallet.*_usdc | Decimal display strings of the same values |