0.2.2 • Published 4 years ago
tx-revert-reason v0.2.2
Welcome to tx-revert-reason 👋
Decode revert reason from failed transaction
🏠 Homepage
✨ API documentation
Install
yarn add tx-revert-reasonUsage
CLI
cp .env.example .env # Fill the provider url
npx tx-revert-reason --helpTypescript
import { getReasonByWeb3Js, getReasonByEthersJs } from 'tx-revert-reason';
const reasonByWeb3 = await getReasonByWeb3Js(txHash, providerUrl);
const reasonByEthers = await getReasonByEthersJs(txHash, providerUrl);Develop
cp .env.example .env # Fill the provider url
yarn start TX_HASH # Check revert reason from tx hash
yarn start --help # Show helpStargazers
Show your support
Give a ⭐️ if this project helped you!
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator