This is a barebones fork for the flax network. Only the nft-recover function works at this time.
# clone the repo
git clone https://github.com/gee-one/flax-dev-cli
# move into the cloned repo
cd flax-dev-cli
# create the python virtual environment
python3 -m venv venv
# activate the python virtual environment
source venv/bin/activate
# install dependencies
pip install -e . --extra-index-url https://pypi.chia.net/simple/
# Set env var to blockchain path.
export FD_CLI_BC_DB_PATH=$HOME/.flax/mainnet/db/blockchain_v2_mainnet.sqlite
# Set env var to wallet path.
# This must be the wallet that is associated with mnemonic from which NFT plot was created. (Usually your hot wallet)
# Replace <fingerprint> with your wallet fingerprint found at below path or by using "chia wallet show"
export FD_CLI_WT_DB_PATH=$HOME/.flax/mainnet/wallet/db/blockchain_wallet_v2_mainnet_<fingerprint>.sqlite
# Set env var to launcher id of NFT plot. Replace the below ID with output of "Launcher ID:"
# Launcher ID: can be obtained using "chia plotnft show"
# Execute above command in Chia, as those values are the original NFT contract details, which do not exist in the forks
export LAUNCHER_HASH=aaa0cbae497933a6c029a3819759fe148829dfde0316cb0512ccad23edce6aaa
# Set env var to pool_contract_address.
# Pool contract address: can be obtained using "chia plotnft show"
# Execute above command in Chia, as those values are the original NFT contract details, which do not exist in the forks
export POOL_CONTRACT_ADDRESS=xch13rht0xz4tpdqfq08e3dk20kewg9cjj3pw0wwjf7vay8whlxn7ppqapeqhz
fd-cli nft-recover \
-l "$LAUNCHER_HASH" \
-p "$POOL_CONTRACT_ADDRESS" \
-nh 127.0.0.1 \
-np 6755 \
-ct $HOME/.flax/mainnet/config/ssl/full_node/private_full_node.crt \
-ck $HOME/.flax/mainnet/config/ssl/full_node/private_full_node.key
# All coins that were mined +7 days ago WITH NFT PLOT should be spendable soon via wallet.
# move into the cloned repo - adjust as needed
cd flax-dev-cli
# Activate the python virtual environment
source venv/bin/activate