Skip to content

gaslessqa/qa-web3-tx-verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

QA Web3 - Transaction Verifier

This QA automation script checks the on-chain status of a transaction using its hash. It connects to an Ethereum-compatible RPC, retrieves the transaction and receipt, and verifies that it was successfully confirmed.

πŸ“Š Objective

  • Confirm the existence of a transaction
  • Retrieve its status (Success or Failed)
  • Log key details (sender, recipient, block number)
  • Useful for validating on-chain actions in test scenarios

πŸš€ How to Run

  1. Clone the repository:
git clone https://github.com/yourusername/qa-web3-tx-verifier.git
cd qa-web3-tx-verifier
  1. Install dependencies:
npm install
  1. Create a .env file:
RPC_URL=https://mainnet.infura.io/v3/YOUR_PROJECT_ID
TX_HASH=0xYourTransactionHashHere
  1. Run the script:
node qa-web3-tx-verifier.js

πŸ“Š Sample Output

βœ… Transaction found:
  Hash: 0xabc...
  From: 0x...
  To: 0x...
  Status: Success
  Block: 18400234

🧐 About

This project is part of a QA Web3 portfolio by RaΓΊl Casado (GaslessQA), focused on validating decentralized system behaviors through smart automation.

πŸ“ƒ Author

RaΓΊl Casado – GaslessQA
πŸ”— https://www.linkedin.com/in/gaslessqa/

πŸ“š License

MIT

About

QA script to verify the on-chain status of a transaction using ethers.js and a custom RPC provider

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published