Namaha10 / node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node

Application implementing the minimum clique of AssetMantle modules enabling interNFT definition, issuance, ownership transfer and decentralized exchange.

LoC

Talk to us!

Hardware Requirements

  • Minimal
    • 1 GB RAM
    • 50 GB HDD
    • 1.4 GHz CPU
  • Recommended
    • 2 GB RAM
    • 100 GB HDD
    • 2.0 GHz x2 CPU

NOTE: SSDs have limited TBW before non-catastrophic data errors. Running a full node requires a TB+ writes per day, causing rapid deterioration of SSDs over HDDs of comparable quality.

Operating System

  • Linux/Windows/MacOS(x86)
  • Recommended
    • Linux(x86_64)

Installation Steps

Prerequisite: go1.15+ required. ref

Prerequisite: git. ref

Optional requirement: GNU make. ref

  • Clone git repository
git clone https://github.com/AssetMantle/node.git
  • Checkout release tag
git fetch --tags
git checkout [vX.X.X]
  • Install
cd assetMantle
make all

Generate keys

assetClient keys add [key_name]

or

assetMantle keys add [key_name] --recover to regenerate keys with your BIP39 mnemonic

Connect to a chain and start node

  • Install assetMantle application
  • Initialize node
assetNode init [NODE_NAME]
  • Replace ${HOME}/.assetNode/config/genesis.json with the genesis file of the chain.
  • Add persistent_peers or seeds in ${HOME}/.assetNode/config/config.toml
  • Start node
assetNode start

Initialize a new chain and start node

  • Initialize: assetNode init [node_name] --chain-id [chain_name]
  • Add key for genesis account assetClient keys add [genesis_key_name]
  • Add genesis account assetNode add-genesis-account [genesis_key_name] 10000000000000000000stake
  • Create a validator at genesis assetNode gentx --name [genesis_key_name] --amount 10000000stake
  • Collect genesis transactions assetNode collect-gentxs
  • Start node assetNode start
  • To start api server assetClient rest-server

Reset chain

rm -rf ~/.assetNode

Shutdown node

killall assetNode

Check version

assetNode version

About

License:Apache License 2.0


Languages

Language:JavaScript 67.8%Language:Go 16.5%Language:Shell 9.7%Language:Rust 4.0%Language:Makefile 1.6%Language:Dockerfile 0.4%