Wallet account trx history and all related/registered addresses

I’m working on a multi-platform app with wallet functionalities. One of the things it does, is to allow users to “restore” their wallet account using the mnemonic phrase.

So far, I’ve been able to derive the stake address from a mnemonic phrase using cardano-serialization-lib. And from there, I know I can query db-sync to get all the addresses related to this stake addr and work out the total balance of the wallet from there.

But what about the UTXOs that are contained in payment addresses that weren’t generated using the stake key of the account? And I’ve also just recently learned about these pointer addresses that are also not associated with stake addresses.

What is the best way to retrieve the entire history of an account from only the mnemonic phrase?

UPDATE: studying CIP1852 and BIP44 right now… seems like the answer to my question is here in these docs.

Hi!

cardano-cli query utxo --address can give back the funds of a base address - and that address can hold several utxo-s…

And this command works on enterprise addresses and I assume it works on pointer addresses as well.
What I dont know is how the get the enterprise address of a wallet…

Thanks for the response, @laplasz. But that’s not what I’m looking for.

I will of course, eventually get to that step where I will check the UTXO balances of each address. But before I get there, I need to derive the addresses first.

What answered my question really are those documents I linked in my update above. Let me just add CIP0011, for others who arrive at this thread looking for the same info.

1 Like

In the following thread you see how that can be done via an external API