PaySuiTransaction class
Send SUI coins to a list of addresses, following a list of amounts. This is for SUI coin only and does not require a separate gas coin object. Specifically, what pay_sui does are:
- debit each input_coin to create new coin following the order of amounts and assign it to the corresponding recipient.
- accumulate all residual SUI from input coins left and deposit all SUI to the first input coin, then use the first input coin as the gas coin object.
- the balance of the first input coin after tx is sum(input_coins) - sum(amounts) - actual_gas_cost
- all other input coints other than the first one are deleted.
Constructors
-
PaySuiTransaction(List<
ObjectId> inputCoins, List<SuiAddress> recipients, List<int> amounts, int gasBudget)
Properties
-
amounts
↔ List<
int> -
getter/setter pair
-
amountsStr
→ List<
String> -
no setter
- gasBudget ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputCoins
↔ List<
ObjectId> -
getter/setter pair
-
recipients
↔ List<
SuiAddress> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited