- Update Go to version at least 1.13 (required >= 1.13)
Check your golang version
~ go version
go version go1.13 darwin/amd64
cd ub_chain
go build
cd cmd/wallet
go build
cp config.toml.example config.toml
- set RpcPass
- set ExternalIp
./UBChain --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 CreateAccount
./wallet CreateAccount 123456
./wallet SendTransaction from to contract amount fee [password]
./wallet SendTransaction 3ajDe9zSANwuTBL6xBEj5ZWjjbWYQyzBohv1 3ajHhfRK5ZDz9TvjrXqhq2deLo8qk37zakxq UBC 1000 0.0003
./wallet SendTransaction 3ajDe9zSANwuTBL6xBEj5ZWjjbWYQyzBohv1 3ajHhfRK5ZDz9TvjrXqhq2deLo8qk37zakxq UBC 1000 0.0003 123456
./wallet GetAccount 3ajDe9zSANwuTBL6xBEj5ZWjjbWYQyzBohv1