ERC721: How to get the owned tokens of an addressERC721 ownedTokens array length limitations on owners with thousands of tokensHow to know which ERC20 tokens a wallet owns?List ERC721 tokens owned by a user on a web pageProper way to implement “buyable” ERC721 tokensHow do ERC721 tokens get created on private blockchain?How can there be a balance for an ERC721 contract?Two ERC721 tokens that refer to the same metadataGet ERC721 token total supply using web3.jsWhat is the difference between the transfer and transferFrom function in an ERC721 contractDeploy ERC721 tokens to many addresses

Unexpected result from ArcLength

PTIJ: Who should I vote for? (21st Knesset Edition)

Do I need life insurance if I can cover my own funeral costs?

Are Roman Catholic priests ever addressed as pastor

Is there a symmetric-key algorithm which we can use for creating a signature?

How to deal with taxi scam when on vacation?

Are ETF trackers fundamentally better than individual stocks?

Brexit - No Deal Rejection

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

how to draw this figure in latex

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

How well should I expect Adam to work?

How to solve this challenging limit?

New passport but visa is in old (lost) passport

Convergence in probability and convergence in distribution

Why one should not leave fingerprints on bulbs and plugs?

How do I change two letters closest to a string and one letter immediately after a string using Notepad++?

My adviser wants to be the first author

Employee lack of ownership

Have the tides ever turned twice on any open problem?

I got the following comment from a reputed math journal. What does it mean?

Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

Life insurance that covers only simultaneous/dual deaths



ERC721: How to get the owned tokens of an address


ERC721 ownedTokens array length limitations on owners with thousands of tokensHow to know which ERC20 tokens a wallet owns?List ERC721 tokens owned by a user on a web pageProper way to implement “buyable” ERC721 tokensHow do ERC721 tokens get created on private blockchain?How can there be a balance for an ERC721 contract?Two ERC721 tokens that refer to the same metadataGet ERC721 token total supply using web3.jsWhat is the difference between the transfer and transferFrom function in an ERC721 contractDeploy ERC721 tokens to many addresses













2















There is a balanceOf function, but it only displays one uint (the token identifier)
I see most ERC721 tokens doing this so I am confused on how to view all owned tokens.










