I create an erc20 contract on my private blockchain. Then I transfer some tokens from one accout to another. Now I can check on the new block and find that transaction like this:
{
blockHash: "0x860ed4316ecd45b58e439f195a0312111c3e7ef73666d37f382ac2f64b2ce213",
blockNumber: 3519,
from: "0xecf6e8cbb8633a3c490d587fa357ad20e21d4b93",
gas: 90000,
gasPrice: 0,
hash: "0xa4aedd34557884e977f0981ab55035527fd990efbee9115d2b37df51ee79180e",
input: "0xa9059cbb00000000000000000000000089bb2b310f9379986972bc2940461540591a332d00000000000000000000000000000000000000000000043c33c1937564800000",
nonce: 13,
r: "0x4b4a8cfb24766e96abfafd2197773e8816683afd7191bb8720e3445ad02ab70c",
s: "0x69132b6f453aa23f2bd037d0a044b74d5dd1b4b0678af99e8581efc7f66cf8cd",
to: "0xae4193c5100e173c123619fc2b3845e1091e1aa8",
transactionIndex: 0,
v: "0xa96",
value: 0
}
but this doesn't show any information about the tokens I sent. Using Transfer.watch
can get what I want like this:
{ address: '0xae4193c5100e173c123619fc2b3845e1091e1aa8',
blockNumber: 3519,
transactionHash: '0xa4aedd34557884e977f0981ab55035527fd990efbee9115d2b37df51ee79180e',
transactionIndex: 0,
blockHash: '0x860ed4316ecd45b58e439f195a0312111c3e7ef73666d37f382ac2f64b2ce213',
logIndex: 0,
removed: false,
event: 'Transfer',
args:
{ from: '0xecf6e8cbb8633a3c490d587fa357ad20e21d4b93',
to: '0x89bb2b310f9379986972bc2940461540591a332d',
value: { [String: '2e+22'] s: 1, e: 22, c: [Array] } } }
I cannot check all the transactions through watch, and watch will not be always online. I want to check the transaction like etherscan.io:
What's the solution? Thank you!