[Ethereum] Where to find Ethereum token transfer record

blockchainether

Etherscan provides a convenient way to check the transaction history of a specific custom token. However, I was wondering where is the token transaction stored in the first place. I read some of the Ethereum logs, such as this one:

{"blockNumber":"3904411","blockHash":"0xf5f12d939472b79009f86163f6ec4440ed067fd14f222bc8e9cc9b82cdbaa71b","timeStamp":"1497983089","hash":"0xc658c9f5a4e2f34adb98d364c89c6d8f263f725d9318e84cae54f60d042fbb82","nonce":"0","transactionIndex":"13","from":"0x0008ec9f540ceb20cda44ec8503981ff58a3361b","to":"","value":"0","gas":"4000000","gasPrice":"57475936256","input":"","contractAddress":"0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0","cumulativeGasUsed":"2429602","gasUsed":"1976412","confirmations":"165071","isError":"0"}

I omitted the input field as it is a bit too long.

However, I think the value field only indicates the value of ETH. But the token transaction doesn't necessarily involves ETH transactions.

I understand there might be some clues in events log. But how can I get it from the log? Can I get it directly from blockchain, instead of the event logs?

Best Answer

I have a post explaining how to parse the Ethereum event log in detail.

Related Topic