Creates a coin API helper backed by an Aftermath provider.
Provider that supplies the Sui client used for coin queries.
Fetches every owned coin object for a coin type.
The method follows all available pages and returns the objects sorted by numeric coin object ID in ascending order.
Coin type to query.
Address whose coin objects to query.
All matching coin objects from the wallet.
Creates transaction arguments for several coin types and amounts.
The method processes coinTypes and coinAmounts by matching array index
and appends each result to the supplied transaction.
Amounts corresponding to coinTypes by index, in each coin's smallest unit.
Coin types to select, in the order of the returned arguments.
OptionalisSponsoredTx?: booleanWhether to use owned coin objects instead of a CoinWithBalance intent.
Transaction to mutate.
Address that owns the coins and signs the transaction.
Transaction arguments in the same order as coinTypes.
Fetches owned coin objects until their combined balances cover an amount.
The method selects the largest balances found across pages and stops after 50 pages to avoid creating an oversized transaction for a dust-heavy wallet.
Minimum combined balance to select, in the coin's smallest unit.
Coin type to query.
Address whose coin objects to query.
The selected coin objects, ordered from largest balance to smallest.
Creates a transaction argument for a requested amount of one coin type.
The method sets the transaction sender. For a sponsored transaction, it
selects owned coin objects and appends raw merge and split commands. For a
non-sponsored transaction, it checks the total balance before adding a
CoinWithBalance intent.
Amount to represent in the transaction, as a bigint in the coin's smallest unit.
Coin type to select.
OptionalisSponsoredTx?: booleanWhether the transaction uses an external gas sponsor.
Transaction to mutate.
Address that owns the coin and signs the transaction.
A transaction argument representing exactly coinAmount of coinType.
Provides coin-object queries and transaction arguments for
AftermathApi.The query methods use the provider's Sui client, and the transaction methods append commands to the supplied
Transaction.