Skip to main content

Quick Start

Prerequisites


Installation

From NPM (official release):

npm install -g @hashgraph/stablecoin-npm-cli

From source (local build):

cd stablecoin-studio/apps/cli
npm install

Starting the CLI

npm start                # Direct command line
npm run start:wizard # Interactive wizard

Configuration

On first run, the wizard creates a configuration file automatically. To configure manually:

cp hsca-config.sample.yaml hsca-config.yaml

Key Settings

SettingDescription
defaultNetworktestnet, previewnet, or mainnet
accountsList of operator accounts with keys and type
mirrorsMirror node URLs (at least one required)
rpcsRPC node URLs (at least one required)
factoriesFactory contract IDs per network
resolversResolver contract IDs per network
backend.endpointBackend URL (optional, for multi-sig)
logs.levelERROR, WARN, INFO, DEBUG, or TRACE

Account Configuration

Each account entry requires:

  • accountId: Hedera Account ID (e.g., 0.0.12345)
  • type: SELF-CUSTODIAL, FIREBLOCKS, DFNS, AWS-KMS, or MULTI-SIGNATURE
  • network: Network this account belongs to
  • alias: Friendly name

For self-custodial accounts, provide privateKey.key and privateKey.type (ED25519 or ECDSA).

Important: For testing, use a Testnet account. Mainnet operations incur real HBAR costs.