Wallets
Add and manage xPub (BTC) or EVM (USDT) wallets, track balances, and configure wallet settings.
5 endpoints
The wallet object
A wallet holds an xPub address (BTC) or EVM address (USDT) and tracks your Bitcoin or USDT balances.
Attributes
idintegerUnique identifier of the wallet
namestringGiven name
emailidstringEmail of the wallet owner
cryptostringCryptocurrency of the wallet
addressstringAddress of the wallet
xpub_indexintegerThe current xPub index for BTC wallet
gap_limitintegerThe gap limit for BTC wallet
created_atstring (date-time)Datetime of the wallet creation
balanceobjectAggregate wallet balance (only present when balance=true is requested).
▶Show nested fields
confirmed_satsintegerConfirmed balance in satoshis.
unconfirmed_satsintegerUnconfirmed balance in satoshis.
confirmed_fiatnumberConfirmed balance in fiat currency.
unconfirmed_fiatnumberUnconfirmed balance in fiat currency.
fiat_currencystringFiat currency code.
total_addressesintegerTotal number of derived addresses.
Example object
{
"id": 0,
"name": "",
"emailid": "",
"crypto": "",
"address": "",
"xpub_index": 0,
"gap_limit": 0,
"created_at": "2024-01-01T00:00:00Z",
"balance": {
"confirmed_sats": 0,
"unconfirmed_sats": 0,
"confirmed_fiat": 0,
"unconfirmed_fiat": 0,
"fiat_currency": "",
"total_addresses": 0
}
}/v2/walletsAuth requiredList all wallets
Returns a list of all wallets associated with your Blockonomics account.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Query Parameters
balancebooleandefault: falseWhether to include balance information
Responses
balancequery · booleanWhether to include balance information
Response will appear here
/v2/walletsAuth requiredAdd a wallet
Attach a new wallet to your Blockonomics account.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Request Body
namestringName your wallet for easier identification
addressstringrequiredWallet address. For BTC: xPub address. For USDT: EVM address (0x...).
cryptostringrequiredType of crypto. Supported values: BTC, USDT.
Responses
namebody · stringName your wallet for easier identification
addressbody · stringrequiredWallet address. For BTC: xPub address. For USDT: EVM address (0x...).
cryptobody · stringrequiredType of crypto. Supported values: BTC, USDT.
Response will appear here
/v2/wallets/{id}Auth requiredGet wallet details
Returns details of a specific wallet.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Path Parameters
idintegerrequiredThe unique ID of the wallet
Query Parameters
balancebooleandefault: falseWhether to include balance information
Responses
idpath · integerrequiredThe unique ID of the wallet
balancequery · booleanWhether to include balance information
Response will appear here
/v2/wallets/{id}Auth requiredUpdate a wallet
Update the details of a specific wallet.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Path Parameters
idintegerrequiredThe unique ID of the wallet
Request Body
namestringGive a new name to the wallet
gap_limitintegerThe number of unused addresses to check before considering the wallet as inactive. Do not touch this unless you know what you are doing.
Responses
idpath · integerrequiredThe unique ID of the wallet
namebody · stringGive a new name to the wallet
gap_limitbody · integerThe number of unused addresses to check before considering the wallet as inactive. Do not touch this unless you know what you are doing.
Response will appear here
/v2/wallets/{id}Auth requiredDelete a wallet
Remove a wallet from your Blockonomics account.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Path Parameters
idintegerrequiredThe unique ID of the wallet
Responses
idpath · integerrequiredThe unique ID of the wallet
Response will appear here