Get Wallet Balance
GET /v1/trovo-api/users/balance/{walletPublicKey}
This gets the balance of the wallet whose public key is represented by {walletPublicKey}.
The wallet must be either your wallet (or subwallet), or the wallet of your onboarded users.
Attempt to access a wallet that is outside of this scope will return an error.
Json Response
{
Claimed [ ]Balance `json:"claimed"`
Unclaimed [ ]Balance `json:"unclaimed"`
}
The Balance object is as follows
Balance: {
AssetIssuer string `json:"assetIssuer"`
AssetCode string `json:"assetCode"`
Amount string `json:"amount"`
InTrade {
SellingLiabilities string `json:"sellingLiabilities"`
BuyingLiabilities string `json:"buyingLiabilities"`
} `json:"inTrade"`
QRCode string `json:"qrCode"`
ImageURL string `json:"imageUrl"`
UsdPrice string `json:"usdPrice"`
NativePrice string `json:"nativePrice"`
CryptoWalletDepositAddresses [ ]{
ID string `json:"id"`
CreatedAt time.Time `json:"createdAt"`
TrovoWalletPublicKey string `json:"TrovoWalletPublicKey"`
Currency string `json:"currency"`
DepositAddress string `json:"depositAddress"`
Network string `json:"network"`
QRCode *string `json:"qrCode"`
} `json:"cryptoWalletDepositAddresses"`
ClosedGroup string `json:"closedGroup"`
QuoteCurrency string `json:"quoteCurrency"`
TokenizedAsset int `json:"tokenizedAsset"`
}