Function coreledger_backend::int_get_balance
pub fn int_get_balance(
unique_asset_id: UniqueAssetId,
holder: Principal
) -> u256
Expand description
Returns the balance of account.
§Parameters
unique_asset_id
: Unique id of the asset.holder
: Principal holding the units of the asset.
§Result
Amount of units the principal holds.
§Sample request
UNIQUE_ASSET_ID=0xF94E2AD9DD5CBBC041430001
PRINCIPAL='principal "dimdt-vwpm3-tkwgu-c2nkv-txykr-atn2x-xras5-6xidt-wtti3-i4xr6-vqe"'
dfx canister call coreledger_backend int_get_balance "($UNIQUE_ASSET_ID, $PRINCIPAL)"
§Sample response
(590 : nat)