revealAddressesTo

abstract fun revealAddressesTo(keychain: KeychainKind, index: UInt): List<AddressInfo>(source)

Reveal addresses up to and including the target index and return an iterator of newly revealed addresses.

If the target index is unreachable, we make a best effort to reveal up to the last possible index. If all addresses up to the given index are already revealed, then no new addresses are returned.

WARNING: To avoid address reuse you must persist the changes resulting from one or more calls to this method before closing the wallet. See `Wallet::reveal_next_address`.