All Tests are done on Vultr. Register if you want to and power up a VPS: https://www.vultr.com/?ref=7097618
This is just a simple installscript for a Vechain Thor Node - mainly for myself. Feel free to fork it or just use sniplets of it. Do not use this for Mainnet Nodes without checking for additional security!
I now added a script to install the Web3-Gear to query more accounts and contracts on the vechain blockchain.
This Script is tested on Debian 8/9 64bit and Ubuntu 16.04/17.10/18.04 64bit. You can go to the script step-by-step or just execute this from shell:
curl -sSL https://raw.githubusercontent.com/mirei83/vechain-deploy/master/VechainThorNode-deploy.sh | bashIn Debian: Add the following line bevor "exit 0" in /etc/rc.local
"/PATH/TO/start-vechain-thor.sh"In Ubuntu: Add this to your crontab
"@reboot root $HOME/.profile; $HOME/start-vechain-thor.sh"change "start-vechain-thor.sh" to
/root/go/src/VeChain/thor/bin/thor -network main --api-addr 0.0.0.0:8669As with the first script, simply execute every single step in "VeChain_Web3_deploy.sh" or just do a:
curl -sSL https://raw.githubusercontent.com/mirei83/vechain-deploy/master/VeChain_Web3_deploy.sh | bash$GOPATH/src/VeChain/thor/bin/thor -network mainweb3-gear --host 0.0.0.0 ./start-vechain-thor.shVTHOR Total Supply
curl -X POST http://YOUR.IP.GOES.HERE:8545 -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"from":"0xa4aDAfAef9Ec07BC4Dc6De146934C7119341eE25","to":"0x0000000000000000000000000000456E65726779","data":"0x18160ddd","value":"0x0","gas":"0x2dc6c0"},"latest"]}' | json_ppVTHOR Burned
curl -X POST http://YOUR.IP.GOES.HERE:8545 -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"from":"0xa4aDAfAef9Ec07BC4Dc6De146934C7119341eE25","to":"0x0000000000000000000000000000456E65726779","data":"0xd89135cd","value":"0x0","gas":"0x2dc6c0"},"latest"]}' | json_ppquery VTHOR of Binance Addresse
curl -X POST http://YOUR.IP.GOES.HERE:8545 -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"from":"0xa4aDAfAef9Ec07BC4Dc6De146934C7119341eE25","to":"0x0000000000000000000000000000456E65726779","data":"0x70a08231000000000000000000000000a4aDAfAef9Ec07BC4Dc6De146934C7119341eE25","value":"0x0","gas":"0x2dc6c0"},"latest"]}' | json_pp