unsafe_payAllSui
Creates an unsigned transaction that transfers all SUI coins to one recipient. All SUI from the input coins are consolidated into the first coin, which is then transferred and used as the gas object. Remaining input coins are deleted.
⚠ This endpoint is only available with Blast access.
Path parameters
apiKey
Request
This endpoint expects an object.
signer
The transaction signer's Sui address.
input_coins
List of Coin<SUI> object IDs to use, including the one used for gas.
recipient
The recipient's Sui address.
gas_budget
The gas budget for the transaction.
Response
Unsigned transaction that transfers all SUI.
txBytes
Base64-encoded BCS serialized transaction bytes.
gas
Gas object(s) selected for the transaction.
inputObjects
All objects involved in this transaction (SUI coins).