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
apiKeystringrequireddefaults to docs-demoFor higher throughput, create your own API key
Request
signerstringrequiredThe transaction signer's Sui address.
input_coinsstring[]requiredList of Coin<SUI> object IDs to use, including the one used for gas.
recipientsstring[]requiredList of recipient Sui addresses.
amountsstring[]requiredList of amounts (same order as recipients).
gas_budgetstringrequiredThe gas budget for the transaction.
Responses
200
Unsigned transaction that transfers SUI to recipients.
Was this page helpful?