Closed jasonlynx closed 5 years ago
trungtt@trungtt-laptop:~$ cleos --wallet-url http://localhost:6666 --url http://138.197.194.220:8877 get actions eosio.token
# seq when contract::action => receiver trx id... args
================================================================================================================
# 207 2019-05-19T15:28:51.000 eosio.token::transfer => eosio.token 5aa5c734... {"from":"usertrung123","to":"eosio.ramfee","quantity":"0.004...
# 208 2019-05-20T04:12:05.000 eosio.token::transfer => eosio.token 07f4c2b7... {"from":"useraaaaaaaa","to":"eosio.ram","quantity":"0.1908 X...
# 209 2019-05-20T04:12:05.000 eosio.token::transfer => eosio.token 07f4c2b7... {"from":"useraaaaaaaa","to":"eosio.ramfee","quantity":"0.001...
# 210 2019-05-20T04:12:05.000 eosio.token::transfer => eosio.token 07f4c2b7... {"from":"useraaaaaaaa","to":"eosio.stake","quantity":"20.000...
**# 211 2019-05-20T04:21:39.000 eosio.token::transfer => eosio.token 31a154e5... {"from":"usertim12345","to":"fsdeveloper1","quantity":"25000...**
# 212 2019-05-20T04:33:09.500 eosio.token::transfer => eosio.token 52914db0... {"from":"usertim12345","to":"eosio.ram","quantity":"2480.535...
# 213 2019-05-20T04:33:09.500 eosio.token::transfer => eosio.token 52914db0... {"from":"usertim12345","to":"eosio.ramfee","quantity":"12.46...
# 214 2019-05-21T14:07:14.500 eosio.token::transfer => eosio.token c9200dff... {"from":"milatrinh123","to":"eosio.ram","quantity":"0.9950 X...
# 215 2019-05-21T14:07:14.500 eosio.token::transfer => eosio.token c9200dff... {"from":"milatrinh123","to":"eosio.ramfee","quantity":"0.005...
# 216 2019-05-21T14:28:11.500 eosio.token::transfer => eosio.token 4d6c4f12... {"from":"usertrung123","to":"eosio.ram","quantity":"9.9500 X...
# 217 2019-05-21T14:28:11.500 eosio.token::transfer => eosio.token 4d6c4f12... {"from":"usertrung123","to":"eosio.ramfee","quantity":"0.050...
# 218 2019-05-21T16:03:35.000 eosio.token::transfer => eosio.token 2b2b7ba3... {"from":"milatrinh124","to":"eosio.stake","quantity":"1.6446...
# 219 2019-05-21T16:05:09.500 eosio.token::transfer => eosio.token 7a2d4393... {"from":"milatrinh124","to":"eosio.stake","quantity":"2.4176...
# 220 2019-05-21T16:06:00.500 eosio.token::transfer => eosio.token 4f3dcb18... {"from":"milatrinh124","to":"eosio.stake","quantity":"5.4718...
# 221 2019-05-21T16:06:51.500 eosio.token::transfer => eosio.token aea587a5... {"from":"milatrinh124","to":"eosio.stake","quantity":"3.6348...
# 222 2019-05-21T16:07:27.500 eosio.token::transfer => eosio.token 4f3b43bb... {"from":"milatrinh124","to":"eosio.stake","quantity":"8.2876...
# 223 2019-05-21T16:33:11.500 eosio.token::transfer => eosio.token 2ff4ebdf... {"from":"milatrinh123","to":"eosio.stake","quantity":"1.6392...
# 224 2019-05-21T16:35:20.500 eosio.token::transfer => eosio.token 76b6c9ae... {"from":"milatrinh123","to":"eosio.stake","quantity":"6.6286...
# 225 2019-05-21T16:46:18.500 eosio.token::transfer => eosio.token e0ef4535... {"from":"usertrung123","to":"eosio.stake","quantity":"119508...
# 226 2019-05-21T16:54:54.500 eosio.token::transfer => eosio.token f69fc6b7... {"from":"usertrung123","to":"eosio.stake","quantity":"33261....
The above output is the result of querying the actions on the account "eosio.token" that is like an intermediate account of all kinds of transfers triggered by stake/ram/transfer. From the returned result, I just need to to make some filter based on the field "to" (as highlighted) to determine the "sender" info of for example the account "usertim12345". So, we don't have to go via any smart contract. Even users later can use other wallets, then we can still record the XFS transfer info.
XFS recieved should show in the wallet transaction table. Similar to how send transfers are shown.