Function coreledger_backend::int_get_tokens
pub fn int_get_tokens(contract_id: ContractId, asset_id: AssetId) -> u256
Expand description
Getter for the total amount of tokens of a certain asset ID.
§Parameters
contract_id
: The ledger contract_id. Together with the asset_id this becomes the globally unique asset ID.asset_id
: The ledger-specific asset ID.
§Result
The total amount of tokens of a certain asset ID.
§Sample request
LEDGER_CONTRACT_ID=1_376_994_832_725_996_537_612_682_825_051_864_610_558_585_037_795
ASSET_ID=0xF94E2AD9DD5CBBC04143
dfx canister call coreledger_backend int_get_tokens "($LEDGER_CONTRACT_ID, $ASSET_ID)"
§Sample response
(600 : nat)