Guest User

Untitled

a guest
Feb 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. { address: '0x9c0ac1e0f0a8e0b01c7b652d5fbe094ddff48b81',
  2. blockNumber: 704227,
  3. transactionHash: '0x5887ba4e15d51e1cfddf626ecf416a0002085a1e0929fffe1f90ad69d5040081',
  4. transactionIndex: 0,
  5. blockHash: '0x5f485133ec662f556d88affccc18a358375de160178c6cf7cc0cec678d833a2a',
  6. logIndex: 0,
  7. removed: false,
  8. event: 'ExampleEvent',
  9. args:
  10. { argOne: BigNumber { s: 1, e: 0, c: [Array] },
  11. argTwo: '0x374623456fa2' } }
  12.  
  13. event ExampleEvent(uint argOne, bytes32 argTwo)
  14.  
  15. import exampleContractObject from 'path/to/ExampleContract.json'
  16.  
  17. ExampleContract = web3.eth.contract(exampleContractObject.abi);
  18. contractInstance = ExampleContract.at('0x9c0ac1e0f0a8e0b01c7b652d5fbe094ddff48b81');
  19. exampleEvent = contractInstance.ExampleEvent();
  20.  
  21. exampleEvent.watch((err, result) => {
  22. // Do something
  23. }
Add Comment
Please, Sign In to add comment