Function coreledger_backend::int_set_supply_controller
pub async fn int_set_supply_controller(
supply_id: SupplyId,
controller_id: Option<ContractId>
) -> Response
Expand description
A controller governs who is allowed to use the supply and consume it.
Is available also when the contract is paused.
§Parameters
supply_id
: Unique identifier for the supply.controller_id
: Contract id of the controller. If the value is null, then the controller is unset from supply.
§Result
tx_id
: Id of the transaction.
§Sample request
SUPPLY_ID=8_251_471_539_482_211_562_355_238_650_337_652_682_089_590_676_002_818_286_951_709_100_188_048_031_744
CONTROLLER_ID=1_448_779_797_028_246_688_227_973_963_433_490_704_197_058_796_812
dfx canister call coreledger_backend int_set_supply_controller "($SUPPLY_ID, opt $CONTROLLER_ID)"
§Sample response
( record {
tx_id = 64_902_045_878_680_215_161_103_406_576_570_366_475_824_533_393_005_533_149_888_825_789_042_550_227_580 : nat
})