ddress(address).hex;
            return true;
        } catch (e) {
        }
        return;
    }

    function isValidJson(content) {
        if (!content) return;
        try {
            var json = JSON.parse(content);
        } catch (e) {
            return;
        }
        return true;
    }

    async function getAllFeeRates() {
        let fees = await getData("https://mempool.space/" + mempoolNetwork + "api/v1/fees/recommended");
        fees = JSON.parse(fees);
        return fees;
    }

   