# eth-tx-summary

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

Latest version **3.2.4** (published 2019-03-11) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.4 |
| Published | 2019-03-11 |
| First published | 2016-06-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 1016.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Maintainers | kumavis |

## Links

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

## Dependencies (10)

- [async](https://npm.io/package/async.md) ^2.1.2
- [clone](https://npm.io/package/clone.md) ^2.0.0
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [eth-query](https://npm.io/package/eth-query.md) ^2.0.2
- [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
- [ethereumjs-tx](https://npm.io/package/ethereumjs-tx.md) ^1.1.1
- [ethereumjs-vm](https://npm.io/package/ethereumjs-vm.md) ^2.6.0
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) ^5.0.1
- [ethereumjs-block](https://npm.io/package/ethereumjs-block.md) ^1.4.1

## Recent versions

- 3.2.4 (latest) — 2019-03-11
- 3.2.3 — 2018-06-01
- 3.2.2 — 2018-06-01
- 3.2.1 — 2018-04-08
- 3.2.0 — 2018-03-26
- 3.1.2 — 2017-10-27
- 3.1.1 — 2017-10-25
- 3.1.0 — 2017-10-25
- 3.0.1 — 2017-10-24
- 3.0.0 — 2017-10-23
- 2.2.5 — 2017-01-26
- 2.2.4 — 2016-11-11
- 2.2.3 — 2016-11-10
- 2.2.2 — 2016-11-10
- 2.2.1 — 2016-11-08
- … 7 more at https://npm.io/package/eth-tx-summary/versions

## README

### eth-tx-summary
replay a historical tx using a web3 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/eth-tx-summary · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
