open-index/open-npm huggingface dataset:
npm package: @0xd541ecb3/nx-es-cli
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 1.0.2

# cli

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build cli` to build the library.

## Running unit tests

Run `nx test cli` to execute the unit tests via [Jest](https://jestjs.io).
npm package: @0xdeepak/transaction-monitor
Description: Simple Ethereum transaction monitor for transaction status polling. Blockwise Ethereum transaction monitor API for React and Javascript applications to track transaction status in certain block number.
Latest version: 1.0.6

# Transaction Monitor API

Simple Ethereum transaction monitor for transaction status polling. Blockwise Ethereum transaction monitor API for React and Javascript applications to track transaction status in certain block number.

## Use case

```
import checkTransactionStatus from "@0xdeepak/transaction-monitor"

// OR

const checkTransactionStatus = require("@0xdeepak/transaction-monitor")

async function checkStatus() {
    // add your transaction hash
    const res = await checkTransactionStatus({txnHash:'0x......',chainId:137,maxConfirmationBlocks?:50})

    // res

    {
        status: "txConfirmed" | "txRequested" | "txFailed",
        message: "Transaction is pending",
        receipt?: Object
    }
}

```

## APIs

### checkTransactionStatus()

| Paramter                | Type     | Description                                       |
| ----------------------- | -------- | ------------------------------------------------- |
| `txnHash`               | `string` | Transaction has to be tracked.                    |
| `chainId`               | `number` | Transaction chain id                              |
| `maxConfirmationBlocks` | `number` | It is option field, default value is `50` blocks. |