Get Wallet Balance (beta)

POST /v1/wallets/balance

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.

application/json

Body

  • token_symbol string Required

    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) and ETH (Ethereum) will both be compatible with a wallet with wallet_type: "ETH" and not compatible with a wallet with wallet_type: "SOL". Possible values: ETH, SOL, AVAX, MATIC, USDC, USDT, LINK, DOT, XLM.

  • wallet_id string Required

    Unique wallet ID of the wallet to retrieve balance for.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • id string
    • app_id string
    • user_id string
    • public_address string
    • wallet_type string
    • verified boolean
    • is_default boolean
    • is_read_only boolean
    • is_imported boolean
    • updated_at integer
    • created_at integer
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"
}