An Ethereum compatible Parachain built with Tetcore.
👉 Discover the Tetonix project at Tetcoin Tetonix.
👉 Learn to use the Tetonix network with our technical docs.
👉 Reference our crate-level docs (rustdocs) to contribute.
Docker images are published for every tagged release. Learn more with moonbeam --help
.
```bash
docker run --network="host" purestake/moonbeam:v0.6.1 --chain alphanet ```
Developers who are building dApps to run on moonbeam, may want a lightweight node to work with locally. You can quickly spin up a single node with no relay chain backing it using the development service.
```bash
docker run --network="host" purestake/moonbeam:v0.6.1 --dev ```
The command above will start the node in instant seal mode. It creates a block when a transaction arrives, similar to Ganache's auto-mine. You can also choose to author blocks at a regular interval, or control authoring manually through the RPC.
```bash
docker run --network="host" purestake/moonbeam:v0.6.1 --dev --sealing 3000
docker run --network="host" purestake/moonbeam:v0.6.1 --dev --sealing manual ```
Running Moonbeam in development mode will pre-fund several well-known addresses that (mostly) contain the letters "th" in their names to remind you that they are for ethereum-compatible usage. These addresses are derived from
Substrate's canonical mnemonic: bottom drive obey lake curtain smoke basket hold race lonely fit walk
```
To build Moonbeam, you will need a proper Substrate development environment. If you've never worked with a Substrate-based blockchain before, you should probably try the Setting Up a Moonbeam Node docs first. If you need a refresher setting up your Substrate environment, see Substrate's Getting Started Guide.
```bash
git clone https://github.com/PureStake/moonbeam cd moonbeam
cargo build --release ```
Moonbeam has Rust unit tests as well as typescript integration tests. These tests are run in CI, and can also be run locally.
```bash
cargo test ```
```bash
cd moonbeam-types-bundle npm i
cd ../tests npm i
npm test ```
The Ethereum specification described a numeric Chain Id. The Moonbeam mainnet Chain Id will be 1284 because it takes 1284 milliseconds for a moonbeam to reach Earth.
Moonbeam nodes support multiple public chains and testnets, with the following Chain Ids.
| Network Description | Chain ID | | ---------------------------------- | ----------- | | Local Parachain TestNet | 1280 | | Local Development TestNet | 1281 | | Reserved for other TestNets | 1282 - 1283 | | Moonbeam (Polkadot) | 1284 | | Moonriver (Kusama) | 1285 | | Moonrock (Rococo) | 1286 | | Moonbase Alpha TestNet | 1287 | | Reserved for other public networks | 1288 - 1289 |
The Tetonix Runtime is built using FRAME and consists of pallets from tetcore, frontier, cumulus, and pallets/
.
From substrate:
From frontier:
From cumulus:
The following pallets are stored in pallets/
. They are designed for Moonbeam's specific requirements:
Tetonix is open source under the terms of the GPL3. We welcome contributions. Please review our CONTRIBUTIONS.md document for more information.