Deploy contracts using Truffle
Build smartbchd and generate a test key
$ cd path/to/your/smartbch/dir # and build smartbchd following the given doc
$ ./smartbchd gen-test-keys -n 1 --show-address09c57df30208bdc056144c32d607f0719bdb0f8ac5f0a3259720d9e4d28d999b 0xab83b691Bc12Aae947B2ca240F1732fa792dE246Install Truffle
$ npm install -g truffle$ truffle version
Truffle v5.1.63 (core: 5.1.63)
Solidity v0.5.16 (solc-js)
Node v15.10.0
Web3.js v1.2.9Clone Pet-Shop and add testnet config
Deploy Pet-Shop to smartBCH testnet
Last updated
Was this helpful?