动态

SEER主网节点get_seer_records_by_player接口优化 参数、数据结构变动

2019-04-19 21:58:05
暨上周节点开发升级后,在主网测试中,结合DAPP团队提出的需求,SEER底层开发团队再次对节点软件进行了升级,目前已在测试网络测试通过,并已经部署到用于测试的主网节点进行进一步调试。

更新的主网节点主要对DAPP开发中遇到的数据问题进行了优化,完善了get_seer_records_by_player等接口,同时,DAPP前端构架也正在进行相应的重新开发。

get_seer_records_by_player(const account_id_type& player,asset_id_type aid,uint8_t status,uint32_t duration_secs,time_point_sec stop,uint32_t limit)const;
status:1->opening;2->inputing;4->finished;7->opening+inputing+finished
e.g.:
>{"jsonrpc": "2.0", "method": "get_seer_records_by_player", "params": ["1.2.14227","1.3.0",4,2592000,"2019-04-18T15:26:44",2], "id": 1}
<{"id":1,"jsonrpc":"2.0","result":[[4,[{"id":"2.18.38278","player":"1.2.14227","room":"1.15.1174","input":1,"asset_id":"1.3.0","block_num":8905262,"when":"2019-03-25T10:15:30","amount":3000000,"paid":3000000,"sequence":11,"reward":0,"settle_time":"1970-01-01T00:00:00","result":0},{"id":"2.18.38268","player":"1.2.14227","room":"1.15.1174","input":0,"asset_id":"1.3.0","block_num":8905095,"when":"2019-03-25T10:07:09","amount":7000000,"paid":7000000,"sequence":3,"reward":0,"settle_time":"1970-01-01T00:00:00","result":0}]]]}

本次节点修改的节点暂时不需要进行硬分叉,将首先在API节点升级,供币比等DAPP使用。