MCPcopy Index your code
hub / github.com/Bot80926/ethers-scripts / main

Function main

utils/error.js:18–26  ·  view source on GitHub ↗
(txHash)

Source from the content-addressed store, hash-verified

16
17
18const main = async (txHash) => {
19 const tx = await provider.getTransaction(txHash)
20 if (!tx) {
21 console.log('tx not found')
22 } else {
23 const code = await provider.call(tx)
24 console.log('revert reason:', code)
25 }
26}
27
28main('input your txHash');

Callers 1

error.jsFile · 0.70

Calls 1

getTransactionMethod · 0.80

Tested by

no test coverage detected