{"id":37183562,"url":"https://github.com/skycoin/cx-chains","last_synced_at":"2026-01-14T21:12:28.864Z","repository":{"id":53749837,"uuid":"213275956","full_name":"skycoin/cx-chains","owner":"skycoin","description":"Execute CX programs on blockchain. Turing complete blockchain virtual machine.","archived":false,"fork":false,"pushed_at":"2023-02-25T06:59:18.000Z","size":107184,"stargazers_count":12,"open_issues_count":11,"forks_count":10,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-11-22T15:03:56.132Z","etag":null,"topics":["blockchain","blockchain-platform","redecentralize","smart-contracts"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skycoin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-07T01:58:43.000Z","updated_at":"2025-03-25T06:12:00.000Z","dependencies_parsed_at":"2024-06-19T01:42:24.231Z","dependency_job_id":null,"html_url":"https://github.com/skycoin/cx-chains","commit_stats":null,"previous_names":["skycoinproject/cx-chains"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/skycoin/cx-chains","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycoin%2Fcx-chains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycoin%2Fcx-chains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycoin%2Fcx-chains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycoin%2Fcx-chains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skycoin","download_url":"https://codeload.github.com/skycoin/cx-chains/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skycoin%2Fcx-chains/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","blockchain-platform","redecentralize","smart-contracts"],"created_at":"2026-01-14T21:12:28.194Z","updated_at":"2026-01-14T21:12:28.851Z","avatar_url":"https://github.com/skycoin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CX Chain\n\nCX Chain is a fork of [Skycoin](https://github.com/SkycoinProject/skycoin) with the ability to run application-specific blockchains with smart-contracts written with [CX](https://github.com/skycoin/cx).\n\nEach ***CX Chain*** is identified by a genesis hash, which in turn reference a ***CX Chain Spec***. The CX Chain Spec specifies the properties and genesis block of the specific CX Chain.\n\n## Install\n\n### Dependencies\n\nCX Chain requires [Golang](https://golang.org/) to compile (version `1.14+`). Detailed installation instructions can be found here: https://github.com/SkycoinProject/skycoin/blob/develop/INSTALLATION.md\n\n### Build\n\nTo build `cxchain`, the typical Golang binary build process applies. The following command builds `cxchain` and `cxchain-cli` into the target directory specified by the `GOBIN` env.\n\n```bash\n$ git clone git@github.com:skycoin/cx-chains.git \u0026\u0026 cd cx-chains\n$ go install ./cmd/...\n```\n\nThe `go install` command is also available as a `Makefile` target.\n\n```bash\n$ make install\n```\n\n## Run\n\n### Dependencies\n\nYou will need to specify an address of a `cx-tracker` for a `cxchain` instance to function properly. A local `cx-tracker` instance can be installed via [this repository](https://github.com/skycoin/cx-tracker).\n\n### Run a Local CX Chain Environment\n\n*This local environment has two `cxchain` instances and a `cx-tracker`.*\n\nStart `cx-tracker`.\n```bash\n$ cx-tracker -addr \":9091\"\n```\n\nGenerate new chain spec (assuming that the repository root is your working directory).\n```bash\n$ cxchain-cli new ./cx/examples/counter-bc.cx\n```\n\nPost chain spec to `cx-tracker`.\n```bash\n$ export CXCHAIN_SK=$(cxchain-cli key -in skycoin.chain_keys.json -field \"seckey\")\n$ cxchain-cli post -t \"http://127.0.0.1:9091\" -s skycoin.chain_spec.json\n```\n\nAt this point, you can head to [http://127.0.0.1:9091/api/specs](http://127.0.0.1:9091/api/specs) to see whether the spec is posted to `cx-tracker`.\n\nRun publisher node with generated chain spec.\n* Obtain the chain secret key from generated `{coin}.chain_keys.json` file.\n```bash\n$ export CXCHAIN_SK=$(cxchain-cli key -in skycoin.chain_keys.json -field \"seckey\")\n$ export CXCHAIN_HASH=$(cxchain-cli genesis -in skycoin.chain_spec.json)\n$ cxchain -chain \"tracker:$CXCHAIN_HASH\" -tracker \"http://127.0.0.1:9091\" -enable-all-api-sets -data-dir ./master_node -port 6001 -web-interface-port 6421\n```\n\nRun client node with generated chain spec (use different data dir, and ports to publisher node).\n* As no `CXCHAIN_SK` is provided, a random key pair is generated for the node.\n```bash\n$ export CXCHAIN_HASH=$(cxchain-cli genesis -in skycoin.chain_spec.json)\n$ cxchain -chain \"tracker:$CXCHAIN_HASH\" -tracker \"http://127.0.0.1:9091\" -client -enable-all-api-sets -data-dir ./client_node -port 6002 -web-interface-port 6422\n```\n\nRun transaction against publisher node.\n```bash\n$ export CXCHAIN_HASH=$(cxchain-cli genesis -in skycoin.chain_spec.json)\n$ cxchain-cli run -chain \"tracker:$CXCHAIN_HASH\" -tracker \"http://127.0.0.1:9091\" ./cx/examples/counter-tx.cx\n```\n\nRun transaction against client node and inject.\n```bash\n$ export CXCHAIN_GEN_SK=$(cxchain-cli key -in skycoin.genesis_keys.json -field \"seckey\")\n$ export CXCHAIN_HASH=$(cxchain-cli genesis -in skycoin.chain_spec.json)\n$ cxchain-cli run -chain \"tracker:$CXCHAIN_HASH\" -tracker \"http://127.0.0.1:9091\" -node \"http://127.0.0.1:6422\" -inject ./cx/examples/counter-tx.cx\n```\n\n## Resources\n\n- [CX Chain Technical Overview](./doc/CXCHAIN_OVERVIEW.md)\n- [`skycoin/cx` Repository](https://github.com/skycoin/cx)\n- [`skycoin/cx-tracker` Repository](https://github.com/skycoin/cx-tracker)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskycoin%2Fcx-chains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskycoin%2Fcx-chains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskycoin%2Fcx-chains/lists"}