pub async fn ctr_set_limit(
    contract_id: ContractId,
    address: Principal,
    limit: u256
) -> Response
Expand description

Sets the limit for the specified address for the specified controller.

§Parameters

  • contract_id: Target controller contract id.
  • address: The affected address.
  • limit: The limit.

§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"'
CTRL_LIMIT=10

dfx canister call coreledger_backend ctr_set_limit "($CONTROLLER_ID, $CTRL_PRINCIPAL, $CTRL_LIMIT)"

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