- Update Go to version at least 1.15 (required >= 1.15)
Check your golang version
~ go version
go version go1.15 darwin/amd64
cd aiot-network/cmd/chain
go build
cd aiot-network/cmd/wallet
go build
cp config.toml.example config.toml
- set RpcPass
- set RpcUser
- set ExternalIp
./chain --config config.toml
cd cmd/wallet
cp wallet.toml.example wallet.toml
- set RpcIp
- set RpcUser
- set RpcPass
- If the node has the RpcTLS switch turned on, you need to configure the node's server.pem path to RpcCert and set RpcTLS in wallet.config to true
./wallet --help
./wallet Create
./wallet Create 123456
SendTransaction {from} {to} {contract} {amount} {fee} [password] [nonce]
./wallet SendTransaction xCHiGPLCzgnrdTqjKABXZteAGVJu3jXLjnQ xCE9boXz2TxSE9srVPDdfszyiXtfT3vduc8 AIOT 10 0.1
./wallet SendTransaction xCHiGPLCzgnrdTqjKABXZteAGVJu3jXLjnQ xCE9boXz2TxSE9srVPDdfszyiXtfT3vduc8 AIOT 10 0.1 123456
Account {address}
./wallet Account xCHiGPLCzgnrdTqjKABXZteAGVJu3jXLjnQ