Skip to main content
POST
/
v1
/
wallets
/
balance
Get Wallet Balance (beta)
curl --request POST \
  --url https://api.streambird.io/v1/wallets/balance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "token_symbol": "ethereum",
  "wallet_id": "wallet_2Cu7sm5dBTJA7DuVR0K3UtXsCRh"
}'
{
  "balance": "14.8232",
  "token_symbol": "ethereum",
  "wallet": {
    "id": "wallet_2Cu7sm5dBTJA7DuVR0K3UtXsCRh",
    "app_id": "app_25ldv51seNohTaYRsxdfoxMlAa2",
    "user_id": "user_2CablX3yylM1zISnst73dRCzCgw",
    "public_address": "0x9d6de42aee0ead08c3c2aec66bfe31adfcd411c4",
    "wallet_type": "ethereum",
    "verified": true,
    "is_default": true,
    "is_read_only": false,
    "is_imported": false,
    "updated_at": 1659640824,
    "created_at": 1659640824
  }
}

Authorizations

Authorization
string
header
required

Auth Platform API includes all the Auth related features. All Users, Phone Numbers, Emails, and OTPs are associated with an App as the container.

Endpoints only accept App's Secret API keys other than certain endpoints that are used client side or via SDK that accept the public_token.

Authentication using App Api Key

Header:

Authorization: Bearer {api_key}

Authenticated Request

curl \
-X GET https://api.streambird.io/v1/auth/users/user_24wFP9pDa9YiMJLun94iKykoZs2 \
-H "Authorization: Bearer sk_test_pRqweh3wvWmJAAVYv7Z0T5iPLzFM4ql0muoyQcjOxGeN3p1r"

Body

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

wallet_id
string
required

Unique wallet ID of the wallet to retrieve balance for.

Response

200 - application/json

Get Wallet Balance (beta) response

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