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
apiKey
Request
This endpoint expects an object.
sender
The transaction signer's Sui address.
compiled_modules
List of compiled Move module byte arrays (base64-encoded).
dependencies
List of object IDs for all transitive Move dependencies.
gas_budget
Maximum gas budget allowed for the transaction.
gas
Object ID of the gas coin to use. Auto-selected if omitted.
Response
Unsigned transaction containing the Move package publish operation.
txBytes
BCS-serialized unsigned transaction, base64-encoded.
gas
The gas object used for this transaction.
inputObjects
All input objects used in the transaction (e.g., gas coin).