publishPackageTransaction

open suspend override fun publishPackageTransaction(account: AccountAddressInput, metadataBytes: HexInput, moduleBytecode: List<HexInput>, options: InputGenerateTransactionOptions): SimpleTransaction

Builds a transaction to publish a new Move package.

Return

A SimpleTransaction object ready to be signed and submitted.

Parameters

account

The address of the publishing account.

metadataBytes

The serialized package metadata.

moduleBytecode

A list of serialized bytecodes for each module in the package.

options

Optional configuration for the transaction.