sui-local-dev-usdc

Installation
SKILL.md

Sui Local Dev Network with USDC

Set up a local Sui validator network, deploy a mock USDC coin (6 decimals, matching Circle's native USDC on Sui), and fund developer addresses with both SUI and USDC for local testing.

Prerequisites

  • Sui CLI installed (sui --version). Install or manage versions with suiup (https://github.com/MystenLabs/suiup).
  • No existing ~/.sui/sui_config conflicts — --force-regenesis wipes state between runs.

How It Works

  1. Start local network — sui start --with-faucet --force-regenesis spins up a local validator, fullnode, and faucet.
  2. Create Move package — sui move new usdc scaffolds a coin package with a USDC one-time witness.
  3. Publish USDC coin — sui client publish deploys the package; the init function creates TreasuryCap<USDC> and CoinMetadata<USDC>, then mints an initial supply to the publisher.
  4. Request faucet SUI — sui client faucet funds the active address with free SUI for gas.
  5. Mint more USDC — sui client call --function mint uses the TreasuryCap to mint additional USDC to any address.

Usage

Installs
7
Repository
avbel/ai-skills
GitHub Stars
2
First Seen
Sep 19, 2026