unsafe_paySui
POST
/{apiKey}
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.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
stringrequired
The transaction signer's Sui address.
string[]required
List of Coin<SUI> object IDs to use, including the one used for gas.
string[]required
List of recipient Sui addresses.
string[]required
List of amounts (same order as recipients).
stringrequired
The gas budget for the transaction.
Responses
200
Unsigned transaction that transfers SUI to recipients.
Was this page helpful?