Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 2.08 KB

testnet10.md

File metadata and controls

45 lines (33 loc) · 2.08 KB

Testing on testnet10

First, set up chia-dev-tools first. Make sure your venv is active while using tibet.py:

. ./venv/bin/activate

Next, you'll have to switch to testnet10. There's no point in running a full node (db is comparable in size with that on mainnet), so this guide will use FireAcademy.io instead of a full node.

chia stop all
chia configure --testnet true
chia start wallet

Add some peers from https://alltheblocks.net/testnet10/peers (copy the chia peer -a commands, but replace "full_node" with "wallet"). Do this until chia wallet show says that your wallet is syncing or synced.

Next, get some TXCH (test XCH, the currency of the testnet) from here or here.

You can also get some TDBX by accepting offers from Dexie:

chia wallet take_offer -m [fee_amount_in_xch] [raw_offer]

Before configuring tibet.py, you'll need an API key from FireAcademy.io. Create an account and get one for free here.

Configure:

rm config.json # delete prev. config
python3 tibet.py config-node --use-preset testnet10 --fireacademyio-api-key [you-api-key]
python3 tibet.py test-node-config
python3 tibet.py set-router --launcher-id 95415cd28341ac7a8c4494ca185d719ad7c25928cea5a6d74ae478820fe48f40
python3 tibet.py sync-pairs

Time to play! See TESTING.md to get an idea of the possible commands. Do not forget to use the --fee switch since the testnet mempool seems full.

Note on fees: If your transaction says 'pending', it means that your previous fee was too low. You need to re-generate the offer (cancel it and re-run the command) with a higher fee and then submit it to the blockchain. Keep in mind that the minimum fee bump is 10 million (10,000,000) mojos.

To get back on mainnet:

chia stop all
chia configure --testnet false