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

apiKeystringRequired

Request

This endpoint expects an object.
signerstringRequired
The transaction signer's Sui address.
input_coinslist of stringsRequired

List of Coin<SUI> object IDs to use, including the one used for gas.

recipientstringRequired
The recipient's Sui address.
gas_budgetstringRequired
The gas budget for the transaction.

Response

Unsigned transaction that transfers all SUI.
txBytesstring or null

Base64-encoded BCS serialized transaction bytes.

gaslist of objects or null

Gas object(s) selected for the transaction.

inputObjectslist of objects or null

All objects involved in this transaction (SUI coins).