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 \
--request POST 'https://api.streambird.io/v1/wallets/balance' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"wallet_id":"wallet_2Cu7sm5dBTJA7DuVR0K3UtXsCRh","token_symbol":"ETH"}'
Request example
{
"wallet_id": "wallet_2Cu7sm5dBTJA7DuVR0K3UtXsCRh",
"token_symbol": "ETH"
}
Response examples (200)
{
"wallet": {
"id": "wallet_2Cu7sm5dBTJA7DuVR0K3UtXsCRh",
"app_id": "app_25ldv51seNohTaYRsxdfoxMlAa2",
"user_id": "user_2CablX3yylM1zISnst73dRCzCgw",
"verified": true,
"created_at": 1659640824,
"is_default": true,
"updated_at": 1659640824,
"is_imported": false,
"wallet_type": "ETH",
"is_read_only": false,
"public_address": "0x9d6de42aee0ead08c3c2aec66bfe31adfcd411c4"
},
"balance": "14.8232",
"token_symbol": "ETH"
}