Get the revert reason from a tx hash on POSIChain
yarn global add 'PositionExchange/psc-revert-reason'
psc-revert-reason [tx_hash]
# Specific network
psc-revert-reason [tx_hash] [psc_testnet|psc_mainnet]
Make sure you have add yarn bin to your $PATH
For bash for example, you can add this line at the end of your .bashrc:
export PATH="$(yarn global bin):$PATH"
More info: https://classic.yarnpkg.com/lang/en/docs/cli/global/
The following features will be added over time:
- A better way to determine whether or not a node is full-archive.
- A better way to determine whether or not a node exposes Parity
trace
methods. - Reduce the number of calls made by the provider.
- Use raw RPC calls instead of a library
- Will require unwrapping the provider from the library if provider is still a parameter
- Note: this would still require using the ethers default provider
- Will require unwrapping the provider from the library if provider is still a parameter
npm test