Skip to main content

hardkas accounts

hardkas accounts list​

Synopsis (Generated)​

Purpose: List available HardKAS accounts stable

Options​

  • --config <path>: Path to config file
  • --json (Default: false): Output as JSON

hardkas accounts real init​

Synopsis (Generated)​

Purpose: Initialize real dev account store stable

Options​

  • --force (Default: false): Overwrite existing store
  • --wait-lock (Default: false): Wait for workspace lock if held
  • --lock-timeout <ms> (Default: 30000): Lock wait timeout in ms
  • --json (Default: false): Output as JSON

hardkas accounts real import​

Synopsis (Generated)​

Purpose: Import an account into the persistent store stable

Options​

  • --name <name>: Account name: letters, digits, _ and - (default: default)
  • --address <address>: Kaspa address
  • --private-key <hex>: Deprecated. Unsafe: may leak through shell history. Prefer --private-key-stdin or --private-key-env.
  • --private-key-stdin (Default: false): Read private key from stdin
  • --private-key-env <env>: Read private key from environment variable
  • --password-stdin (Default: false): Read keystore password from stdin (safe)
  • --password-env <env>: Read keystore password from environment variable (safe)
  • --unsafe-plaintext (Default: false): Store private key in plaintext (legacy/discouraged)
  • --fixture <name>: Import deterministic fixture test account
  • --yes (Default: false): Skip confirmation for unsafe operations
  • --wait-lock (Default: false): Wait for workspace lock if held
  • --lock-timeout <ms> (Default: 30000): Lock wait timeout in ms
  • --json (Default: false): Output as JSON

hardkas accounts real session-open​

Synopsis (Generated)​

Purpose: Check that an account's encrypted keystore opens with its password; nothing is recorded internal

Aliases: unlock

Arguments​

  • <name> (Required):

Options​

  • --password-stdin (Default: false): Read password from stdin
  • --password-env <env>: Read password from environment variable
  • --wait-lock (Default: false): Wait for workspace lock if held
  • --lock-timeout <ms> (Default: 30000): Lock wait timeout in ms

hardkas accounts real session-close​

Synopsis (Generated)​

Purpose: Clear the local dev signing session marker internal

Aliases: lock

Arguments​

  • <name> (Required):

hardkas accounts real change-password​

Synopsis (Generated)​

Purpose: Change password for an encrypted account stable

Arguments​

  • <name> (Required):

Options​

  • --wait-lock (Default: false): Wait for workspace lock if held
  • --lock-timeout <ms> (Default: 30000): Lock wait timeout in ms

hardkas accounts real generate​

Synopsis (Generated)​

Purpose: Generate new real dev account(s) using Kaspa SDK stable

Options​

  • --name <name>: Base name for account(s)
  • --count <number> (Default: 1): Number of accounts to generate
  • --network <network> (Default: simnet): Kaspa network (simnet, testnet-10, mainnet)
  • --password-stdin (Default: false): Read keystore password from stdin
  • --password-env <env>: Read password from environment variable
  • --unsafe-plaintext (Default: false): Generate accounts in plaintext (legacy/discouraged)
  • --yes (Default: false): Skip confirmation for unsafe operations
  • --wait-lock (Default: false): Wait for workspace lock if held
  • --lock-timeout <ms> (Default: 30000): Lock wait timeout in ms
  • --json (Default: false): Output as JSON

hardkas accounts balance​

Synopsis (Generated)​

Purpose: Show account balance stable

Arguments​

  • <identifier> (Required):

Options​

  • --network <name>: Kaspa network name (default: the workspace's default target)
  • --provider <type> (Default: auto): Provider mode (auto, rpc, simulated)
  • --url <url>: RPC URL (optional override)
  • --local (Default: false): Read the simulator state file (.hardkas/localnet.json) instead of a node
  • --json (Default: false): Output as JSON

hardkas accounts fund​

Synopsis (Generated)​

Purpose: Fund an account (Faucet) - DEPRECATED

Arguments​

  • <identifier> (Required):

Options​

  • --amount <kas> (Default: 1000): Amount in KAS to fund

hardkas accounts consolidate​

Synopsis (Generated)​

Purpose: Consolidate dust UTXOs into a single UTXO alpha

Arguments​

  • <account> (Required):

Options​

  • --network <name>: Kaspa network name
  • --provider <type> (Default: auto): Provider mode (auto, rpc, simulated)
  • --url <url>: RPC URL (optional override)
  • --target-utxos <n> (Default: 20): Target number of UTXOs to leave behind
  • --batch-size <n> (Default: 256): Number of UTXOs to consolidate per batch (max 512)
  • --min-utxo <sompi>: Minimum UTXO size to consolidate in sompi
  • --dry-run: Only estimate batches (default if --execute is not provided)
  • --execute: Execute the consolidation (requires --yes to broadcast)
  • --yes: Confirm broadcast for execution
  • --allow-mainnet: No effect: executing on mainnet stays refused in this release (MAINNET_BROADCAST_DISABLED)
  • --json (Default: false): Output as JSON