You are viewing a single comment's thread from:

RE: Tutorial: Viewing Steemit Account History

in #utopian-io7 years ago

Hey Leo, I just found your tutorial while investigating a strange thing when working with the Steem account history.

I am able to load the first 1000 records and then load another 1000, but at one point I do not get the complete data back but this:

…
2707    vote
2706    transfer
2705    curation_reward
0   account_create_with_delegation

The records for 1 through 2704 are missing. Is this a limitation of the SteemJS lib? Did you run into a similar thing when trying to retrieve the complete account history for a user?

Sort:  

I was able to get all the records I was looking for, so I didn't run into this. Can you point me to code? Data you're working with? I'd like to reproduce it and have a look.

Well, I'm doing nothing special. This is the call:

const accountHistoryData = await steem.api.getAccountHistoryAsync('cutemachine', -1, 6000)
console.log(accountHistoryData)

This should give me the complete history for my account, as I only have ~4000 records. Is it possible that I need to connect to a special server?

Oh, that clears things up. Thanks.

Is it possible that I need to connect to a special server?

It is. Only full nodes contain account history. They are pretty few.

Coin Marketplace

STEEM 0.21
TRX 0.20
JST 0.034
BTC 90827.60
ETH 3116.50
USDT 1.00
SBD 2.97