Build the Magnet Node
1. Build the Magnet Node from Source Code
This method involves cloning the Magnet project repository from GitHub and compiling the project using Cargo, the package manager and build tool for Rust. Follow these steps:
# Clone the repository
git clone https://github.com/Magport/Magnet.git
# Navigate to the project directory
cd Magnet
# Build the project using Cargo
cargo build --release
Compiling the node may take about 30 minutes to complete, depending on your system's performance.
2. Run the Pre-Compiled Executable from GitHub
If you prefer not to build from source, you can directly download the pre-compiled executable file of the Magnet node from GitHub. This is usually faster as it bypasses the compilation process. Follow these steps:
a. Visit the Magnet project's GitHub releases page: Magnet Releases .
b. Select the latest version and download the pre-compiled executable suitable for your operating system.
c. After downloading, you may need to grant execution permissions to the file, depending on your operating system. On Linux or macOS, you can use the following command:
chmod +x magnet_executable # Replace with the actual name of the downloaded file
d. Run the executable to start the Magnet node:
./magnet_executable # Replace with the actual name of the downloaded file
3. Create a new paraid
in the browser
a. Click on
network
, selectparachains
.b. Click on
parathreads
, click onparaid
.c. Choose an account and submit.
d. The registered
paraid
for this session is 2000.
4. Modify the Default Chain Specification
a. Generate the default chain specification:
./target/release/parachain-magnet-node build-spec --disable-default-bootnode >magnet-2000.json
Modify the magnet-2000.json
file, change para_id
to 2000 and parachainid
to 2000.
b. Convert the spec file to a raw file:
./target/release/parachain-magnet-node build-spec --disable-default-bootnode --chain magnet-2000.json --raw>raw-magn
Last updated