unsafe_publish
Deprecation notice
Action required: Support for Sui JSON-RPC will end on September 25, 2026. Please migrate to Sui gRPC before then to avoid disruption. You can find our migration guide here.
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.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
stringrequired
The transaction signer's Sui address.
string[]required
List of compiled Move module byte arrays (base64-encoded).
string[]required
List of object IDs for all transitive Move dependencies.
stringoptional
Object ID of the gas coin to use. Auto-selected if omitted.
stringrequired
Maximum gas budget allowed for the transaction.
Responses
200
Unsigned transaction containing the Move package publish operation.
Was this page helpful?