Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Fetching Recent Transactions & Transaction Status Tool #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Tolujoh-n
Copy link

Objective

I worked on improving the transaction tools, specifically adding support for fetching recent transactions and enhancing the transaction status checking functionality. The goal was to ensure users can efficiently retrieve transaction details, including status, block number, sender/receiver, gas fees, and direct links to BaseScan.

Challenges Faced

While working on this quest, I encountered several issues, including:

Project Setup on Windows: The README lacks detailed setup instructions for Windows users. After following all the steps, the project still failed to run properly. I believe additional dependencies or configurations might be needed.
ES Module vs. CommonJS Issue: Running npm test failed due to ReferenceError: require is not defined in ES module scope. This issue arises because package.json specifies "type": "module", but the script uses require. A possible fix is renaming the script to .cjs or using import.

Suggested Improvements

Update README.md: Provide clearer installation and setup instructions. Coudn't succesfully test after all the readme instruction was followed and successfully acheived.
Fix Module Issues: Ensure compatibility between CommonJS and ES modules to prevent errors when running scripts.

Overview of the Tool I Built

This tool enhances transaction tracking by allowing users to:

Get the recent transactions and status of a specific transaction using a given wallet address.
Retrieve recent transactions made by a user, displaying details such as transaction hash, status, block number, sender, recipient, value, and a direct link to BaseScan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant