Wallets

The Wallets API allows you to manage digital wallets linked to your company account. It supports retrieving wallet information and checking balances across different asset types (USDT, USDC, BTC). Use this API to track balances, monitor available funds, and ensure sufficient balance before initiating transactions.

Key Features

Multi-currency support: View balances across USDT, USDC, and BTC wallets.

Real-time balances: Get up-to-date ledger and available balances.

Formatted output: Receive human-readable balance strings alongside raw values.

Wallet Endpoints

Get Wallets

Use Case

This endpoint retrieves all wallets associated with your API key. Each wallet represents a currency-specific account and includes its balance, account number, and creation date.

Headers
1
Content-TypestringRequired

Must be set to 'application/json'.

2
x-auth-clientstringRequired

Your API client ID.

3
x-auth-timestampstringRequired

Unix timestamp in milliseconds.

4
x-auth-noncestringRequired

A unique UUID for this request.

5
x-auth-signaturestringRequired

HMAC-SHA256 signature of the request, Base64-encoded.

Get Wallets Request

Get Balances

Use Case

This endpoint retrieves your account balances across all supported currencies. It provides real-time visibility into your available funds, making it useful for dashboards and ensuring sufficient funds before initiating transactions.

Note

Balance values are returned in smallest units. Stablecoins (USDT, USDC) use 6 decimal places, while BTC uses 8 decimal places. Use the _formatted fields for human-readable values.

Get Balances

Get Balances Response

This is the standard shape of a balances response returned by the API.

1
successBoolean

Indicates whether the API request was successful.

2
messageString

A human-readable message describing the result of the request.

3
company_idUUID

The unique identifier of the company whose balances are being retrieved.

4
accountsArray

A list of account objects, each representing a balance for a specific currency.

5
account_idUUID

A unique identifier for the currency-specific account.

6
account_numberString

The company account number shared across all currency accounts.

7
currencyString

The currency of the account (e.g., USDT, USDC, BTC).

8
ledger_balanceString

The total balance recorded on the ledger. Values are fixed to 6 decimal places for stablecoins (USDT, USDC) and 8 decimal places for BTC.

9
available_balanceString

The balance available for use. Uses the same decimal precision rules as ledger_balance (6 decimals for stablecoins, 8 for BTC).

10
ledger_balance_formattedString

A human-readable version of the ledger balance including the currency symbol.

11
available_balance_formattedString

A human-readable version of the available balance including the currency symbol.

12
created_atDate

The ISO 8601 timestamp indicating when the account was created.

13
request_idString

A unique identifier for this API request, useful for debugging and support.

14
timestampDate

The ISO 8601 timestamp showing when the response was generated.

Balances Sample Response

Get Balance By Currency

Use Case

This endpoint retrieves your account balance for a specific currency. Use it to check available funds in a particular wallet (e.g., BTC, USDT, USDC) before initiating transfers or for currency-specific reporting.

Path Parameters
1
:currencystringRequired

The currency code to retrieve the balance for. Supported values: 'BTC', 'USDT', 'USDC'.

Get Balance By Currency

Get Balance By Currency Response

This is the standard shape of a single currency balance response returned by the API.

1
successBoolean

Indicates whether the API request was successful.

2
messageString

A human-readable message describing the result of the request.

3
account_numberString

The account number associated with your company.

4
currencyString

The currency code for this balance (e.g., 'USDT', 'USDC', 'BTC').

5
ledger_balanceString

The total balance recorded on the ledger for this currency.

6
available_balanceString

The balance available for immediate use.

7
ledger_balance_formattedString

A human-readable version of the ledger balance including the currency symbol.

8
available_balance_formattedString

A human-readable version of the available balance including the currency symbol.

9
as_ofDate

The timestamp (ISO 8601 format) indicating when this balance snapshot was taken.

10
company_idUUID

The unique identifier of the company whose balance is being retrieved.

11
request_idString

A unique identifier for this specific API request, useful for debugging and support.

12
timestampDate

The timestamp (ISO 8601 format) when the response was generated.

Balance By Currency Sample Response

Error Responses

The Wallets API returns standard error responses. Below are common errors you may encounter.

Authentication Errors
1
401 UnauthorizedError

The request is missing or has invalid authentication headers. Verify your x-auth-client, x-auth-timestamp, x-auth-nonce, and x-auth-signature are correct.

2
403 ForbiddenError

Your API key does not have permission to access wallet data. Check your API credentials and permissions in the dashboard.

Request Errors
1
400 Bad RequestError

The currency parameter is invalid or not supported. Supported currencies: BTC, USDT, USDC.

2
404 Not FoundError

The requested currency wallet does not exist for your account.

3
429 Too Many RequestsError

You have exceeded the rate limit. Wait and retry after the cooldown period.

Error Response Examples
Did you find this page useful?