share|improve this question


























    2















    There is a balanceOf function, but it only displays one uint (the token identifier)
    I see most ERC721 tokens doing this so I am confused on how to view all owned tokens.










    share|improve this question
























      2












      2








      2








      There is a balanceOf function, but it only displays one uint (the token identifier)
      I see most ERC721 tokens doing this so I am confused on how to view all owned tokens.










      share|improve this question














      There is a balanceOf function, but it only displays one uint (the token identifier)
      I see most ERC721 tokens doing this so I am confused on how to view all owned tokens.







      solidity web3js erc-721






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      BlockchainBoyBlockchainBoy

      456




      456




















          2 Answers
          2






          active

          oldest

          votes


















          2














          The function balanceOf actually returns the number of owned tokens and not the identifier of an owned token.



          Therefore I'd assume the process could go something like this:



          1) Find out how many tokens an address has (balanceOf). If this is more than zero, continue the process.



          2) Find out which tokens exist in the contract. The standard offers no direct functionality for this so this depends on the implementation. Or, as is probably the case, simply start enumerating from zero upwards hoping that the tokens are enumerable in that way (and not assigned for example to random numbers). So you would check "does someone own token 0? does someone own token 1? .."



          3) Once you have found all the tokens owned by the address you can stop the process.






          share|improve this answer






























            1














            There is basically no way to easily view all owned tokens. My Ethereum wallets own probably lots of random worthless tokens which someone has airdropped and I don't even know about it.



            Some services (wallets) display many of the owned tokens. I'm unsure how exactly they do that but most likely they simply have a database of known token contracts and they check whether a certain address owns those known tokens.



            If I now created a new token and donated some of it to random wallets nobody would probably know about it unless I somehow tell wallet creators "please include my token contract in your checks".



            At least myetherwallet used to display all (known) ERC20 tokens still about a year ago but the quickly they gave up and last I checked you had to manually enter the contract address to see those tokens. The amount of different token contracts exploded a year ago and it was probably too much hassle to try to keep track of them (to store them all in their database).






            share|improve this answer























            • I am looking at a specific token, I don't see a easy way to check this from the token's contract

              – BlockchainBoy
              1 hour ago











            • Ah, sorry, I had misunderstood the question. My answer is not so relevant in that case.

              – Lauri Peltonen
              1 hour ago










            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "642"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f68438%2ferc721-how-to-get-the-owned-tokens-of-an-address%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            The function balanceOf actually returns the number of owned tokens and not the identifier of an owned token.



            Therefore I'd assume the process could go something like this:



            1) Find out how many tokens an address has (balanceOf). If this is more than zero, continue the process.



            2) Find out which tokens exist in the contract. The standard offers no direct functionality for this so this depends on the implementation. Or, as is probably the case, simply start enumerating from zero upwards hoping that the tokens are enumerable in that way (and not assigned for example to random numbers). So you would check "does someone own token 0? does someone own token 1? .."



            3) Once you have found all the tokens owned by the address you can stop the process.






            share|improve this answer



























              2














              The function balanceOf actually returns the number of owned tokens and not the identifier of an owned token.



              Therefore I'd assume the process could go something like this:



              1) Find out how many tokens an address has (balanceOf). If this is more than zero, continue the process.



              2) Find out which tokens exist in the contract. The standard offers no direct functionality for this so this depends on the implementation. Or, as is probably the case, simply start enumerating from zero upwards hoping that the tokens are enumerable in that way (and not assigned for example to random numbers). So you would check "does someone own token 0? does someone own token 1? .."



              3) Once you have found all the tokens owned by the address you can stop the process.






              share|improve this answer

























                2












                2








                2







                The function balanceOf actually returns the number of owned tokens and not the identifier of an owned token.



                Therefore I'd assume the process could go something like this:



                1) Find out how many tokens an address has (balanceOf). If this is more than zero, continue the process.



                2) Find out which tokens exist in the contract. The standard offers no direct functionality for this so this depends on the implementation. Or, as is probably the case, simply start enumerating from zero upwards hoping that the tokens are enumerable in that way (and not assigned for example to random numbers). So you would check "does someone own token 0? does someone own token 1? .."



                3) Once you have found all the tokens owned by the address you can stop the process.






                share|improve this answer













                The function balanceOf actually returns the number of owned tokens and not the identifier of an owned token.



                Therefore I'd assume the process could go something like this:



                1) Find out how many tokens an address has (balanceOf). If this is more than zero, continue the process.



                2) Find out which tokens exist in the contract. The standard offers no direct functionality for this so this depends on the implementation. Or, as is probably the case, simply start enumerating from zero upwards hoping that the tokens are enumerable in that way (and not assigned for example to random numbers). So you would check "does someone own token 0? does someone own token 1? .."



                3) Once you have found all the tokens owned by the address you can stop the process.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 56 mins ago









                Lauri PeltonenLauri Peltonen

                5,8382525




                5,8382525





















                    1














                    There is basically no way to easily view all owned tokens. My Ethereum wallets own probably lots of random worthless tokens which someone has airdropped and I don't even know about it.



                    Some services (wallets) display many of the owned tokens. I'm unsure how exactly they do that but most likely they simply have a database of known token contracts and they check whether a certain address owns those known tokens.



                    If I now created a new token and donated some of it to random wallets nobody would probably know about it unless I somehow tell wallet creators "please include my token contract in your checks".



                    At least myetherwallet used to display all (known) ERC20 tokens still about a year ago but the quickly they gave up and last I checked you had to manually enter the contract address to see those tokens. The amount of different token contracts exploded a year ago and it was probably too much hassle to try to keep track of them (to store them all in their database).






                    share|improve this answer























                    • I am looking at a specific token, I don't see a easy way to check this from the token's contract

                      – BlockchainBoy
                      1 hour ago











                    • Ah, sorry, I had misunderstood the question. My answer is not so relevant in that case.

                      – Lauri Peltonen
                      1 hour ago















                    1














                    There is basically no way to easily view all owned tokens. My Ethereum wallets own probably lots of random worthless tokens which someone has airdropped and I don't even know about it.



                    Some services (wallets) display many of the owned tokens. I'm unsure how exactly they do that but most likely they simply have a database of known token contracts and they check whether a certain address owns those known tokens.



                    If I now created a new token and donated some of it to random wallets nobody would probably know about it unless I somehow tell wallet creators "please include my token contract in your checks".



                    At least myetherwallet used to display all (known) ERC20 tokens still about a year ago but the quickly they gave up and last I checked you had to manually enter the contract address to see those tokens. The amount of different token contracts exploded a year ago and it was probably too much hassle to try to keep track of them (to store them all in their database).






                    share|improve this answer























                    • I am looking at a specific token, I don't see a easy way to check this from the token's contract

                      – BlockchainBoy
                      1 hour ago











                    • Ah, sorry, I had misunderstood the question. My answer is not so relevant in that case.

                      – Lauri Peltonen
                      1 hour ago













                    1












                    1








                    1







                    There is basically no way to easily view all owned tokens. My Ethereum wallets own probably lots of random worthless tokens which someone has airdropped and I don't even know about it.



                    Some services (wallets) display many of the owned tokens. I'm unsure how exactly they do that but most likely they simply have a database of known token contracts and they check whether a certain address owns those known tokens.



                    If I now created a new token and donated some of it to random wallets nobody would probably know about it unless I somehow tell wallet creators "please include my token contract in your checks".



                    At least myetherwallet used to display all (known) ERC20 tokens still about a year ago but the quickly they gave up and last I checked you had to manually enter the contract address to see those tokens. The amount of different token contracts exploded a year ago and it was probably too much hassle to try to keep track of them (to store them all in their database).






                    share|improve this answer













                    There is basically no way to easily view all owned tokens. My Ethereum wallets own probably lots of random worthless tokens which someone has airdropped and I don't even know about it.



                    Some services (wallets) display many of the owned tokens. I'm unsure how exactly they do that but most likely they simply have a database of known token contracts and they check whether a certain address owns those known tokens.



                    If I now created a new token and donated some of it to random wallets nobody would probably know about it unless I somehow tell wallet creators "please include my token contract in your checks".



                    At least myetherwallet used to display all (known) ERC20 tokens still about a year ago but the quickly they gave up and last I checked you had to manually enter the contract address to see those tokens. The amount of different token contracts exploded a year ago and it was probably too much hassle to try to keep track of them (to store them all in their database).







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 1 hour ago









                    Lauri PeltonenLauri Peltonen

                    5,8382525




                    5,8382525












                    • I am looking at a specific token, I don't see a easy way to check this from the token's contract

                      – BlockchainBoy
                      1 hour ago











                    • Ah, sorry, I had misunderstood the question. My answer is not so relevant in that case.

                      – Lauri Peltonen
                      1 hour ago

















                    • I am looking at a specific token, I don't see a easy way to check this from the token's contract

                      – BlockchainBoy
                      1 hour ago











                    • Ah, sorry, I had misunderstood the question. My answer is not so relevant in that case.

                      – Lauri Peltonen
                      1 hour ago
















                    I am looking at a specific token, I don't see a easy way to check this from the token's contract

                    – BlockchainBoy
                    1 hour ago





                    I am looking at a specific token, I don't see a easy way to check this from the token's contract

                    – BlockchainBoy
                    1 hour ago













                    Ah, sorry, I had misunderstood the question. My answer is not so relevant in that case.

                    – Lauri Peltonen
                    1 hour ago





                    Ah, sorry, I had misunderstood the question. My answer is not so relevant in that case.

                    – Lauri Peltonen
                    1 hour ago

















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ethereum Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid …


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fethereum.stackexchange.com%2fquestions%2f68438%2ferc721-how-to-get-the-owned-tokens-of-an-address%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Which organization defines CJK Unified Ideographs? The Next CEO of Stack OverflowCharacters which have several different shapesHow useful are the kanji in reading Chinese?Can Chinese readers scan large amounts of text faster/more accurately than their alphabet-using counterparts?丼: why is “well” also “bowl of food”?What Does Unicode 8.0 Mean For Chinese?How are blanks indicated for placeholders in Chinese (like ???)Is there a dictionary of standard character variants?How to display CJK Extension F?How is it decided as to which character is used on the tech terminology?How does 子 come to mean 'midnight'?

                    Shenzhen Football Club Índice Elenco atual | Títulos | Referências Ligações externas | Menu de navegaçãoGooglenotíciaslivrosacadêmicoeditar«"Elenco"»Site oficialexpandindo-oeee

                    When We Were Young (canção de Adele) Índice Antecedentes e lançamento | Faixas e formatos | Performances e covers | Desempenho nas tabelas musicais | Créditos | Histórico de lançamento | Referências Menu de navegação«Best albums of 2015»«Adele - When We Were Young (Radio Date: 22-01-2016)»«When We Were Young - Single by Adele»«Adele: Inside Her Private Life and Triumphant Return»«adele interview: world exclusive first interview in three years»«Tobias Jesso Jr: since Adele tweeted his song, he's even bigger than his dad»«Adele interviews Tobias Jesso Jr: 'I think that a couple of the ideas we had could be rap songs'»«Adele on Her Return: 'I Was So Frightened That No One Cared'»«Tobias Jesso Jr. on working with Adele: 'I was as nervous as shit'»«How Ariel Rechtshaid Pushed Adele To Her Limit»«Adele Previews 'When We Were Young' on '60 Minutes' Teaser, Tops Trending 140»«Adele Performs New '25' Ballad, "When We Were Young" Live: Watch»«Which '25' Song Should Be Adele's Next Single?»«Adele's 'When We Were Young' Confirmed As Second Single From '25'»«Adele's new single artwork for 'When We Were Young' is perfectly adorable»«Adele at the BBC review: honest, funny and spectacular – Celebrity News News»«'Saturday Night Live': Adele Sings 'Hello' and 'When We Were Young'»«'Adele: Live in New York City' NBC Special – Set List Revealed!»«Adele Closes Out the 2016 Brit Awards With 'When We Were Young'»«What Is The Adele Live Tour Set List? There's No Way She'd Leave Out These 8 Songs»«See Demi Lovato's Soaring Cover of Adele's 'When We Were Young'»«'The Voice': 5 Best Moments From Week 1 Blind Auditions»«Adele – When We Were Young (Media Control Charts)»«Adele – When We Were Young (Entertainment Monitoring Africa)»«Adele – When We Were Young (ARIA Charts)»«Adele – When We Were Young (Ö3 Austria Top 40)»«Adele – When We Were Young (Ultratop 50)»«Adele – When We Were Young (Ultratop 40)»«Adele – When We Were Young (Canadian Hot 100)»«Adele – When We Were Young (Tracklisten)»«Adele – When We Were Young (The Official Charts Company)»«Adele – Hello (IFPI Slovenská Republika)»«Adele – When We Were Young (Productores de Música de España)»«Adele – When We Were Young (Billboard Hot 100)»«Adele – When We Were Young (Pop Songs)»«Adele – When We Were Young (Adult Pop Songs)»«Adele – When We Were Young (Hot Adult Contemporary Charts)»«Adele – When We Were Young (Hot Dance Club Songs)»«Adele – When We Were Young (Rock Airplay)»«Adele – When We Were Young (IFPI Finlândia)»«Adele – When We Were Young (Syndicat National de l'Éditon Phonographique)»«Adele – When We Were Young (Magyar Hanglemezkiadók Szövetsége)»«Adele – When We Were Young (Irish Recorded Music Association)»«Adele – When We Were Young (Mexico Airplay)»«Adele – When We Were Young (VG-lista)»«Adele – When We Were Young (NZ Top 40 Singles)»«Adele – When We Were Young (MegaCharts)»«Adele – When We Were Young (Związek Producentów Audio Video)»«Adele – When We Were Young (Portugal Digital Songs)»«Adele – When We Were Young (UK Indie Singles Chart)»«Adele – When We Were Young (UK Singles Chart)»«Adele – When We Were Young (Sverigetopplistan)»«Adele – When We Were Young (Schweizer Hitparade)»«Adele – When We Were Young (Portugal Digital Songs)»«Music Canada – Gold/Platinum – When We Were Young»«NZ Top 40 Singles Chart»«Certified Awards»e