unsafe_paySui

Creates an unsigned transaction that sends SUI to multiple recipients. The transaction uses SUI coins for both transfer and gas without requiring a separate gas object. 1. Debits each input coin to create new coins for recipients. 2. Consolidates residual SUI into the first coin, which becomes the gas coin. 3. Updates the first coin balance to: total_input - total_output - gas_cost. 4. Deletes all other input coins.

⚠ 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.

recipientslist of stringsRequired
List of recipient Sui addresses.
amountslist of stringsRequired

List of amounts (same order as recipients).

gas_budgetstringRequired
The gas budget for the transaction.

Response

Unsigned transaction that transfers SUI to recipients.
txBytesstring or null

Base64-encoded BCS serialized transaction bytes.

gaslist of objects or null
Gas object used for the transaction.
inputObjectslist of objects or null
All input SUI coin objects involved.