Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

153
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda