Skip to main content

hardkas silver

hardkas silver doctor​

Synopsis (Generated)​

Purpose: Report whether the pinned toolchains and the canonical node are ready

Options​

  • --json (Default: false): Output as JSON

hardkas silver compile​

Synopsis (Generated)​

Purpose: Compile SilverScript with the managed silverc v1.0.0 and record its provenance

Arguments​

  • <source> (Required):

Options​

  • --args <file>: Constructor arguments: JSON list of {kind, value}
  • --out <file>: Record path (default .hardkas/artifacts/silver/)
  • --json (Default: false): Output as JSON

hardkas silver inspect​

Synopsis (Generated)​

Purpose: Show a SilverScript v1 compile record

Arguments​

  • <record> (Required):

Options​

  • --json (Default: false): Output as JSON

hardkas silver verify​

Synopsis (Generated)​

Purpose: Reproduce a compile record with the managed silverc (byte-for-byte)

Arguments​

  • <record> (Required):

Options​

  • --args <file>: The constructor arguments the record was compiled with
  • --json (Default: false): Output as JSON

hardkas silver test​

Synopsis (Generated)​

Purpose: Run a compiled contract's tests on the official SilverScript runner experimental (script engine on scenario transactions; not transaction validity)

Arguments​

  • <record> (Required):

Options​

  • --tests &lt;file&gt;: Runner test file (.test.json); a sig argument may be {"signature":"<account>"}
  • --args &lt;file&gt;: The constructor arguments the record was compiled with
  • --contract &lt;name&gt;: Contract, when the artifact has several
  • --runner &lt;path&gt;: SilverScript runner (cli-debugger) binary (default: $HARDKAS_SILVER_RUNNER)
  • --out &lt;file&gt;: Record path (default .hardkas/artifacts/silver-vm/)
  • --json (Default: false): Output as JSON

hardkas silver deploy​

Synopsis (Generated)​

Purpose: Fund a compiled contract's P2SH output on the canonical localnet

Arguments​

  • &lt;record&gt; (Required):

Options​

  • --from &lt;account&gt;: Funding account (local key)
  • --amount &lt;kas&gt;: Value locked in the contract
  • --contract &lt;name&gt;: Contract, when the artifact has several
  • --network &lt;network&gt; (Default: simnet): Network
  • --wait (Default: false): Wait for confirmation
  • --timeout &lt;seconds&gt; (Default: 120): Confirmation timeout
  • --json (Default: false): Output as JSON

hardkas silver spend​

Synopsis (Generated)​

Purpose: Spend a deployed contract output through one of its entries

Arguments​

  • &lt;deploy-record&gt; (Required):

Options​

  • --entry &lt;name&gt;: Entry to call
  • --to &lt;address&gt;: Recipient of the whole value (minus the fee)
  • --args &lt;file&gt;: Entry arguments: JSON list of {kind, value} and {"kind":"signature","account":"<name>"}
  • --sequence &lt;n&gt;: Input sequence (relative locks)
  • --sig-op-count &lt;n&gt;: Declared signature operations (default: the signature arguments, at least 1)
  • --wait (Default: false): Wait for confirmation
  • --timeout &lt;seconds&gt; (Default: 120): Confirmation timeout
  • --json (Default: false): Output as JSON

hardkas silver covenant genesis​

Synopsis (Generated)​

Purpose: Create a covenant: bind a new output to the covenant id the SDK derives

Arguments​

  • &lt;record&gt; (Required):

Options​

  • --from &lt;account&gt;: Funding account (local key)
  • --amount &lt;kas&gt;: Value locked in the covenant
  • --compute-budget &lt;n&gt;: Compute budget of the funding input (explicit: no estimator exists)
  • --fee &lt;sompi&gt;: Explicit fee (required when --compute-budget > 0: the SDK does not price v1 budgets)
  • --contract &lt;name&gt;: Contract, when the artifact has several
  • --wait (Default: false): Wait for confirmation and the node's covenant id
  • --timeout &lt;seconds&gt; (Default: 120): Confirmation timeout
  • --json (Default: false): Output as JSON

hardkas silver covenant transition​

Synopsis (Generated)​

Purpose: Advance a 1:1 auth-bound covenant: successor state compiled by silverc, same covenant id

Arguments​

  • &lt;covenant-record&gt; (Required):

Options​

  • --policy &lt;name&gt;: Covenant declaration (policy function) to call
  • --constructor-args &lt;file&gt;: Constructor arguments of the current state (checked against the record)
  • --state-map &lt;json&gt;: State field -> constructor parameter index, e.g. {"value":0}
  • --next-state &lt;file&gt;: Successor state: JSON object of {kind, value} per field
  • --compute-budget &lt;n&gt;: Compute budget of the covenant input (explicit: no estimator exists)
  • --args &lt;file&gt;: Entry arguments: JSON list of {kind, value}
  • --fee &lt;sompi&gt;: Explicit fee (required when --compute-budget > 0)
  • --emit-args &lt;file&gt;: Write the successor's constructor arguments here (for the next transition)
  • --wait (Default: false): Wait for confirmation and check the lineage
  • --timeout &lt;seconds&gt; (Default: 120): Confirmation timeout
  • --json (Default: false): Output as JSON