using bitcoin-qt on mac, I type this in console: importaddress someaddress "" false After I hit enter, the output is "null". What's wrong ?


This is normal - importing an address does not produce any output, and you will see null in the debug console.

| improve this answer | |
  • ok fine, except that nothing gets imported – cuibono Jan 19 at 7:25
  • If you don't rescan, you won't see any transactions relating to that address - your posted command also seems to be missing the actual address, but I assumed you had redacted that for privacy – Raghav Sood Jan 19 at 7:51
  • I have a pruned chain, how long will a rescan take ? – cuibono Jan 19 at 7:57
  • 1
    With a pruned chain, you'll only see transactions for the blocks that haven't been pruned yet even after a rescan - there is no way to do a complete history on a pruned node (you will, however, always get an accurate result for the currently spendable balance even with a pruned node) - a full rescan on my nodes tends to take about 40-80 minutes, depending on what else is running. Should be less for a pruned node – Raghav Sood Jan 19 at 8:26
  • when I try importaddress with rescan=true I get: Rescan is disabled when blocks are pruned (code -4). So it seems "importaddress" never works when in pruned mode – cuibono Jan 19 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.