Accounts#
UtxosToAccount#
- class defichain.transactions.defitx.UtxosToAccount(address: str, amount: int, tokenId: int | str = 0)#
Builds the defi transaction: UtxosToAccount
- Parameters:
address (str) – (required) the address with the utxo
amount (int) – (required) the amount to convert
tokenId (int) – (optional) the token id or symbol to convert (default = 0 -> DFI)
AccountToUtxos#
- class defichain.transactions.defitx.AccountToUtxos(addressFrom: str, value: int, mintingOutputsStart: int)#
Builds the defi transaction: AccountToUtxos
- Parameters:
addressFrom (str) – (required) the defi address of the sender
value (int) – (required) amount of token to convert
mintingOutputsStart (int) – (required) start of outputs that mint utxos
AccountToAccount#
- class defichain.transactions.defitx.AccountToAccount(addressFrom: str, addressAmountTo: {})#
Builds the defi transaction: AccountToAccount
- Parameters:
addressFrom (str) – the defi address of the sender
addressAmountTo (AddressAmounts) – An json object where the address is the key and the value is the amount (amount@token)
AnyAccountToAccount#
- class defichain.transactions.defitx.AnyAccountToAccount#
TODO: MVP
SetFutureSwap#
- class defichain.transactions.defitx.SetFutureSwap#
TODO: MVP