unsafe namespace.
Transfer Methods
transferObject
Creates an unsigned transaction to transfer an object from one address to another. The object’s type must allow public transfers.The transaction signer’s Sui address
The ID of the object to be transferred
Gas object to be used in this transaction. Node will pick one from the signer’s possession if not provided
The gas budget. The transaction will fail if the gas cost exceeds the budget
The recipient’s Sui address
The unsigned transaction bytes
transferSui
Creates an unsigned transaction to send SUI coin object to a Sui address. The SUI object is also used as the gas object.The transaction signer’s Sui address
The Sui coin object to be used in this transaction
The gas budget. The transaction will fail if the gas cost exceeds the budget
The recipient’s Sui address
The amount to be split out and transferred
The unsigned transaction bytes
Payment Methods
pay
SendsCoin<T> to a list of addresses, where T can be any coin type, following a list of amounts.
The transaction signer’s Sui address
The Sui coins to be used in this transaction
The recipients’ addresses (length must match amounts)
The amounts to be transferred to recipients, following the same order
Gas object to be used. Cannot appear in
input_coins. Node will pick one if not providedThe gas budget
The unsigned transaction bytes
paySui
Sends SUI coins to a list of addresses, following a list of amounts. This is for SUI coin only and does not require a separate gas coin object.The first input coin is used as the gas coin. Its balance after the transaction is:
sum(input_coins) - sum(amounts) - actual_gas_costThe transaction signer’s Sui address
The Sui coins to be used, including the coin for gas payment
The recipients’ addresses (length must match amounts)
The amounts to be transferred to recipients
The gas budget
The unsigned transaction bytes
payAllSui
Sends all SUI coins to one recipient. This is for SUI coin only and does not require a separate gas coin.The transaction signer’s Sui address
The Sui coins to be used, including the coin for gas payment
The recipient address
The gas budget
The unsigned transaction bytes
Move Call Methods
moveCall
Creates an unsigned transaction to execute a Move call on the network.The transaction signer’s Sui address
The Move package ID (e.g.,
0x2)The Move module name (e.g.,
pay)The Move function name (e.g.,
split)The type arguments of the Move function
The arguments to be passed into the Move function, in SuiJson format
Gas object to be used. Node will pick one if not provided
The gas budget
Whether this is a Normal transaction or Dev Inspect. Defaults to
CommitThe unsigned transaction bytes
publish
Creates an unsigned transaction to publish a Move package.The transaction signer’s Sui address
The compiled bytes of a Move package
A list of transitive dependency addresses that this set of modules depends on
Gas object to be used. Node will pick one if not provided
The gas budget
The unsigned transaction bytes
Coin Operations
splitCoin
Creates an unsigned transaction to split a coin object into multiple coins.The transaction signer’s Sui address
The coin object to be split
The amounts to split out from the coin
Gas object to be used
The gas budget
The unsigned transaction bytes
splitCoinEqual
Creates an unsigned transaction to split a coin object into multiple equal-size coins.The transaction signer’s Sui address
The coin object to be split
The number of coins to split into
Gas object to be used
The gas budget
The unsigned transaction bytes
mergeCoins
Creates an unsigned transaction to merge multiple coins into one coin.The transaction signer’s Sui address
The coin object to merge into (remains after transaction)
The coin object to be merged (destroyed, balance added to primary_coin)
Gas object to be used
The gas budget
The unsigned transaction bytes
Staking Operations
requestAddStake
Adds stake to a validator’s staking pool using multiple coins and amount.The transaction signer’s Sui address
Coin objects (SUI) to stake
Stake amount
The validator’s Sui address
Gas object to be used
The gas budget
The unsigned transaction bytes
requestWithdrawStake
Withdraws stake from a validator’s staking pool.The transaction signer’s Sui address
StakedSui object ID
Gas object to be used
The gas budget
The unsigned transaction bytes
Batch Transactions
batchTransaction
Creates an unsigned batched transaction.The transaction signer’s Sui address
List of transaction request parameters
Gas object to be used
The gas budget
Whether this is a regular transaction or Dev Inspect
The unsigned transaction bytes