Skip to content
Alchemy Logo

unsafe_publish

POST
/{apiKey}

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-demo

For 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?