Created
July 27, 2020 14:36
-
-
Save rahuldamodar94/0c94a2aae5460cb8740aa3647ebebb46 to your computer and use it in GitHub Desktop.
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"); | |
const provider = new Web3.providers.HttpProvider( | |
"https://rpc-mumbai.matic.today" | |
); | |
const web3 = new Web3(provider); | |
web3.eth | |
.getTransactionReceipt( | |
"0xd38dd611ae110286a9c640e08181869211752be9a48b52b9e6edeba90fe58921" | |
) | |
.then((res) => { | |
console.log(res.logs); | |
}) | |
.catch((err) => { | |
console.log(err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment