functionland / sugarfunge-node

The SugarFunge blockchain powers the SugarFunge Protocol. A protocol for creating privately-owned economies without the complexity of building and maintaining their own blockchain infrastructure. Empowering businesses with digital and physical assets with minting, crafting and trading mechanics.
Other
0 stars 1 forks source link

SugarFunge

Substrate-based SugarFunge Node

The SugarFunge blockchain powers the SugarFunge Protocol. A protocol for companies looking to model their business logic in a privately-owned economy without the complexity of building and maintaining their own blockchain infrastructure. Empowering businesses with digital and physical assets with minting, crafting and trading mechanics.

Read more about Owned Economies.

Local Testnet

Important: to be able to use all sugarfunge-api endpoints without problem you must run at least two validators


1st Validator:

./target/release/sugarfunge-node key insert --base-path=/var/lib/.sugarfunge-node/data/node01 --keystore-path=/var/lib/.sugarfunge-node/keys/node01 --chain customSpecRaw.json --scheme Sr25519 --suri "word1 ... word12" --password-filename "/var/lib/.sugarfunge-node/passwords/password1.txt" --key-type aura

./target/release/sugarfunge-node key insert --base-path=/var/lib/.sugarfunge-node/data/node01 --keystore-path=/var/lib/.sugarfunge-node/keys/node01 --chain customSpecRaw.json --scheme Ed25519 --suri "word1 ... word12" --password-filename "/var/lib/.sugarfunge-node/passwords/password1.txt" --key-type gran

cargo run --release -- --chain ./customSpecRaw.json --enable-offchain-indexing true --base-path=/var/lib/.sugarfunge-node/data/node01 --keystore-path=/var/lib/.sugarfunge-node/keys/node01 --port=30334 --rpc-port 9944 --rpc-cors=all --rpc-methods=Unsafe --rpc-external --validator --name MyNode01 --password-filename="/var/lib/.sugarfunge-node/passwords/password1.txt" --node-key=peerID_secret_key

2nd Validator:

./target/release/sugarfunge-node key insert --base-path=/var/lib/.sugarfunge-node/data/node02 --keystore-path=/var/lib/.sugarfunge-node/keys/node02 --chain customSpecRaw.json --scheme Sr25519 --suri "word1 ... word12" --password-filename "/var/lib/.sugarfunge-node/passwords/password2.txt" --key-type aura

./target/release/sugarfunge-node key insert --base-path=/var/lib/.sugarfunge-node/data/node02 --keystore-path=/var/lib/.sugarfunge-node/keys/node02 --chain customSpecRaw.json --scheme Ed25519 --suri "word1 ... word12" --password-filename "/var/lib/.sugarfunge-node/passwords/password2.txt" --key-type gran

cargo run --release -- --chain ./customSpecRaw.json --enable-offchain-indexing true --base-path=/var/lib/.sugarfunge-node/data/node02 --keystore-path=/var/lib/.sugarfunge-node/keys/node02 --port=30335 --rpc-port 9945 --rpc-cors=all --rpc-methods=Unsafe --rpc-external --validator --name MyNode02 --password-filename="/var/lib/.sugarfunge-node/passwords/password2.txt" --node-key=peerID_secret_key --bootnodes /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWBeXV65svCyknCvG1yLxXVFwRxzBLqvBJnUF6W84BLugv