Move.

Post

Share your knowledge.

mssoni.
Mar 28, 2025
Discussion

How can I create enums using Sui TypeScript SDK?

I've been trying to work with enums in the Sui TypeScript SDK, as I want to pass an enum type into my PTB command. Does anyone know how I can achieve this in Sui TS SDK?

  • Move CLI
1
1
Share
Comments
.

Answers

1
Dominikus .
Mar 29 2025, 03:43

Check this documentation, it might help you: https://sdk.mystenlabs.com/typescript/migrations/sui-1.0#enums

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