univera-js-sample/README.md

697 B

u-js-sample

A minimal network and custom-token sample using universa-core2@2.0.0-alpha.1.

Initialize and test

npm ci
scripts/test-network.sh

The test:

  1. Loads src/universa.json and the network-specific whitelisted client key.
  2. Initializes Network, connects, and asserts that it returns sping=spong.
  3. Creates and signs a simple SAMPLE token contract with split/join and change-owner permissions.
  4. Packs the contract into a TransactionPack, registers it without a fee, and asserts that its final network state is APPROVED.

The bundled client key is intended only for this test network. The alpha package intentionally has no bundled default topology.