Created
May 10, 2020 08:14
-
-
Save mason276752/ccb47fe93c7681081396ef538ac71ff5 to your computer and use it in GitHub Desktop.
findtxid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Web3 = require('web3'); | |
let web3 = new Web3() | |
web3.setProvider("https://mainnet.infura.io/v3/xxx") | |
let txids=[ | |
// "0x...", | |
] | |
txids.forEach( | |
txid=>{ | |
web3.eth.getTransaction(txid,function(err,txinfo){ | |
if(txinfo){ | |
console.log("find",txid) | |
}else{ | |
console.log("not find",txid) | |
} | |
}) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment