Move.

Post

Share your knowledge.

andreweth..
Feb 13, 2025
Expert Q&A

How to publish a package using JavaScript code?

I've been wondering if I can publish a package directly from my JavaScript code. I've heard about using tx.publish to do it. Can someone explain how it works or provide any links for guidance?

  • Move Bug
2
2
Share
Comments
.

Answers

2
Forever_A-gator.
Feb 13 2025, 14:40

You can find the specific documentation and guidance on how to use tx.publish in the SDK provided by Mysten Labs here: Mysten Labs SDK Link. This link covers the basics of transaction building, including publishing packages.

3
Best Answer
Comments
.
Elvin CLONE .
Feb 13 2025, 20:13

Yes, you can publish a package using JavaScript by utilizing the tx.publish function. This function allows you to publish a Move package by passing in the necessary modules and dependencies. It returns the upgrade capability object, which can be helpful for further actions.

1
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info