https://github.com/gaslessqa/qa-web3-tx-verifier
QA script to verify the on-chain status of a transaction using ethers.js and a custom RPC provider
https://github.com/gaslessqa/qa-web3-tx-verifier
ethereum etherjs javascript jest jest-test qa transaction txhash web3
Last synced: about 2 months ago
JSON representation
QA script to verify the on-chain status of a transaction using ethers.js and a custom RPC provider
- Host: GitHub
- URL: https://github.com/gaslessqa/qa-web3-tx-verifier
- Owner: gaslessqa
- Created: 2025-09-25T15:52:22.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-25T15:59:20.000Z (9 months ago)
- Last Synced: 2025-09-25T17:42:10.269Z (9 months ago)
- Topics: ethereum, etherjs, javascript, jest, jest-test, qa, transaction, txhash, web3
- Language: JavaScript
- Homepage: https://www.linkedin.com/in/gaslessqa/
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/yourusername/qa-web3-tx-verifier.git
cd qa-web3-tx-verifier
```
2. Install dependencies:
```bash
npm install
```
3. Create a `.env` file:
```env
RPC_URL=https://mainnet.infura.io/v3/YOUR_PROJECT_ID
TX_HASH=0xYourTransactionHashHere
```
4. Run the script:
```bash
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/](https://www.linkedin.com/in/gaslessqa/)
## π License
MIT