Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

262
Visualizações
Get a list of all erc721 tokens on an address

I'm trying to make a program that transfers all non fungible tokens (erc-721) to a different address. I already have the transfer part set up. But I have no clue how to get all the tokens/nft contracts from an address as I wasn't able to find anything online.

I tried

    const myContract = new web3.eth.Contract(abi, token);
    let balance = await myContract.methods.balanceOf(address)//.call();

but for that, you'd still need the contract address. Is there any way to do what I'm trying to? Just to get all the tokens from the public (and or private) key?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

No, since every token is managed by different contracts, you'll need to know the addressed of those contracts and call balanceOf(address).

There are APIs that list the most common tokens ( contract addresses ), but they do not include all of them.

Or call a method on the user's wallet ( you'll need to call different methods depending on which wallet is the user connected with ) that could provide the current tokens that user has regitered on their wallet, and thats IF that wallet supports this function.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda