Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!