Masternode#

CreateMasternode#

class defichain.transactions.defitx.CreateMasternode(operatorAddress: str, timeLock: int = 0)#

Builds the defi transaction: CreateMasternode

Parameters:
  • operatorAddress (str) – (required) legacy address of the operator

  • timeLock (int) – (optional) time period to lock the masternode: 0 (default), 5, 10 years

ResignMasternode#

class defichain.transactions.defitx.ResignMasternode(masternodeId: str)#

Builds the defi transaction: ResignMasternode

Parameters:

masternodeId (str) – (required) masternodeId: txid of the creation of the masternode

UpdateMasternode#

class defichain.transactions.defitx.UpdateMasternode(masternodeId: str, ownerAddress: str | None = None, operatorAddress: str | None = None, rewardAddress: str | None = None)#

Builds the defi transaction: UpdateMasternode

Parameters:
  • masternodeId (str) – (required) txid of the creation of the masternode

  • ownerAddress (str) – (required) new owner address

  • operatorAddress (str) – (optional) new operator address

  • rewardAddress (str) – (optional) new reward address