getBalance

suspend fun getBalance(accountId: Int, assetId: String): Result<AssetBalance>

Get the balance of a specific asset for a specific account.

Return

A Result containing an AssetBalance if the balance was successfully retrieved, or an EmbeddedWalletException in case of failure.

Parameters

accountId

The ID of the account.

assetId

The ID of the asset.