Function coreledger_backend::mng_revoke_admin
pub async fn mng_revoke_admin(
contract_id: ContractId,
principal: Principal
) -> Response
Expand description
Allows the current owner to remove an existing Administrator.
§Parameters
contract_id
: Target contract id.principal
: The principal to revoke Admin rights from.
§Result
tx_id
: Id of the transaction.
§Sample request
CONTRACT_ID=863_687_411_142_147_496_529_845_239_809_006_400_526_886_408_362
PRINCIPAL='principal "dimdt-vwpm3-tkwgu-c2nkv-txykr-atn2x-xras5-6xidt-wtti3-i4xr6-vqe"'
dfx canister call coreledger_backend mng_revoke_admin "($CONTRACT_ID, $PRINCIPAL)"
§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
})