diff --git a/index.html b/index.html index e32ad87..9dbd52f 100644 --- a/index.html +++ b/index.html @@ -860,11 +860,19 @@ console.dir(redeemtx, { depth: null }); let rawtx2 = BTON.Tx.encode(redeemtx); + let _txid2; // since we don't know any mempool space api rate limits, we will be careful with spamming await isPushing(); pushing = true; - let _txid2 = await pushBTCpmt( rawtx2 ); + try{ + + _txid2 = await pushBTCpmt( rawtx2 ); + } + catch(e) + { + _txid2 = e.toString(); + } await sleep(1000); pushing = false; diff --git a/signet-bootstrap.html b/signet-bootstrap.html index 8f40c31..c846757 100644 --- a/signet-bootstrap.html +++ b/signet-bootstrap.html @@ -860,11 +860,19 @@ console.dir(redeemtx, { depth: null }); let rawtx2 = BTON.Tx.encode(redeemtx); + let _txid2; // since we don't know any mempool space api rate limits, we will be careful with spamming await isPushing(); pushing = true; - let _txid2 = await pushBTCpmt( rawtx2 ); + try{ + + _txid2 = await pushBTCpmt( rawtx2 ); + } + catch(e) + { + _txid2 = e.toString(); + } await sleep(1000); pushing = false; diff --git a/signet.html b/signet.html index b6d4b2e..4327776 100644 --- a/signet.html +++ b/signet.html @@ -887,11 +887,19 @@ console.dir(redeemtx, {depth: null}); let rawtx2 = BTON.Tx.encode(redeemtx); + let _txid2; // since we don't know any mempool space api rate limits, we will be careful with spamming await isPushing(); pushing = true; - let _txid2 = await pushBTCpmt(rawtx2); + try{ + + _txid2 = await pushBTCpmt( rawtx2 ); + } + catch(e) + { + _txid2 = e.toString(); + } await sleep(1000); pushing = false;