Get Wallet Balance (beta)
Get wallet balance of a specific token/asset for a specific wallet.
HTTP Request
POST /v1/auth/wallets/balance
Returns
A successful response returns a balance
property and a Wallet
object.
Body
-
Token symbol of the asset to get balance for the specified wallet. Token symbol must be compatible with the wallet type of the specified wallet. For example,
MATIC (Polygon)
andETH (Ethereum)
will both be compatible with a wallet withwallet_type: "ETH"
and not compatible with a wallet withwallet_type: "SOL"
. Possible values: ETH, SOL, AVAX, MATIC, USDC, USDT, LINK, DOT, XLM. -
Unique wallet ID of the wallet to retrieve balance for.
POST /v1/wallets/balance
curl \
-X POST https://api.streambird.io/v1/wallets/balance \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"token_symbol":"ETH","wallet_id":"wallet_2Cu7sm5dBTJA7DuVR0K3UtXsCRh"}'
Request example
{
"token_symbol": "ETH",
"wallet_id": "wallet_2Cu7sm5dBTJA7DuVR0K3UtXsCRh"
}
Response examples (200)
{
"balance": "14.8232",
"token_symbol": "ETH",
"wallet": {
"id": "wallet_2Cu7sm5dBTJA7DuVR0K3UtXsCRh",
"app_id": "app_25ldv51seNohTaYRsxdfoxMlAa2",
"user_id": "user_2CablX3yylM1zISnst73dRCzCgw",
"public_address": "0x9d6de42aee0ead08c3c2aec66bfe31adfcd411c4",
"wallet_type": "ETH",
"verified": true,
"is_default": true,
"is_read_only": false,
"is_imported": false,
"updated_at": 1659640824,
"created_at": 1659640824
}
}