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

124
Visualizações
Get the list of all Modules inside the Project on ThirdWeb

I was ultimately trying to get the list of all the modules I created inside my Project over the ThirdWeb.com dashboard and filter out the NFT collections out of it. So I asked on discord and someone told me to use the getAllModulesMetadata() to do so, I did something like this

const sdk = new ThirdwebSDK();

const NftModules = sdk
    .getAppModule("<Project Address>")
    .getAllModuleMetadata([ModuleType.NFT]);

I also did something like this but getting the same issue.
const sdk = new ThirdwebSDK();

async function getAllModules() {
    const NftModules = await sdk
      .getAppModule("<Project Address>")
      .getAllModuleMetadata([ModuleType.NFT]);
}

getAllModules();

Now it gives this error
Unhandled Runtime Error Error: call revert exception (method="getAllModulesOfType(uint256)", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.5.0)

Is something wrong? Any help will be appreciated :)

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

0

You need to pass in an RPC url or a signer in the ThirdwebSDK() constructor before you can use modules:

  • An RPC URL (which means the sdk is in read-only mode, you won't be able to change state of things on-chain, only fetch it). You can either use something like alchemy or use a public RPC for that particular chain.

  • A valid ethers signer (which could be connected from metamask, magiclink, coinbase wallet, etc)

  • A valid ethers.Wallet object, which can be initialised from a private key

const sdk = new ThirdwebSDK("your_rpc_url_or_signer");

Let me know if you still face any issues!

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