geth and smart contract
1. 环境搭建: Virtual Box and Ubuntu
sudo apt-get update
sudo apt-get install git
git clone https://github.com/ethereum/go-ethereum
sudo apt-get install golang
cd go-ethereum
makeunzip go-ethereum-master.zip (or git clone https://github.com/ethereum/go-ethereum)sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install solc which solc{ "nonce": "0x0000000000000042", "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "difficulty": "0x2000", "alloc": {}, "coinbase": "0x0000000000000000000000000000000000000000", "timestamp": "0x00", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData": "Custem Ethereum Genesis Block", "gasLimit": "0xffffffff" }admin.addPeer("enode://bc3fcc53f883cca5a7a3ed979628790e680d811eab2e991a5c7c4767b9c6625363347dfaf56e636679fce8926c63043ffc34898d2b392675f94a54ad548b13ee@[::]:30303")
3. 运行简单的智能合约
Last updated