3.2.4 • Published 5 years ago
eth-tx-summary v3.2.4
eth-tx-summary
replay a historical tx using a web3 provider as a data source
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> }
3.2.4
5 years ago
3.2.3
6 years ago
3.2.2
6 years ago
3.2.1
6 years ago
3.2.0
6 years ago
3.1.2
7 years ago
3.1.1
7 years ago
3.1.0
7 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.2.5
7 years ago
2.2.4
7 years ago
2.2.3
7 years ago
2.2.2
7 years ago
2.2.1
7 years ago
2.2.0
8 years ago
2.1.3
8 years ago
2.1.2
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.1
8 years ago
1.0.1
8 years ago