tendermint/mintnet-kubernetes/examples/basecoin
Anton Kaliaev aff0fe5c5c
take into account status codes by leveraging `--fail` curl option (Refs #37)
2017-07-11 16:23:33 +03:00
..
Makefile copy mintnet-kubernetes from https://github.com/tendermint/mintnet-kubernetes 2017-03-21 13:06:30 +04:00
README.md [mintnet-kubernetes] fix tr command in basecoin readme 2017-06-01 01:15:49 +03:00
app.yaml take into account status codes by leveraging `--fail` curl option (Refs #37) 2017-07-11 16:23:33 +03:00
lightclient.md [mintnet-kubernetes] upgrade to work with tm 0.10.0 and basecoin 0.5.0 2017-05-30 18:23:26 +03:00

README.md

Basecoin example

This is an example of using basecoin.

Usage

make create

Check account balance and send a transaction

  1. wait until all the pods are Running.

    kubectl get pods -w -o wide -L tm
    
  2. wait until app starts.

    kubectl logs -c app -f tm-0
    
  3. get account's address of the second pod

    ADDR=`kubectl exec -c app tm-1 -- cat /app/key.json | jq ".address" | tr -d "\""`
    
  4. send 5 coins to it from the first pod

    kubectl exec -c app tm-0 -- basecoin tx send --to "0x$ADDR" --amount 5mycoin --from /app/key.json --chain_id chain-tTH4mi
    

Clean up

make destroy