What's the difference between getNewAddress and generateAddress?
Don't see the diferences between them.
Iota Stack Exchange is a question and answer site for users of Iota, the open-source cryptocurrency for IoT that does not use a blockchain. It only takes a minute to sign up.
Sign up to join this communityWhat's the difference between getNewAddress and generateAddress?
Don't see the diferences between them.
generateAddress
is used to deterministically generate an address from the index (e.g. you want to have the fifth address from your seed). You will use it if you want to show a list of transactions that have already been done, or to find your "old" addresses again.
getNewAddress
will automatically cycle through indexes and will search for an address that has not been spent yet. You will use this if someone wants to send you some IOTA, to make sure to give him an address that has not yet been spent and therefore can be safely spent later (without key reuse).