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

159
Visualizações
MetaplexError: Invalid owner

Here is my code,

import { Connection, programs } from "@metaplex/js";
const {
  metaplex: { Store, AuctionManager },
  metadata: { Metadata },
  auction: { Auction },
  vault: { Vault },
} = programs;



const publicKey = "Gz3vYbpsB2agTsAwedtvtTkQ1CG9vsioqLW3cNpvZ";
const connection = new Connection("devnet");

// Get the Metadata
const metadata = await Metadata.load(connection, publicKey);
const vault = await Vault.load(connection, publicKey);

Error return new MetaplexError(ErrorCode.ERROR_INVALID_OWNER, 'Invalid owner');

It works in the case of Metadata but not working it's in the case of Vault or Auction

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

0

Here you are using one address that is publicKey for running two different types of functions which are completely Different. In this case vault pubkey refers to a different data and metadata pubkey refers to a different data. To explain it more Metadata.load(connection,pubkey) here pubkey is the metadataPubkey and refers to specific metadata whereas Vault refers to the Auction programs Manager's data. To deep dive, more into it you could go through the js repo code.

BTW Metaplex-foundation/js repo has been deprecated and soon going to be replaced by Metaplex-foundation/next-js which is in active development

enter image description here

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