A Sui Move smart contract for TEE (Trusted Execution Environment) access control and encrypted file management.
-
Install Sui CLI
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch mainnet sui
-
Import Your Wallet (with SUI tokens)
sui client import [YOUR_PRIVATE_KEY] ed25519
-
Configure Networks
# Add testnet sui client new-env --alias testnet --rpc https://fullnode.testnet.sui.io:443 # Add mainnet sui client new-env --alias mainnet --rpc https://fullnode.mainnet.sui.io:443
-
Switch to testnet and get test tokens
sui client switch --env testnet sui client faucet
-
Deploy contract
cd contract sui move build sui client publish --gas-budget 100000000 -
Save the Package ID from the deployment output
-
Switch to mainnet and verify balance
sui client switch --env mainnet sui client balance # Ensure you have sufficient SUI -
Deploy contract
cd contract sui move build sui client publish --gas-budget 100000000 -
Save the Package ID from the deployment output
- Check deployment: Visit Sui Explorer and search for your Package ID
- Testnet Explorer: https://suiexplorer.com/?network=testnet
- Mainnet Explorer: https://suiexplorer.com/?network=mainnet
- Insufficient gas: Reduce gas budget (e.g.,
--gas-budget 50000000) - No funds: Import wallet with SUI tokens or use
sui client fauceton testnet - Check active wallet:
sui client active-address && sui client balance