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.
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
Must be set to 'application/json'.
Your API client ID.
Unix timestamp in milliseconds.
A unique UUID for this request.
HMAC-SHA256 signature of the request, Base64-encoded.
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.
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 Response
This is the standard shape of a balances response returned by the API.
Indicates whether the API request was successful.
A human-readable message describing the result of the request.
The unique identifier of the company whose balances are being retrieved.
A list of account objects, each representing a balance for a specific currency.
A unique identifier for the currency-specific account.
The company account number shared across all currency accounts.
The currency of the account (e.g., USDT, USDC, BTC).
The total balance recorded on the ledger. Values are fixed to 6 decimal places for stablecoins (USDT, USDC) and 8 decimal places for BTC.
The balance available for use. Uses the same decimal precision rules as ledger_balance (6 decimals for stablecoins, 8 for BTC).
A human-readable version of the ledger balance including the currency symbol.
A human-readable version of the available balance including the currency symbol.
The ISO 8601 timestamp indicating when the account was created.
A unique identifier for this API request, useful for debugging and support.
The ISO 8601 timestamp showing when the response was generated.
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
The currency code to retrieve the balance for. Supported values: 'BTC', 'USDT', 'USDC'.
Get Balance By Currency Response
This is the standard shape of a single currency balance response returned by the API.
Indicates whether the API request was successful.
A human-readable message describing the result of the request.
The account number associated with your company.
The currency code for this balance (e.g., 'USDT', 'USDC', 'BTC').
The total balance recorded on the ledger for this currency.
The balance available for immediate use.
A human-readable version of the ledger balance including the currency symbol.
A human-readable version of the available balance including the currency symbol.
The timestamp (ISO 8601 format) indicating when this balance snapshot was taken.
The unique identifier of the company whose balance is being retrieved.
A unique identifier for this specific API request, useful for debugging and support.
The timestamp (ISO 8601 format) when the response was generated.
Error Responses
The Wallets API returns standard error responses. Below are common errors you may encounter.
Authentication Errors
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.
Your API key does not have permission to access wallet data. Check your API credentials and permissions in the dashboard.
Request Errors
The currency parameter is invalid or not supported. Supported currencies: BTC, USDT, USDC.
The requested currency wallet does not exist for your account.
You have exceeded the rate limit. Wait and retry after the cooldown period.