{"id":16381041,"url":"https://github.com/jasl/my-substrate-node","last_synced_at":"2025-02-21T17:48:03.425Z","repository":{"id":141659355,"uuid":"218630518","full_name":"jasl/my-substrate-node","owner":"jasl","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-04T17:35:07.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T05:53:17.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-30T21:31:50.000Z","updated_at":"2019-11-04T17:35:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d201e4a-5867-4065-9256-71854350a536","html_url":"https://github.com/jasl/my-substrate-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasl%2Fmy-substrate-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasl%2Fmy-substrate-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasl%2Fmy-substrate-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasl%2Fmy-substrate-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasl","download_url":"https://codeload.github.com/jasl/my-substrate-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240062572,"owners_count":19742218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-11T03:53:13.309Z","updated_at":"2025-02-21T17:48:03.391Z","avatar_url":"https://github.com/jasl.png","language":"Rust","readme":"# Substrate Node Template\n\nA new SRML-based Substrate node, ready for hacking.\n\n## Prepare\n\n`git submodule update --init`\n\n## Build\n\nInstall Rust:\n\n```bash\ncurl https://sh.rustup.rs -sSf | sh\n```\n\nInitialize your Wasm Build environment:\n\n```bash\n./scripts/init.sh\n```\n\nBuild Wasm and native code:\n\n```bash\ncargo build --release\n```\n\n## Run\n\n### Single node development chain\n\nPurge any existing developer chain state:\n\n```bash\n./target/release/my-node purge-chain --dev\n```\n\nStart a development chain with:\n\n```bash\n./target/release/my-node --dev\n```\n\nDetailed logs may be shown by running the node with the following environment variables set: `RUST_LOG=debug RUST_BACKTRACE=1 cargo run -- --dev`.\n\n### Multi-node local testnet\n\nIf you want to see the multi-node consensus algorithm in action locally, then you can create a local testnet with two validator nodes for Alice and Bob, who are the initial authorities of the genesis chain that have been endowed with testnet units.\n\nOptionally, give each node a name and expose them so they are listed on the Polkadot [telemetry site](https://telemetry.polkadot.io/#/Local%20Testnet).\n\nYou'll need two terminal windows open.\n\nWe'll start Alice's substrate node first on default TCP port 30333 with her chain database stored locally at `/tmp/alice`. The bootnode ID of her node is `QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR`, which is generated from the `--node-key` value that we specify below:\n\n```bash\ncargo run -- \\\n  --base-path /tmp/alice \\\n  --chain=local \\\n  --alice \\\n  --node-key 0000000000000000000000000000000000000000000000000000000000000001 \\\n  --telemetry-url ws://telemetry.polkadot.io:1024 \\\n  --validator\n```\n\nIn the second terminal, we'll start Bob's substrate node on a different TCP port of 30334, and with his chain database stored locally at `/tmp/bob`. We'll specify a value for the `--bootnodes` option that will connect his node to Alice's bootnode ID on TCP port 30333:\n\n```bash\ncargo run -- \\\n  --base-path /tmp/bob \\\n  --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR \\\n  --chain=local \\\n  --bob \\\n  --port 30334 \\\n  --telemetry-url ws://telemetry.polkadot.io:1024 \\\n  --validator\n```\n\nAdditional CLI usage options are available and may be shown by running `cargo run -- --help`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasl%2Fmy-substrate-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasl%2Fmy-substrate-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasl%2Fmy-substrate-node/lists"}