Skip to main content

List Wallets

This endpoint returns a list of all wallets (sub-accounts) belonging to the authenticated tenant.

GET
/wallets/

Authentication

This endpoint requires authentication using one of the following methods:

Authentication TypeHeaderDescription
OAuth 2.0AuthorizationBearer your_access_token
API KeyX-API-Keyyour_api_key

Response

A successful response returns a list of wallet objects and a total count.

FieldTypeDescription
accountsarrayList of wallet objects
totalintegerTotal number of wallets

Wallet Object

FieldTypeDescription
idstringUnique wallet identifier (UUID)
namestringCustom name for the wallet
external_idstringYour unique identifier for this wallet
wallet_idstringSystem-assigned wallet identifier
createdstringISO 8601 timestamp of wallet creation
updatedstringISO 8601 timestamp of last wallet update
balancesarrayArray of balance objects for this wallet

Balance Object

FieldTypeDescription
currencystringCurrency code (e.g., "USDTTRC20", "BTC")
amountnumberTotal balance amount
pending_amountnumberAmount in pending transactions
available_balancenumberBalance available for transfers

Example Request

curl -X GET "{{BASE_URL}}/wallets/" \
-H "X-API-Key: your_api_key"

Example Response

{
"accounts": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Player 12345",
"external_id": "player-12345",
"wallet_id": "w_abc123def456",
"created": "2025-03-15T10:20:30.456Z",
"updated": "2025-04-19T12:34:56.789Z",
"balances": [
{
"currency": "USDTTRC20",
"amount": "1000.00",
"pending_amount": "50.00",
"available_balance": "950.00"
}
]
},
{
"id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"name": "Player 67890",
"external_id": "player-67890",
"wallet_id": "w_xyz789ghi012",
"created": "2025-04-01T08:15:30.123Z",
"updated": "2025-04-19T12:34:56.789Z",
"balances": []
}
],
"total": 2
}

Error Codes

Status CodeError CodeDescription
401unauthorizedAuthentication failed
403forbiddenUser doesn't have required permissions
500server_errorInternal server error

Notes

  • Each wallet includes its current balances across all cryptocurrencies.
  • The available_balance represents funds that can be used for transfers (total minus pending).
  • Required scopes: read, write.