Skip to content

acl:transfer-ownership

Transfer ownership of an Ownable contract. On Ownable2Step contracts this stages the pending owner, who must then accept.

acl:transfer-ownership <of> <contract> <to> <newOwner>
NameTypeDescription
ofcommandKeyword of
contractaddressOwnable contract address
tocommandKeyword to
newOwneraddressNew owner address
load acl
# Hand over a token contract to the DAO treasury
acl:transfer-ownership of 0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72 to 0x4F2083f5fBede34C2714aFfb3105539775f7FE64
  • Must be sent by the current owner.
  • On plain Ownable contracts the transfer is immediate. On Ownable2Step contracts this only stages the pending owner, who must then run acl:accept-ownership; passing the zero address cancels a pending transfer.