Decode revert reason from failed transaction
🏠 Homepage
yarn add tx-revert-reason
cp .env.example .env # Fill the provider url
npx tx-revert-reason --help
import { getReasonByWeb3Js, getReasonByEthersJs } from 'tx-revert-reason';
const reasonByWeb3 = await getReasonByWeb3Js(txHash, providerUrl);
const reasonByEthers = await getReasonByEthersJs(txHash, providerUrl);
cp .env.example .env # Fill the provider url
yarn start TX_HASH # Check revert reason from tx hash
yarn start --help # Show help
Give a ⭐️ if this project helped you!
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator