动态

SEER主网节点新功能开发完成 增加get_seer_records_by_player、get_player_info等接口

2019-04-12 13:24:43

2019年4月12日,SEER底层开发团队发布了最新版的节点软件,目前已在测试网络测试通过,并已经部署到用于测试的主网节点进行进一步调试。


更新的主网节点主要对DAPP开发中遇到的数据问题进行了优化,增加了get_seer_records_by_player、get_player_info等接口,同时,DAPP前端构架也进行了相应的重新开发,基于主网正式API节点的测试将在下周二进行。


1、get_seer_records_by_player(const account_id_type& player,asset_id_type aid,uint8_t status,object_id_type start,uint32_t limit)const;

status:0->opening;1->inputing;2->finished

e.g.:

>{"jsonrpc": "2.0", "method": "get_seer_records_by_player", "params": ["1.2.14227","1.3.0",2,"1.15.577",2], "id": 1}

<{"id":1,"jsonrpc":"2.0","result":[{"id":"2.18.10930","player":"1.2.14227","room":"1.15.577","input":0,"items":[{"block_num":5366939,"when":"2018-11-21T05:55:33","amount":1000000,"paid":1000000,"sequence":1}],"amount":1000000,"paid":1000000,"reward":2333300,"status":1},{"id":"2.18.11000","player":"1.2.14227","room":"1.15.589","input":0,"items":[{"block_num":5521711,"when":"2018-11-26T14:55:00","amount":4000000,"paid":4000000,"sequence":1}],"amount":4000000,"paid":4000000,"reward":0,"status":0}]}


2、get_player_info(const account_id_type& player)const;

e.g.:

>{"jsonrpc": "2.0", "method": "get_player_info", "params": ["1.2.14227"], "id": 1}

<{"id":1,"jsonrpc":"2.0","result":{"rooms":[["1.15.577","1.3.0"],["1.15.589","1.3.0"],["1.15.602","1.3.0"],["1.15.611","1.3.0"],["1.15.627","1.3.0"],["1.15.637","1.3.0"],["1.15.645","1.3.0"],["1.15.650","1.3.0"],["1.15.651","1.3.0"],["1.15.652","1.3.0"],["1.15.671","1.3.0"],["1.15.699","1.3.0"],["1.15.706","1.3.0"],["1.15.729","1.3.0"],["1.15.733","1.3.0"],["1.15.734","1.3.0"],["1.15.826","1.3.0"],["1.15.835","1.3.0"],["1.15.929","1.3.0"],["1.15.940","1.3.0"],["1.15.946","1.3.0"],["1.15.990","1.3.0"],["1.15.991","1.3.0"],["1.15.996","1.3.0"],["1.15.997","1.3.0"],["1.15.1004","1.3.0"],["1.15.1038","1.3.0"],["1.15.1056","1.3.0"],["1.15.1057","1.3.0"],["1.15.1067","1.3.0"],["1.15.1076","1.3.0"],["1.15.1152","1.3.0"],["1.15.1154","1.3.0"],["1.15.1155","1.3.0"],["1.15.1159","1.3.0"],["1.15.1160","1.3.0"],["1.15.1174","1.3.0"],["1.15.1175","1.3.0"]],"count_total":[["1.3.0",56]],"share_total":[["1.3.0",503100000]],"count_wins":[["1.3.0",19]],"share_wins":[["1.3.0",333951100]],"count_back":[],"share_back":[]}}