Skip to content

dhiway/cord-demo-scripts

Repository files navigation

Cord transaction anchoring scripts (for demonstration purposes)

Requirements

  • You are expected to have docker available to run the cord.network locally with developer mode.
  • Have yarn installed and ready.
  • Any web browser (which supports javascript) to check transactions on the CORD Chain.

How to run the demo code (with staging network)

How to run the demo code (with local node)

How to run the demo code with DOCKER

  • Step 1: checkout/clone this repository.

  • Step 2: build image locally

sudo docker build -t <docker-image-name> .
  • Step 3: run docker image

i) Run demo on sparknet node

sudo docker run <docker-image-name> src/func-test.ts

ii) Run demo on custom node

sudo docker run --env NETWORK_ADDRESS='<network-address>' --env ANCHOR_URI='<anchor-uri>' <docker-image-name> src/func-test.ts

Example : sudo docker run --env NETWORK_ADDRESS='ws://host.docker.internal:9944' --env ANCHOR_URI='//Alice' <docker-image-name> src/func-test.ts

  • Here values of NETWORK_ADDRESS and ANCHOR_URI can be changed according to your use case.

What next from here?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published