smartcontractsalgorand

How would I go about getting all the assets of an address?


So I'm trying to find out how can i get list of all the assets that are owned by a single address on Algorand.

How do I find it?


Solution

  • It's pretty simple.

    you can get list of all existing address from Algorand indexer from following API.

    List Of Address

    Once you've list of address you can pick one you want to use to get list of all the assets on that address.

    It can be done simply by querying that address on API for assets.

    localhost:8980/v2/accounts/{address}/assets
    

    more info about this can be found here

    Asset List

    After this you can get more details about each asset from it's asset id.

    And That's It! - if you found it helpful make sure to upvote this answer :).