;
        });
    }

    async function pushBTCpmt(rawtx) {
        let txid = await postData("https://mempool.space/" + mempoolNetwork + "api/tx", rawtx);
        return txid;
    }

    function waitSomeSeconds(number) {
        let num = number.toString() + "000";
        num = Number(num);
        return new Promise(function (resolve, reject) {
            setTimeout(function () {
                resolve("");
            }, num);
        });
    }

    async function postData(url, json, content_type = "