the next generation of basic finance protocol.
To build a private blockchain, if you want to jion our testnet or get more detail, you can click this link.
cd Dipper-Protocol
make install
dipd init dipd-official --chain-id dipd-chain
NOTE: If you have run the tutorial before, you can start from scratch with
dipd unsafe-reset-all
or by deleting both of the home folders
rm -rf ~/.dip*
dipcli keys add alice
dipcli keys add bob
dipd add-genesis-account $(dipcli keys show alice -a) 10000000000000000pdip
dipd add-genesis-account $(dipcli keys show bob -a) 10000000000000000pdip
dipd gentx --amount 1000000pdip --commission-rate "0.10" --commission-max-rate "0.20" --commission-max-change-rate "0.10" --pubkey $(dipd tendermint show-validator) --name alice
dipd collect-gentxs
dipcli config chain-id dipd-chain
dipcli config output json
dipcli config indent true
dipcli config trust-node true
dipd start --log_level "*:debug" --trace
curl http://127.0.0.1:26657/status
dipcli send --from $(dipcli keys show bob -a) --to $(dipcli keys show alice -a) --amount 1000000000000pdip
dipcli query account $(dipcli keys show jack -a)
dipcli query account $(dipcli keys show alice -a)
dipcli vm create --code_file=./contract/demo/demo.bc --abi_file=./contract/demo/demo.abi --from $(dipcli keys show -a alice) --args '' --amount=0pdip --gas=1000000
dipcli query tx <txhash>
dipcli query vm code <contract address>
dipcli vm call --from $(dipcli keys show -a alice) --contract_addr=dip1jd8jqhnruunhrxh75da02dm7fr29cdkqtq8wmq --abi_file ./contract/demo/demo.abi --method=transfer --args 'dip1dcu73lw9uqkygpde4z4z22f079skta49vxs2r0 10' --amount 0pdip --gas 2000000
dipcli query account dip1gtp5xtfnuqpw3dgaxqdk3n8m6d9t4uvwwqt6ms
dipcli query vm call $(dipcli keys show -a alice) dip1gcwk24al08lul80aejyq409mjgtqfu9uhgwtw4 balanceOf ./contract/demo/demo.abi --args "dip16g54d2akrlln48j5p7gcv4nucfzdn2zsxe54j4" --amount 0pdip