publish
suspend fun publish(sender: SuiAddress, compiledModules: List<String>, dependencies: List<ObjectId>, gas: ObjectId? = null, gasBudget: Long): TransactionBlockBytes
Create an unsigned transaction to publish a Move package.
Return
TransactionBlockBytes The transaction block bytes after the publishing is completed.
Parameters
sender
The transaction signer's Sui address.
compiled Modules
The compiled bytes of a Move package.
dependencies
The list of transitive dependency addresses that this set of modules depends on.
gas
The gas object to be used in this transaction, node will pick one from the signer's possession if not provided.
gas Budget
The gas budget, the transaction will fail if the gas cost exceed the budget.
Throws
if there is an error during the publishing process.