# irc-tx-summary

> replay a historical tx using a webu provider as a data source

Latest version **0.0.2** (published 2018-08-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install irc-tx-summary
pnpm add irc-tx-summary
yarn add irc-tx-summary
bun add irc-tx-summary
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-08-08 |
| First published | 2018-08-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 26.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | IrChain Team |
| Maintainers | irchain-io |
| Keywords | irchain |

## Links

- npm: https://www.npmjs.com/package/irc-tx-summary
- Repository: https://github.com/AuraMask/irc-tx-summary
- Homepage: https://github.com/AuraMask/irc-tx-summary#readme
- Issues: https://github.com/AuraMask/irc-tx-summary/issues
- npm.io page: https://npm.io/package/irc-tx-summary

## Dependencies (12)

- [async](https://npm.io/package/async.md) ^2.1.2
- [bn.js](https://npm.io/package/bn.js.md) ^4.11.8
- [clone](https://npm.io/package/clone.md) ^2.0.0
- [icjs-tx](https://npm.io/package/icjs-tx.md) ^0.0.2
- [icjs-vm](https://npm.io/package/icjs-vm.md) ^0.0.2
- [treeify](https://npm.io/package/treeify.md) ^1.0.1
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [icjs-util](https://npm.io/package/icjs-util.md) ^0.0.1
- [irc-query](https://npm.io/package/irc-query.md) ^0.0.1
- [icjs-block](https://npm.io/package/icjs-block.md) ^0.0.1
- [concat-stream](https://npm.io/package/concat-stream.md) ^1.5.1
- [end-of-stream](https://npm.io/package/end-of-stream.md) ^1.1.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-08-08
- 0.0.1 — 2018-08-07

## README

### irc-tx-summary
replay a historical tx using a webu provider as a data source

```js
generateTxSummary(provider, targetTx, function(err, summary){
  if (err) throw err

  summary.codePath.forEach(function(step, index){
    var stepNumber = index+1
    console.log(`[${stepNumber}] ${step.pc}: ${step.opcode.name}`)
  })
  console.log(summary.results)

})
```

outputs
```
[1] 0: PUSH1
[2] 2: PUSH1
[3] 4: MSTORE
[4] 5: CALLDATASIZE
[5] 6: ISZERO
[6] 7: PUSH2
[7] 10: JUMPI
[8] 11: PUSH1
[9] 13: PUSH1
[10] 15: EXP
[11] 16: PUSH1
[12] 18: CALLDATALOAD
[13] 19: DIV
...
[322] 3776: ISZERO
[323] 3777: PUSH2
[324] 3780: JUMPI
[325] 3781: PUSH2
[326] 3784: JUMP
{ gasUsed: <BN: 249f0>,
  createdAddress: undefined,
  vm: 
   { suicides: {},
     suicideTo: undefined,
     exception: 0,
     exceptionError: 'invalid JUMP',
     logs: [],
     gas: <BN: 1ef27>,
     return: <Buffer >,
     gasUsed: <BN: 1f598> },
  bloom: { bitvector: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... > },
  amountSpent: <BN: b30e8870ae000> }
```

---
_Source: https://npm.io/package/irc-tx-summary · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
