getTransactionReceipt error
See original GitHub issueawait provider.waitForTransaction(transaction.hash);
const receipt = await provider.getTransactionReceipt(transaction.hash);
When I log receipt from getTransactionReceipt, I get this error:
Error: invalid transaction receipt - exactly one of status and root should be present
What am I doing wrong?
My provider is a parity node running on Kovan (I used providers.JsonRpcProvider)
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
eth_getTransactionReceipt - Alchemy Docs
Returns the receipt of a transaction by transaction hash. Don't have an API key? Start using this API in your app today.
Read more >How to get transaction failed reason with transaction hash with ...
I'm trying to get transaction failed reason with transaction hash with web3? I have checked getTransactionReceipt() method
Read more >jsonrpc - Go Packages
GetTransactionReceipt returns the receipt of a transaction by transaction hash. func (*Eth) NewBlockFilter ¶. func (e *Eth) NewBlockFilter() ( ...
Read more >ethereum/web3.py - Gitter
getTransactionReceipt (result) error: File "C:\Users\Eric\AppData\Local\Programs\Python\Python37\lib\site-packages\web3\eth.py", line 274, ...
Read more >web3.eth — web3.js 1.0.0 documentation
Incorrect checksum addresses will throw an error when passed into functions. If you want to circumvent the ... getTransactionReceipt(hash [, callback]).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you use v4, interface.parseLog will figure out which event it is and parse it for you, including the name, function signature, topic and parsed values.
There is also an interface.parseTransaction that will look up what function and what values the transaction represents.
So, you can directly access contract.interface.parseLog if you have a contract, or you can just instantiate an Interface if you are processing the blockchain in general.
@mrwillis this is how I parse events in the transactions receipt.