Hi i am checking the blockfrost API and was wondering if i can get the complete_controlled Amount of ADA for a single (random in daedalus “receive” tab selected) address.
Requesting the /addresses/(ADDRESS) endpoint but getting the amount associated with this address not the complete one i see in my wallet. If i grab the stake_address from that response and call /accounts/STAKE_ADDRESS i get the correct amount of controlled ADA.
How does Daedalus then fetches the whole balance? Why cant i do that via blockfrost?
Thank you!
How does Daedalus then fetches the whole balance? Why cant i do that via blockfrost?
Daedalus shows you both your balance and your rewards for the account together. Rewards are associated with a stake address until they are withdrawn to an address - before that, it is not really associated with the address itself.
However, maybe, instead of checking one specific address you want to use the account?
The status of whether user is staking to a pool does not really matter tbh. What matters is what type of wallet user is using. Most of the end user facing wallets in cardano ecosystem provide HD Wallets which provide base addresses to user. Thus, unless a user goes out of the way (using CLI or APIs/SDKs) to manually derive a HD wallet using enterprise addresses, the wallets users use will predominantly include stake address, even if not registered on chain - when not participating in staking.
Thank you rdlrt, very appreciated. After reading this one i think only the wallet can get the complete look on overall funds. As i am not having the wallet access to all keys and txs i am not able to query the overall balance.