Skip to content
Alchemy Logo

unsafe_payAllSui

POST
/{apiKey}

Creates an unsigned transaction that transfers all SUI coins to one recipient. All SUI from the input coins are consolidated into the first coin, which is then transferred and used as the gas object. Remaining input coins are deleted.

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<SUI> object IDs to use, including the one used for gas.

stringrequired

The recipient's Sui address.

stringrequired

The gas budget for the transaction.

Responses

200

Unsigned transaction that transfers all SUI.

Was this page helpful?