pub async fn ctr_set_blacklist(
    contract_id: ContractId,
    address: Principal,
    code: u8
) -> Response
Expand description

Sets an address to blacklist in the ControllerContract.

§Parameters

  • contract_id: Target controller contract id.
  • address: The address.
  • code: The code.

§Result

  • tx_id: Id of the transaction.

§Sample request

CONTROLLER_ID=706_061_983_514_303_969_782_027_186_938_462_951_048_586_994_629
CTRL_PRINCIPAL='principal "dimdt-vwpm3-tkwgu-c2nkv-txykr-atn2x-xras5-6xidt-wtti3-i4xr6-vqe"'
CODE=1

dfx canister call coreledger_backend ctr_set_blacklist "($CONTROLLER_ID, $CTRL_PRINCIPAL, $CODE)"

§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
})