Update index.html

This commit is contained in:
supertestnet authored and GitHub committed 2023-03-16 15:16:46 -05:00
1 parent dd4baaf02a
commit c96b9cc2cd
1 file changed
+9
+9
View File
@@ -417,6 +417,15 @@
} catch( e ) {}
return;
}
function isValidJson( content ) {
if ( !content ) return;
try {
var json = JSON.parse( content );
} catch ( e ) {
return;
}
return true;
}
async function getAllFeeRates() {
var fees = await getData( "https://mempool.space/api/v1/fees/recommended" );
fees = JSON.parse( fees );