chore: initial function stubs

This commit is contained in:
Sérgio Salgado 2022-01-20 20:24:24 +00:00
parent b190b349b3
commit 75cb094476
2 changed files with 18 additions and 3 deletions

View file

@ -176,6 +176,12 @@ function supportsBatching (cryptoCode) {
.then(() => SUPPORTS_BATCHING)
}
function checkBlockchainStatus (cryptoCode) {
return checkCryptoCode(cryptoCode)
.then(() => fetch('getblockchaininfo'))
.then(res => !!res['initialblockdownload'] ? 'ready' : 'syncing')
}
module.exports = {
balance,
sendCoins,