You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
643 B

  1. # Basecoin example
  2. This is an example of using [basecoin](https://github.com/tendermint/basecoin).
  3. ## Usage
  4. ```
  5. make create
  6. ```
  7. ### Check account balance and send a transaction
  8. 1. wait until all the pods are `Running`.
  9. ```
  10. kubectl get pods -w -o wide -L tm
  11. ```
  12. 2. wait until app starts.
  13. ```
  14. kubectl logs -c app -f tm-0
  15. ```
  16. 3. get account's address of the second pod
  17. ```
  18. kubectl exec -c app tm-1 -- cat /app/key.json | grep "address"
  19. ```
  20. 4. send 5 coins to it from the first pod
  21. ```
  22. kubectl exec -c app tm-0 -- basecoin tx send --to 0x<address> --amount 5
  23. ```
  24. ## Clean up
  25. ```
  26. make destroy
  27. ```