Revisions and Commits
R11 Ethereum Web Wallet | |||
R11:b94593a34828 add tx syncer, tx UI, and reduce output data of /tx/info | |||
R11:7a1a13ea9597 add transaction query API |
Related Objects
- Mentioned Here
- T54: Transaction synchronization for accounts
Event Timeline
Transaction object: {
"hash", "from":"0x...", "to":"0x...", "value":..., "gasPrice":..., "gasLimit":..., "nonce":..., "input":"BA5E64",
(followings are unused now:)
"r":"...", "s":"...", "v":"...",
(followings are optional, only available when mined in a block:)
"blockHash":"0x...", "blockNumber":..., "indexInBlock":...,
(followings are optional, belongs to receipt:)
"contractAddress":"0x....", "gasUsed":..., "cumulativeGasUsed":..., "root":"..."
(timestamps:)
"timeCreated":..., (when created here)
"timePending":..., (when seen as pending transaction)
"timeMined":..., (when included in a block)
"timeExist":... (==timeCreated when created here, or ==timePending when seen in pending transactions, or ==timeMined when mined in a block),
"timeNoticed":... (when queried and saved)
}
Transaction info object: {
"hash", "from":"0x...", "to":"0x...", "value":...,
(followings are optional, only available when mined in a block:)
"blockHash":"0x...", "blockNumber":..., "indexInBlock":...,
(followings are optional, belongs to receipt:)
"contractAddress":"0x....",
(timestamps:)
"timeExist":... (==timeCreated when created here, or ==timePending when seen in pending transactions, or ==timeMined when mined in a block)
}
GET /api/tx/{hash}: returns 404, or 200 with tx object
GET /api/account/{address}/txinfos: returns 404, or 200 with array of tx info objects
ISSUE: web3j could not parse pending transactions returned by ethGetTransaction correctly (missed block number)
Change:
GET /api/account/{address}/txinfos
to:
GET /api/tx/info: returns 404, or 200 with array of tx info objects of all addresses belong to the user