HardKAS documentation
HardKAS is an open-source, local-first development framework for Kaspa L1: a CLI and
a TypeScript SDK to plan, send and verify transactions and SilverScript contracts on
your own simnet node. It plans, signs, sends, observes and verifies transactions as files you can check
afterwards (artifacts), on a simulated ledger, on a rusty-kaspad simnet node of
your own, or on testnet-10 behind an explicit opt-in.
Mainnet is locked down: no keys, no connection, no broadcast. HardKAS verifies a mainnet artifact offline only, and no flag or setting changes that.
Why it is built this way
Sending a transaction straight to a node and hoping it lands
(request → mutation → hope) leaves little to check when something goes wrong.
HardKAS splits the lifecycle into steps, and each step writes an artifact with a
content hash and a link to the step before it
(intent → artifact → verify → execute → replay):
hardkas tx planbuilds the transaction with the officialkaspa-wasmGenerator and writes a plan. No key is used.hardkas artifact inspectandhardkas artifact verifycheck the plan before any key touches it.hardkas tx signwrites a signed transaction linked to its plan.hardkas tx sendexecutes it: the simulated ledger writes aTxReceipt; a node send writes aTxSubmission, what the node answered at that instant.hardkas tx waitandhardkas tx statusderive the state from what the node was seen to do,hardkas artifact verify --networkchecks the artifact against the node, andhardkas replay verifyreplays a simulated run.
What HardKAS is, and is not
It is:
- A CLI (
@hardkas/cli) and a TypeScript SDK (@hardkas/sdk) that work on the same workspace: ahardkas.config.tsand a.hardkas/folder. - An artifact store: plans, signed transactions, receipts, submissions and observations, each identified by its content hash, with its lineage.
- Three places to run the same lifecycle: the simulated ledger (no node, never
network evidence), a simnet node in Docker (
rusty-kaspadv2.1.0, pinned by digest), and testnet-10 for teams that hold test funds (experimental). - SilverScript (the pinned
silvercv1.0.0) and Toccata covenants on a node, plus experimental ZK and KCC-20 tools. - Test helpers for vitest (
@hardkas/testing).
It is not:
- A Kaspa node. It implements no consensus: the node decides whether a transaction is valid.
- A wallet or custody software. Its keys are development keys.
- A bridge. It makes no deposits, withdrawals or custody, trustless or otherwise.
- Evidence when simulated. The simulated ledger runs no Kaspa script; only a real node's answer counts.
The claim values of this release are generated from the code: Release Claims.
Install
- Install HardKAS: Node.js 24.22.1, the packages,
hardkas init,hardkas doctor. - Configuration: what
hardkas.config.tsdeclares.
Getting started
- 5-Minute Quickstart: plan, sign and send on the simulated ledger, CLI and SDK. No Docker.
- Your first transaction: what each step does, proves and does not prove.
- Build on your own simnet: the real-node path, in order: Run your own simnet node → Quickstart: a real transaction → SilverScript and covenants → Reading receipts and verification levels → What works in this release → Common errors and recovery.
- Kaspa Testnet-10 (experimental): the opt-in, an account, funding and a send on the public testnet.
- Browser wallets (experimental).
- The book chapters: Install and init and Your first scenario.
Guides
- CLI guide and SDK guide.
- Testing: Your first test, Tasks and Testing Kaspa covenants.
- Accounts and transactions: Accounts, Plan, sign, send and observe and Fees, mass and UTXOs.
- SilverScript and Toccata covenants, the SilverScript IDE and ZK verification on L1.
- Evidence: Artifact auditing, Replay verification and the query store.
- Runtime and Docker, Debugging and Operator commands.
- Hardhat for Kaspa: coming from Ethereum tooling.
- Build on Kaspa with AI: for coding agents.
- HardKAS IDE: the desktop app.
Concepts
- HardKAS vs kaspa-wasm or your own test harness: when HardKAS saves work, and when not
- Transaction lifecycle
- Execution worlds
- Artifact lifecycle: identity, lineage and what evidence proves
- Accounts and wallets
- Correct vs incorrect flows
- Security model
Reference
- CLI reference: generated from the command tree; do not edit it by hand.
- SDK
- Artifact schema
- Errors: every code, its cause and its recovery
- KCC-1, KCC-2 and KCC-20
Help
Status and versions
- Release Claims (generated): authoritative.
pnpm docs:check-claimsfails when the committed copy drifts from the code. - What works in this release: the same claims, by feature, with where each was checked against a real node.
- Versioning: the published packages and what is stable.
- Migrating from 0.12 to 0.13.
docs/internal/ holds audit records kept locally; it is not user documentation.