Merge pull request #1304 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:30 +01:00 committed by GitHub
commit 4a27583d2e
10 changed files with 91 additions and 20 deletions

View file

@ -34,7 +34,8 @@ module.exports = {
privateKey,
isStrictAddress,
connect,
checkBlockchainStatus
checkBlockchainStatus,
getTxHashesByAddress
}
const infuraCalls = {}
@ -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)