Skip to content

Instantly share code, notes, and snippets.

@rahuldamodar94
Created July 27, 2020 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahuldamodar94/0c94a2aae5460cb8740aa3647ebebb46 to your computer and use it in GitHub Desktop.
Save rahuldamodar94/0c94a2aae5460cb8740aa3647ebebb46 to your computer and use it in GitHub Desktop.
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