Skip to content

Instantly share code, notes, and snippets.

@mason276752
Created May 10, 2020 08:14
Show Gist options
  • Save mason276752/ccb47fe93c7681081396ef538ac71ff5 to your computer and use it in GitHub Desktop.
Save mason276752/ccb47fe93c7681081396ef538ac71ff5 to your computer and use it in GitHub Desktop.
findtxid
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