An open API service indexing awesome lists of open source software.

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

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