unsafe_pay
Transaction Builder API
Send Coin<T>
to a list of addresses, where T
can be any coin type, following a list of amounts, The object specified in the gas
field will be used to pay the gas fee for the transaction. The gas object can not appear in input_coins
. If the gas object is not specified, the RPC server will auto-select one.
Parameters
signer
:<SuiAddress>
- the transaction signer's Sui addressinput_coins
:<[ObjectID]>
- the Sui coins to be used in this transactionrecipients
:<[SuiAddress]>
- the recipients' addresses, the length of this vector must be the same as amounts.amounts
:<[BigInt_for_uint64]>
- the amounts to be transferred to recipients, following the same ordergas
:<ObjectID>
- gas object to be used in this transaction, node will pick one from the signer's possession if not providedgas_budget
:<BigInt_for_uint64>
- the gas budget, the transaction will fail if the gas cost exceed the budget
Returns
TransactionBytes
:<TransactionBytes>
gas :
<[ObjectRef]>
- the gas object to be usedinputObjects :
<[InputObjectKind]>
- objects to be used in this transactiontxBytes :
<[Base64]>
- BCS serialized transaction data bytes without its type tag, as base-64 encoded string.
Example Request and Result for sui_pay
Request
Result
Last updated