You are viewing a single comment's thread from:

RE: 财大气粗的steemit全节点

in #cn5 years ago

可以这样写,先读取最早的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);
}

});
}

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 58047.91
ETH 2348.61
USDT 1.00
SBD 2.37