Update index.html
This commit is contained in:
1 parent
dd4baaf02a
commit
c96b9cc2cd
1 file changed
+9
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user