Step 1: Download Executable Pack
magnachaind：The core program that runs is commonly known as the magnachain core. It is also the execution program that must be started first.
magnachain-cli: A full-featured RPC client, including query blocks, transaction information, and more.
Step 2: Load the dependent runtime library
Execute the file directory download execution in MagnaChain:
chmod +x loadlib.sh ./loadlib.sh
Step 3: Create a new configuration file magnachain.conf
Create a new magnachain.conf in a custom directory (eg: /Users/jerry/data), as shown below:
port=8099 # Listening port, the default (not set) : 8833 rpcport=9201 # rpc call port rpcuser=user # rpc user name rpcpassword=pwd # rpc password
Step 4: Start the MagnaChain local node
In the cmd life mode, enter the MagnaChain project directory and execute the following command:
./magnachaind -datadir=/Users/jerry/data -regtest=1 -daemon
Step 5: Use magnachain-cli to call RPC command
Check whether the node is successful by using the getinfo command:
./magnachain-cli -datadir=/Users/jerry/data -regtest=1 getinfo