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

@ -34,7 +34,8 @@ module.exports = {
privateKey,
isStrictAddress,
connect,
checkBlockchainStatus
checkBlockchainStatus,
getTxHashesByAddress
}
const SWEEP_QUEUE = new PQueue({
@ -69,6 +70,10 @@ function isStrictAddress (cryptoCode, toAddress, settings, operatorId) {
return cryptoCode === 'ETH' && util.isValidChecksumAddress(toAddress)
}
function getTxHashesByAddress (cryptoCode, address) {
throw new Error(`Transactions hash retrieval is not implemented for this coin!`)
}
function sendCoins (account, tx, settings, operatorId, feeMultiplier) {
const { toAddress, cryptoAtoms, cryptoCode } = tx
const isErc20Token = coins.utils.isErc20Token(cryptoCode)