POSTunsafe_payAllSui
Sui Mainnet
https://sui-mainnet.nodit.io/Send all SUI coins to one recipient. This is for SUI coin only and does not require a separate gas coin object. Specifically, what pay_all_sui does are:
- accumulate all SUI from input coins and deposit all SUI to the first input coin
- transfer the updated first coin to the recipient and also use this first coin as gas coin object.
- the balance of the first input coin after tx is sum(input_coins) - actual_gas_cost.
- all other input coins other than the first are deleted.
Request Body
Hex string encoding.
The Sui coins to be used in this transaction, including the coin for gas payment.
Hex string encoding.
Hex string encoding.
Responses
the gas objects to be used
Base64 string representing the object digest
Hex code as string representing the object id
Object version.
objects to be used in this transaction
object 1object
Hex string encoding.
object 2object
Base64 string representing the object digest
Hex code as string representing the object id
Object version.
object 3object
Hex string encoding.
BCS serialized transaction data bytes without its type tag, as base-64 encoded string.