pub async fn mng_renounce_ownership(contract_id: ContractId) -> Response
Expand description

Allows the current owner to relinquish control of the contract.

It will not be possible to call the functions with the onlyOwner modifier anymore.

notice: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

§Parameters

  • contract_id: Target contract id.

§Result

  • tx_id: Id of the transaction.

§Sample request

CONTRACT_ID=1_376_994_832_725_996_537_612_682_825_051_864_610_558_585_037_795

dfx canister call coreledger_backend mng_renounce_ownership "($CONTRACT_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
})