unsafe_pay

Create an unsigned transaction to send Coin<T> to a list of recipients, where T can be any coin type. The specified gas object must not appear in the input_coins array. If not provided, the node will select one automatically.

⚠ 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<T> object IDs to use for sending value.

recipientslist of stringsRequired

The recipient addresses. Must have the same length as amounts.

amountslist of stringsRequired
The amounts to transfer to each recipient, in the same order.
gas_budgetstringRequired
The gas budget for the transaction.
gasstringOptional

Object ID of the gas coin to use. Must not be in input_coins.

Response

Unsigned transaction for sending Coin<T>.

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 (coins, gas, etc.).