Implement testnet/mainnet/regtest chain selection