Sui.

Post

Share your knowledge.

24p30p.
Jul 14, 2025
Expert Q&A

Are there TypeScript bindings for Move?

Is there a way to auto-generate TypeScript types or interfaces from my Move modules to simplify frontend integration?

  • Sui
0
1
Share
Comments
.

Answers

1
Opiiii.
Jul 14 2025, 13:21

Yes, you can generate TypeScript bindings for your Move modules using Sui’s developer tooling. This allows you to simplify how your frontend interacts with your smart contracts by having pre-defined types, function signatures, and object schemas in TypeScript. You do this by using the sui move generate-typescript command, which takes your compiled Move modules (from .mv files) and converts them into usable TypeScript classes and interfaces. This helps reduce manual coding errors and gives you autocompletion when calling entry functions or accessing object fields in tools like VS Code.

After compiling your Move package with sui move build, run the generator like this:

sui move generate-typescript --path <your_move_package> --output <ts_output_folder>

This will output structured types based on the module layouts. You can then import those types into your React or Node frontend for a smoother integration with the Sui blockchain.

🔗 Read more on generating TypeScript bindings for Move

0
Best Answer
Comments
.

Do you know the answer?

Please log in and share it.

Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.

420Posts611Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

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

Reward CampaignJuly