Merge pull request #1340 from josepfo/feat/get-tx-hashes-for-address

Feat/get tx hashes for address
This commit is contained in:
Rafael Taranto 2022-08-03 10:36:51 +01:00 committed by GitHub
commit 0cdd1d7801
10 changed files with 91 additions and 20 deletions

View file

@ -151,11 +151,17 @@ function checkBlockchainStatus (cryptoCode) {
.then(res => !!res['initial_block_download_complete'] ? 'ready' : 'syncing')
}
function getTxHashesByAddress (cryptoCode, address) {
checkCryptoCode(cryptoCode)
.then(() => fetch('getaddresstxids', [address]))
}
module.exports = {
balance,
sendCoins,
newAddress,
getStatus,
newFunding,
checkBlockchainStatus
checkBlockchainStatus,
getTxHashesByAddress
}