Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 2.21 KB

testnet10.md

File metadata and controls

49 lines (37 loc) · 2.21 KB

Testing on testnet10

To use tibet.py, you'll first need to install the required packages:

python3 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
pip install --extra-index-url https://pypi.chia.net/simple/ chia-internal-custody
pip install --extra-index-url https://pypi.chia.net/simple/ chia-dev-tools

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 d037e35cc7269df10e45d0d152d2ff53d26f318adf5ea20578e5cfb80b5b2a71
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