Loans#
TakeLoan#
- class defichain.transactions.defitx.TakeLoan(vaultId: str, addressTo: str, amounts: str | [str])#
Builds the defi transaction: Take Loans
- Parameters:
vaultId (str) – (required) id of vault used for loan
addressTo (str) – (required) address to transfer tokens
amounts (str | [str]) – (required) AddressAmount
PaybackLoan#
- class defichain.transactions.defitx.PaybackLoan(vaultId: str, addressFrom: str, amounts: str | [str])#
Builds the defi transaction: Payback Loans
- Parameters:
vaultId (str) – (required) id of vault used for loan
addressFrom (str) – (required) address containing repayment tokens
amounts (str | [str]) – (required) AddressAmount