unsafe_mergeCoins
Transaction Builder API Create an unsigned transaction to merge multiple coins into one coin.
Parameters
signer
:<SuiAddress>
- the transaction signer's Sui addressprimary_coin
:<ObjectID>
- the coin object to merge into, this coin will remain after the transactioncoin_to_merge
:<ObjectID>
- the coin object to be merged, this coin will be destroyed, the balance will be added to `primary_coin`gas
:<ObjectID>
- gas object to be used in this transaction, node will pick one from the signer's possession if not providedgas_budget
:<uint64>
- the gas budget, the transaction will fail if the gas cost exceed the budget
Returns
TransactionBytes
:<TransactionBytes>
gas :
<[ObjectRef]>
- the gas object to be usedinputObjects :
<[InputObjectKind]>
- objects to be used in this transactiontxBytes :
<[Base64]>
- BCS serialized transaction data bytes without its type tag, as base-64 encoded string.
Example Request and Result for unsafe_mergeCoins
Request
Last updated