nc function getMinFeeRate() {
        let fees = await getData("https://mempool.space/" + mempoolNetwork + "api/v1/fees/recommended");
        fees = JSON.parse(fees);
        if (!("minimumFee" in fees)) return "error -- site down";
        let minfee = fees["minimumFee"];
        // if ( !( "fastestFee" in fees ) ) return "error -- site down";
        // var maxfee = fees[ "fastestFee" ];
        return minfee;
    }

    function isValidTaprootAddress(address) {
        try {
            BTON.Tap.decodeA