Notes:
- The environment starts with
cdv
andchia
installed chia init
is configured for testnet10- Latest sqlite db is loaded
- To view this page again, open README.md and hit
CTRL+SHIFT+V
.
chia start node
- start the nodechia show -c
- view peers (we benchmarkedchia show -s
- view sync status
chia keys generate
- generate unique keys private to the userchia start wallet
- begin the wallet fast sync
chia wallet show
- view wallet fingerprint and sync statuschia wallet get_address -f [fingerprint]
- get wallet address from fingerprint- https://testnet10-faucet.chia.net/request - open the chia testnet web faucet
- enter the wallet address and click [Submit]
chia wallet show
- verify that the txch was received (this may take a couple minutes)
First, we generate a puzzle hash from our wallet address:
chia wallet get_address -f [fingerprint]
- get wallet address from fingerprintcdv decode [wallet address]
- decode bech32m address to a puzzle hash
Then, we update the example file to use our wallet address as the location for the piggybank
cd /home/clovyr/git/github.com/clovyr/chia-example/examples
- navigate to the examples foldercp -pr chia-piggybank piggybank-test
- make a copy of the piggybank examplecd piggybank-test
- navigate to the new directory- open the piggybank.clsp file
- Locate the wallet placeholder in the example file
- line 10:
(defconstant CASH_OUT_PUZZLE_HASH 0xYourWallet)
- line 10:
- replace "0xYourWallet" constant with the generated puzzle hash of your wallet
- e.g.: (defconstant CASH_OUT_PUZZLE_HASH 0x7ba40c4022538388575ebde88dd0158da37e311d28a81e60e576e67807d26ec7)
CTRL+S
to save the file
Eventually, we will deploy an empty piggybank, create & send contribution coins, and verify a payment once the threshold is met.
chia wallet show
- ensure that the wallet is Synced- ensure you are in the
examples/piggybank-test
directory python3 -i ./piggybank_drivers.py
- load the piggybank python driver in interactive mode- TOFIX: creating an empty piggybank is failing, likely due to recent updates in the python API. Will look at this.
- However, creating a contribution coin with a value IS working, so we will use that to verify connectivity:
contribution_100 = deploy_smart_coin("contribution.clsp", 100)
CTRL + D
to exit the python interpreter (will unset the value ofcontribution_100
)