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
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.
recipients
List of recipient Sui addresses.
amounts
List of amounts (same order as recipients).
gas_budget
The gas budget for the transaction.
Response
Unsigned transaction that transfers SUI to recipients.
txBytes
Base64-encoded BCS serialized transaction bytes.
gas
Gas object used for the transaction.
inputObjects
All input SUI coin objects involved.