Move.

Post

Share your knowledge.

andreweth..
Feb 13, 2025
Discussion

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
1
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.

1
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.

0
Comments
.

Do you know the answer?

Please log in and share it.

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