truffleでイベント監視
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
truffle(ropsten)> event = eb.Transfer() truffle(ropsten)> event.watch((e,r)=>{console.log(r)}); truffle(ropsten)> { address: '0x4d5a5f3b612f3b48780b0fc0a5c7ca87d7a89684', blockNumber: 3079488, transactionHash: '0x951ec7efa7a2da35e5358f56466506319852aa7eaeada51d20657eaaec2d00bb', transactionIndex: 19, blockHash: '0xc093ef62458d3c31cacbd024fe99932b95d0c872388e48a15decef1cb4803652', logIndex: 5, removed: false, event: 'Transfer', args: { from: '0x4d5a5f3b612f3b48780b0fc0a5c7ca87d7a89684', to: '0x5ed767cfebf5953835340e012fee4048661b7d1b', tokenId: { [String: '7'] s: 1, e: 0, c: [Object] } } } truffle(ropsten)> |