Catalog npm
Back to packageRELEASE DETAILS

1.0.2

npm

@0xdeepak/transaction-monitor

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.

Published20 Jun 2023
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

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()

ParamterTypeDescription
txnHashstringTransaction has to be tracked.
chainIdnumberTransaction chain id
maxConfirmationBlocksnumberIt is option field, default value is 50 blocks.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
web3
Environment
{
  "local_name": "web3",
  "alias": false,
  "peer_metadata": null
}
^1.8.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-MUX4Jd0SDCqZ8IYO8ri3n2Loj30NWTt1zmiWIGFl1YjZBbg9yGyDls9jGPcudte836KQmsfVd5HYGFxLnDgYUA==",
  "shasum": "db61df7fdfdae7e241404abfbe96bd29b2b78bd4",
  "tarball": "https://registry.npmjs.org/@0xdeepak/transaction-monitor/-/transaction-monitor-1.0.2.tgz",
  "fileCount": 5,
  "unpackedSize": 3252,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIB83P2itRhCvAhn/lgp9n5L/T3cr6HhqR5koyNx5wVHRAiAQLYLpwoDNnGzqOI3HButcO1F8fB6zMsoAimI/PfGUBw=="
    }
  ]
}

Repository

PENDING
dsuthardeqode/txn-monitor

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c6dfc1ffe7c1956b842f900f7c1ee995e8d6fcc13041000388852393abda94de

Other collected versions

1.0.620 Jun1.0.520 Jun1.0.420 Jun1.0.320 Jun1.0.120 Jun1.0.014 JunView all collected versions →