Skip to content
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

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringrequired

The transaction signer's Sui address.

string[]required

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

string[]required

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

string[]required

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

stringoptional

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

stringrequired

The gas budget for the transaction.

Responses

200

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

Was this page helpful?