You are viewing a single comment's thread from:
RE: 财大气粗的steemit全节点
可以这样写,先读取最早的100个记录,然后读取100-200,然后200-300,300-400,直到没有记录
getAccountHistory('ericet',100,100);
function getAccountHistory(account,from,limit){
steem.api.getAccountHistory(account,from,limit,function(err,result){
if(result.length-1==limit){
getAccountHistory(account,from+limit,limit);
}
});
}