Sui.

Publicación

Comparte tu conocimiento.

article banner.
acher.
acher1018
Aug 26, 2025
Artículo

Getting Started with Sui: Your First Smart Contract

When you start building on Sui, the first thing you’ll notice is how different it feels from EVM-based chains like Ethereum. Instead of a global state, Sui works with objects — and these objects can represent tokens, NFTs, accounts, or even entire applications. Your smart contracts are written in Move, a language designed for safety and asset management.

Steps:

  1. Install Sui CLI and check version: curl -s https://get.sui.io | sh sui --version

  2. Create a new Move package: sui move new hello_sui

  3. Example contract: module hello_sui::hello { use sui::tx_context;

    public entry fun say_hello(name: vector<u8>, ctx: &mut tx_context::TxContext) {
        tx_context::log_utf8(ctx, name);
    }
    

    }

  4. Build and deploy: sui move build sui client publish --gas-budget 10000

  5. Call function: sui client call --function say_hello --module hello --package <PACKAGE_ID> --args "Hello Sui!"

Pro Tip: Start small, test your publishing pipeline, then build more complex apps.

  • Sui
  • NFT Ecosystem
  • Move
2
Cuota
Comentarios
.

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

1166Publicaciones3581Respuestas
Sui.X.Peera.

Gana tu parte de 1000 Sui

Gana puntos de reputación y obtén recompensas por ayudar a crecer a la comunidad de Sui.

Campaña de RecompensasAgosto