Move.

Post

Share your knowledge.

Santorini.
Jan 24, 2025
Expert Q&A

How to interact with onchain modules lacking source code?

I'm trying to call an onchain module without its repository or source code using my own module. I attempted to add the address in move.toml, but my build fails. Is there a workaround?

  • Move Script
2
1
Share
Comments
.

Answers

1
Britain.
Jan 25 2025, 16:56

Currently, directly calling an onchain module without its source code isn't feasible. One approach is to use a remote or local dependency. You need to get the source code of the required module—a task that some explorers can help with using a decompiler, although it may not always be 100% accurate. Once you have the source code, copy it locally so that your package can reference it. For more details, you can look into the dependencies section of the Move book here.

1
Best Answer
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