unsafe_payAllSui

Send all SUI coins to one recipient. This is for SUI coin only and does not require a separate gas coin object. Specifically, what pay_all_sui does are: 1. accumulate all SUI from input coins and deposit all SUI to the first input coin 2. transfer the updated first coin to the recipient and also use this first coin as gas coin object. 3. the balance of the first input coin after tx is sum(input_coins) - actual_gas_cost. 4. all other input coins other than the first are deleted.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Defaults to public
Body Params
int32
required
Defaults to 1
string
required
Defaults to 2.0
string
required
Defaults to unsafe_payAllSui
params
array
required
length between 4 and 4
Defaults to
params*
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!