Vault#

CreateVault#

class defichain.transactions.defitx.CreateVault(ownerAddress: str, schemeId: str)#

Builds the defi transaction: Create Vault

Parameters:
  • ownerAddress (str) – (required) the address where vault will be created

  • schemeId (str) – (required) the scheme id for the vault

UpdateVault#

class defichain.transactions.defitx.UpdateVault#

DepositToVault#

class defichain.transactions.defitx.DepositToVault(vaultId: str, addressFrom: str, amount: str)#

Builds the defi transaction: Deposit To Vault

Parameters:
  • vaultId (str) – (required) vault id

  • addressFrom (str) – (required) address containing collateral

  • amount (str) – (required) Amount of collateral in amount@symbol format

WithdrawFromVault#

class defichain.transactions.defitx.WithdrawFromVault(vaultId: str, addressTo: str, amount: str)#

Builds the defi transaction: Withdraw From Vault

Parameters:
  • vaultId (str) – (required) vault id

  • addressTo (str) – (required) destination address for withdraw of collateral

  • amount (str) – (required) Amount of collateral in amount@symbol format

CloseVault#

class defichain.transactions.defitx.CloseVault#

PlaceAuctionBid#

class defichain.transactions.defitx.PlaceAuctionBid#