unsafe_publish

Creates an unsigned transaction that publishes a Move module package to the Sui blockchain. The transaction includes the compiled module bytecode, a list of dependency addresses, and gas settings.

⚠ This endpoint is only available with Blast access.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
senderstringRequired
The transaction signer's Sui address.
compiled_moduleslist of stringsRequired

List of compiled Move module byte arrays (base64-encoded).

dependencieslist of stringsRequired
List of object IDs for all transitive Move dependencies.
gas_budgetstringRequired
Maximum gas budget allowed for the transaction.
gasstringOptional

Object ID of the gas coin to use. Auto-selected if omitted.

Response

Unsigned transaction containing the Move package publish operation.
txBytesstring or null

BCS-serialized unsigned transaction, base64-encoded.

gasobject or null
The gas object used for this transaction.
inputObjectslist of objects or null

All input objects used in the transaction (e.g., gas coin).