Bài viết
Chia sẻ kiến thức của bạn.

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:
-
Install Sui CLI and check version: curl -s https://get.sui.io | sh sui --version
-
Create a new Move package: sui move new hello_sui
-
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); }
}
-
Build and deploy: sui move build sui client publish --gas-budget 10000
-
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
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
Kiếm phần của bạn từ 1000 Sui
Tích lũy điểm danh tiếng và nhận phần thưởng khi giúp cộng đồng Sui phát triển.

- Tại sao BCS yêu cầu thứ tự trường chính xác để khử chuỗi khi cấu trúc Move có các trường được đặt tên?65
- Nhiều lỗi xác minh nguồn” trong các ấn phẩm về mô-đun Sui Move - Giải quyết lỗi tự động55
- Giao dịch Sui thất bại: Đối tượng được dành riêng cho giao dịch khác49
- Cách tối đa hóa lợi nhuận nắm giữ SUI: Sui Staking vs Liquid Staking313
- Lỗi Sui Move - Không thể xử lý giao dịch Không tìm thấy đồng xu gas hợp lệ cho giao dịch315