Alchemy Logo

unsafe_pay

POST
/{apiKey}

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.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

signerstringrequired

The transaction signer's Sui address.

input_coinsstring[]required

List of Coin<T> object IDs to use for sending value.

recipientsstring[]required

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

amountsstring[]required

The amounts to transfer to each recipient, in the same order.

gasstringoptional

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

gas_budgetstringrequired

The gas budget for the transaction.

Responses

200

Unsigned transaction for sending Coin&lt;T&gt;.

Was this page helpful?