Platforms Requirements We support running a full node on Mac OS X and Linux.
In this guide:The hardware must meet certain requirements to run a full node.
Go to directory according to the network you want to join in. Choice Testnet or Mainet.
# Please go to https://hub.docker.com/r/plasmachain/mainet
mkdir /data
mkdir /data/<producer name>
mkdir /data/<produer name>/producer/conf
# Get docker image
docker pull plasmachain/mainet:latest
# Copy config files
cp config.ini /data/<producer name>/producer/conf
cp genesis.json /data/<producer name>/producer/conf
# Create network
docker network create --driver bridge <producer name>
Setup the config file to configure our node nano config.ini
Now replace the following lines
# config.ini
server address: p2p-server-address = YOUR_NODE_IP_ADDRESS:8701
your producer name: producer-name = YOUR_BP_NAME
created producer keypair: private-key = ["YOUR_PUBKEY","YOUR_PRIVKEY"]
docker exec -i <network>-bios-node sol wallet import -n walletname <privkey>
Start the ionode process, sample command
docker run -d --net <producer name> -v /data/<producer name>/producer:/<producer name> -p 8801:8888 -p 9876:9876 --name producer-<producer name> --restart on-failure plasmachain/mainet:latest ionode --replay-blockchain --verbose-http-errors --genesis-json /<producer name>/conf/genesis.json --max-transaction-time=100 --config /<producer name>/conf/config.ini --data-dir /<producer name>/blockchain
After the node has played all the blocks of blockchain and created its own replica, the following commands can be executed as a command line utility as a test
docker exec -i <network>-bios-node sol get table plasma.token EURP stat
docker exec -i <network>-bios-node sol get account plasma.token
docker exec -i <network>-bios-node sol get abi plasma.token
Reg producer node
# this command must be performed by an already registered producer, please contact with admin node network
docker exec -i <network>-bios-node sol -u https://***** system regproducer accountname <producer-publickey> “https://<domain.com>/” -p accountname
Send token
# You can find a complete list of tokens on the official website.
docker exec -i <network>-bios-node sol transfer <your account> <receiver account> "paySysCms":false "1.000000000000000000 USDP" "test memo text"
Get Balance
$ ./sol get currency balance usdp <account name>
List your last action (use -h to get help, don`t work now, works with history node only)
docker exec -i <network>-bios-node sol get actions <account name>
Get blockchain info
docker exec -i <network>-bios-node sol get info <account name>
Get account info
docker exec -i <network>-bios-node sol get <account name>
docker exec -i <network>-bios-node sol get <account name> --json
See these additional resources for more information about authorization, API resources and order actions.
For API feature requests, bug reports and other questions related to API guides, contact [email protected].