0

it is a few days ago that getAccountData has stopped returning value (returns always undefined). Does any of you know why?

This is the code:

    iota.getAccountData(seed, {start: 0,security: 2})
       .then(accountData => {
         console.log(accountData);
         return accountData;
       })
       .catch(err => {
        console.log(err);
        return err;
       })
9
  • What node are you using, and what iri version is that node running (getNodeInfo)? There are a few 1.6.0-RC nodes around currently, which still have some bugs that need to be fixed.
    – mihi
    Dec 20, 2018 at 13:09
  • currently i'm connected to nodes.testnet.iota.org. Two days ago it was working Dec 20, 2018 at 13:27
  • Ah, you are on testnet. Maybe it had some problems (right now I can query seed BE9NICE9TO9OTHERS9AND9DO9NOT9TAKE9MORE9THAN9TEN9PERCENT9OF9THE9REMAINING9BALANCE9 without problems). If problem persists, I'd ask in #testnet/#devnet channel on Discord about current testnet status
    – mihi
    Dec 20, 2018 at 20:59
  • thank you bu it doesn't work! can you share me your code please? it seem like that it doesn't receive any response. it is strange because it's always worked Dec 21, 2018 at 8:33
  • I copied your code (changed iota.getAccountData to iota.api.getAccountData) to browser console of "faucet.devnet.iota.org" (since I could not find any jsfiddle), and defined const iota = new IOTA({ provider: 'https://nodes.testnet.iota.org:443' });const seed = ...;
    – mihi
    Dec 21, 2018 at 12:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.