title: How can I retrieve the data from block in Ethereum blockchain?
body: <p>I did one small event registration smart contract (By using solidity()) in that I purchased a ticket for an event by giving the details of my email id and no.of tickets I want. Finally, I want to know how can I get back what are the details I was given. I am using testrpc, truffle, and private net.
  After clicking on purchase I got these details in tetrpc terminal</p>
  
  <blockquote>
    <p>Transaction:
    0x35e92857102b0dbacd43234d1ea57790405eb9bef956b245c6b7737bc23d011b<br>
    Gas usage: 106532   Block Number: 5   Block Time: Sat Feb 03 2018
    12:05:57 GMT+0530 (IST)</p>
  </blockquote>
  
  <p>I decode the transaction id like:</p>
  
  <pre><code>gopi145@ubuntu:~/EventRegistration-POC/EventRegistration$ truffle console
  truffle(development)&gt; web3.eth.getTransaction('0x35e92857102b0dbacd43234d1ea57790405eb9bef956b245c6b7737bc23d011b')
  { hash: '0x35e92857102b0dbacd43234d1ea57790405eb9bef956b245c6b7737bc23d011b',
    nonce: 4,
    blockHash: '0x7c790dae57babfe40d68d8aad94913c2b748501c5734aec86cc3fcf0afc4f154',
    blockNumber: 5,
    transactionIndex: 0,
    from: '0x031e060414a0d2573f5b10bc75c0894d72288292',
    to: '0xa88a366e888bbccfb78092957ffc7760bc7c6db1',
    value: BigNumber { s: 1, e: 18, c: [ 60000 ] },
    gas: 200000,
    gasPrice: BigNumber { s: 1, e: 0, c: [ 1 ] },
    input: '0xa28f161c00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000b6d40676d61696c2e636f6d000000000000000000000000000000000000000000' }
  truffle(development)&gt; 
  </code></pre>
  
  <p>but I didn't get the details I was given while purchasing. Please tell me how can I do this?</p>