Skip to main content

Questions tagged [metaplex-js]

For questions relating to the [Metaplex JS SDK](https://docs.metaplex.com/sdks/js/)

Filter by
Sorted by
Tagged with
1 vote
1 answer
23 views

InvalidAccountData error on token transfer function ( using metaplex-toolbox )

I've created a dApp on React which uses the Solana blockchain to create, mint, and send utility tokens. I'm using @metaplex-foundation/umi and @mpl-toolbox to create the token, mint it to the creator'...
Sudhanshu Shekhar's user avatar
0 votes
0 answers
8 views

I am currently trying to implement the `printNewEdition` method while `prepend` priority fee and `blockhash` ` , err on `confirmTransaction` ,?

Create edition builder(); err: The transaction could not be confirmed TransactionExpiredBlockheightExceededError const editionBuilder = await metaplex .nfts() .builders() .printNewEdition(...
AlB's user avatar
  • 11
0 votes
0 answers
75 views

Metaplex storage upload: block height exceeded

we are using metaplex-foundation/js o upload files to arweave, but since a few days we run into an error block height exceeded for the fund transaction. it seems to be related to priority fees, but ...
Effe2's user avatar
  • 1,168
1 vote
1 answer
44 views

How can I enforce royalty?

I'm creating NFT using metaplex library in Javascript. I need to enforce royalty on my NFT but can't find any resource that explains how to achieve this. Can someone help find a solution? This a the ...
Amir reza Riahi's user avatar
1 vote
2 answers
180 views

How can I import bundlrStorage in metaplex library in js?

I've tried to use bundlrStorage but can' find where should I import it. const Metaplex = require('@metaplex-foundation/js'); // // // const MPX = Metaplex.Metaplex.make(connection).use(Metaplex....
Amir reza Riahi's user avatar
0 votes
0 answers
16 views

spl-token library failing to fetch rent exemption minumum?

I'm working with the @solana/spl-token lib, and when running createMint, I keep getting hit with TypeError: fetch failed. I have narrowed this down to the getMinimumBalanceForRentExemptMint function ...
Morgandril's user avatar
1 vote
0 answers
164 views

How to burn LP token using Metaplex

How do i burn lp token using metaplex burnv1? This is giving me the error "incorrect account owner" const umi = createUmi(RPC_ENDPOINT).use(walletAdapterIdentity(wallet)).use(...
bicced's user avatar
  • 31
0 votes
0 answers
107 views

Signing a transaction on the client side with walletAdapterIdentity plugin, but getting an error

Im trying to sign a transaction on the client side with walletAdapterIdentity plugin, but I'm getting the error: TypeError: wallet.signTransaction is not a function Its strange because ...
Gstax's user avatar
  • 31
0 votes
0 answers
51 views

pNFT delegate via metaplex umi

I'm trying to build a tx for the client to sign that will delegate the pNFT to a new address. I am using Metaplex's Umi and the walletAdapterIdentity plugin. I'm getting an error when I try to run my ...
Gstax's user avatar
  • 31
3 votes
1 answer
50 views

How to fetch all signatures for a given ata using UMI provider with mpl-toolbox plugin?

Given an ata, I need to fetch all signatures and then all transaction. With the solana spl-token lib I used the below: const proceedsAddress = getProceedsAddress(program.programId, pubkey); ...
Hyetigran's user avatar
  • 197
0 votes
1 answer
213 views

How to deploy a token and put it on a DEX

I just wanted to understand how I can create a real token and get it on an exchange. I was using the Solana Bootcamp presented by Nick Frosty as a basis but then I'm a bit confused on how to use the ...
johnny's user avatar
  • 69
1 vote
1 answer
112 views

mpl-token-metadata is breaks The React app

When I added the following line to my project, I saw that it crashed and React.js did not build the page. import * as mpl from "@metaplex-foundation/mpl-token-metadata"; Edit: I found some ...
Berkeley Cinar's user avatar
1 vote
1 answer
81 views

Update mint & freeze authority for an NFT

This is the command I'm using to update the authority of my NFT at address 9ZgNKyB7qoqpEeMmQqxg9MNJASCb5S9rc2sLN7ZbZ9w8: spl-token authorize 9ZgNKyB7qoqpEeMmQqxg9MNJASCb5S9rc2sLN7ZbZ9w8 mint ...
Sunidhi Singh's user avatar
1 vote
1 answer
141 views

Deserializing Metaplex Metadata For An SPL Token Creator

I am trying to deserialize the data on newly created tokens. For example I am using this transaction (Link To Solscan). I am trying to use the getCreateMetadataAccountV3InstructionDataSerializer....
jacobdadev's user avatar
1 vote
2 answers
304 views

Why would the metaplex token-metadata program identify a token with decimals and no edition as ProgrammableNonFungible?

Per the Metaplex token-standard documentation, "the Token Standard is set automatically by the Token Metadata program and cannot be manually updated" and "If the token has no (Master) ...
JTB's user avatar
  • 33
0 votes
1 answer
87 views

Metadata's key must match seed of ['metadata', program id, mint] provided

So the issue is revolving around this part of my code: const myKeypair = loadWalletKey("/root/.config/solana/id.json"); const mint = new web3.PublicKey("pubAddr"); ...
Solana Review's user avatar
1 vote
2 answers
80 views

Best way to get SPL tokens generated from site?

I'm working on a website where a user can create their own SPL token with metaplex metadata attached to it. Something that I want to keep track of is all the SPL tokens that were created using my DApp....
0x0x0x0's user avatar
  • 31
1 vote
1 answer
314 views

Create SPL using Metaplex: Failed to serialize or deserialize account data: Unknown

I'm trying to create a spl token on solana testnet using the following code. export async function createToken(walletKeyPair: Keypair) { const umi = createUmi('https://api.testnet.solana.com'); ...
kakakakakakakk's user avatar
0 votes
1 answer
66 views

How to set up http timeout when requesting metaplex findbymint

Some rpc calls using metaplex SDK metaplex.nft.findByMint seem to get stuck, is it possible to specify to solana/web3 or metaplex SDK the timeout by default? EDIT: I finally could set timeout by ...
Mario's user avatar
  • 1
0 votes
0 answers
65 views

how to find thhe eddsa for updating my spl-token

I'm looking for a way to update my eddsa variable, am using metaplex, am new to updating a token in using metaplex. there is my code `import * as mpl from "@metaplex-foundation/mpl-token-...
Emmanuel uzoezie's user avatar
0 votes
1 answer
153 views

Getting token metadata by name/symbol?

Given a token symbol (let's say $RAY), how can I programatically get all token addresses with that symbol? I know I can pull metadata by contract using: import { Metaplex } from '@metaplex-foundation/...
Abraham P's user avatar
  • 101
1 vote
2 answers
210 views

Get NFTs From a Collection in a wallet in js

I have found many questions similar to this on stack exchange, But I have not found any working solution. I want to Give the Public wallet address of a Solana wallet and Collection ID to code. In ...
M.amanullah behlim's user avatar
1 vote
3 answers
1k views

how to create a fungible token using umi from Metaplex

I have the following function, where I want to create a fungible token using UMI. const metadata = { name: "Solana Gold", symbol: "GOLDSOL", uri: "https://raw....
Jimii's user avatar
  • 1,478
1 vote
2 answers
105 views

Property 'run' does not exist on type 'Promise<FindNftsByOwnerOutput>'

I want to get Nft data from metaplex but i wanna know what does .run() work here and why .run() method does not exist here const nfts = await metaplex.nfts().findAllByOwner({owner: args.publicKey,})....
Divyansh Ch's user avatar
0 votes
1 answer
43 views

How can I add an nft to a collection TypeScript

Is there a way I can add an NFT to an already existing collection? I am the authority for this collection and was wondering whether this is possible in TypeScript without the use of metaplex candy ...
Jimii's user avatar
  • 1,478
0 votes
2 answers
401 views

Burn nft with mpl token metadata

I'm trying to use metaplex's mpl token metadata to get the burn instruction. Here is my code : import { burnNft } from '@metaplex-foundation/mpl-token-metadata' ... var umi = createUmi(SOLANA_CLUSTER) ...
Effe2's user avatar
  • 1,168
0 votes
1 answer
156 views

AccountNotFoundError: The account of type [BidReceipt] was not found at the provided address

I am encountering errors when using the Metaplex SDK. When I attempt to list an NFT on the auction house and place a bid on an NFT, I receive these error messages. The transactions appear to go ...
Maidi's user avatar
  • 454
2 votes
2 answers
109 views

How we can create auction contract using anchor?

I have minted NFT using an anchor and metaplex library. But now I want to create an auction on the same NFT, is it possible to create a contract using anchor and metaplex or do I have to use the core ...
Isha Padalia's user avatar
0 votes
1 answer
165 views

Getting error when I'm going to mint NFT on testnet using Metaplex

Here is my mint contract use anchor_lang::prelude::*; use anchor_lang::solana_program::program::invoke; use anchor_spl::token::mint_to; use anchor_spl::token::{MintTo, Token}; use mpl_token_metadata::...
Isha Padalia's user avatar
2 votes
1 answer
205 views

How to self revoke delegate of a nft using revoke function of Metaplex?

Using approve function of metaplex I had transferred the delegate of a nft to another wallet. How can I use the revoke function so that the second wallet can self revoke itself as the delegate without ...
Alwin Helor's user avatar
0 votes
0 answers
171 views

Mint Error TypeError: Cannot read properties of undefined (reading 'length')

I'm using @metaplex-foundation/umi version 0.8.2. I upgraded from 0.7.14 because the older version doesn't install correctly anymore(get error missing serializers module) with the new version my mint ...
Miles Donald's user avatar
1 vote
1 answer
113 views

How do I set a custom treeDelegate/update the tree delegate?

So the tree is being created by the user on the client side (as they are gonna pay gas haha) but my application needs to allow one public key (that is my application's wallet) to mint compressed NFTs (...
Anish De's user avatar
1 vote
1 answer
53 views

candyMachine.itemRemaining is BigNumber instead of number

I'm creating a function to tell the content of a candy machine and running into the issue that items remaining is in BigNumber instead of number. I want to show if zero items remaining then say the ...
Miles Donald's user avatar
1 vote
1 answer
71 views

Solana SMS 500 Error: Unable to resolve module with Metaplex SDK and Project Serum Anchor

Error: Unable to resolve module crypto from SolanaMobileDAppScaffold\node_modules@bundlr-network\client\build\common\transaction.js: crypto could not be found within the project or in these ...
solanagirl's user avatar
1 vote
0 answers
86 views

Cannot import mplCandyMachine() from @metaplex-foundation/mpl-candy-machine

The imports mentioned in the docs for the JS library are not valid. Following this guide: https://docs.metaplex.com/programs/candy-machine/getting-started, I get the error that 'mplCandyMachine() is ...
Muckee's user avatar
  • 121
0 votes
3 answers
92 views

nftData.map not working when trying to build an nftcard to display nfts of connected wallet fetched from "metaplex.nfts().findAllByOwner"

I'm able to fetch and log the NFTs fetched from a connected wallet but having trouble figuring out how to render the data to display the images and nft info. Everything I tried comes up blank. Here is ...
Miles Donald's user avatar
0 votes
1 answer
311 views

Error while mint NFT on Solana with Metaplex - erro: Failed to serialize or deserialize account data: Unknown

Describe the bug The error there is when I trying mintNft To Reproduce const metadataURI = 'https://metadata...' const myWallet = new Metaplex.NodeWallet(walletKeyPair); const connection = new ...
Jeff Mitnic's user avatar
2 votes
1 answer
114 views

Trouble when creating token for Buildspace core 5 final exercise

I'm trying to finish the final exercise of Buildspace Core 5 (here https://buildspace.so/p/solana-core/lessons/building-the-front-end ), but now when I try to regenerate the token using the frontend ...
Sergio's user avatar
  • 41
5 votes
2 answers
173 views

Cannot find module 'crypto' when using metaplex js sdk to upload metadata

Hi all I am experiencing an error finding the crypto module while attempting to upload NFT Metadata using the metaplex js sdk and bundlrStorage in react native with the following typescript code: ...
rxap's user avatar
  • 51
0 votes
1 answer
365 views

Error "An unexpected error occurred: "https://registry.yarnpkg.com/ccxt/-/ccxt-1.63.71.tgz: Request failed 404 Not Found." occurs when running install

I cloned metaplex(v1.1.1) and ran yarn install and got an error. If anyone knows how to solve this problem, please let me know. Environment node --version : v16.18.0 yarn --version : 1.22.19 ts-node --...
ysaito's user avatar
  • 21
2 votes
2 answers
61 views

How to flag inefficient funds Spl-tokens candy machine v3 metaplex js

I’m using react typescript, not next js, to make a candy machine v3 minting dapp using metaplex js. The mint is paid in Spl-token instead of Sol. How do you check and flag if user does not have enough ...
Miles Donald's user avatar
0 votes
1 answer
70 views

Clear JS - Metaplex is not a constructor

I am trying to construct new Metaplex with connection, but I am getting error Uncaught (in promise) ReferenceError: Metaplex is not defined My code: <h1>Moralis API Response:</h1> <div ...
Loo G's user avatar
  • 1
1 vote
1 answer
290 views

transaction.serialize is not a function

I use: **await metaplex.connection.sendTransaction(signedTxs)** but have this error: **transaction.serialize is not a function at StandardWalletAdapter.sendTransaction** do you know how to fix it?
Reza Rezaeian's user avatar
0 votes
1 answer
149 views

SPL + Metaplex JS SDK Cannot Mint NFT

I am trying to mint an NFT using a mixture of @solana/spl-token and @metaplex-foundation/js. I create the mint account: createMint( connection, payer, mintAuthority, freezeAuthority, ...
Sky020's user avatar
  • 137
3 votes
1 answer
249 views

How can I store more data on-chain in an NFT?

I am creating an NFT that stores a small amount of data - less than 1KB - inside it. The data should be on-chain - not in an external JSON file - as the owner should be able to destroy the NFT easily ...
mikemaccana's user avatar
  • 1,845
1 vote
0 answers
101 views

WalletSendTransactionError: unknown signer: <pubkey from phantom wallet>

How do I fix this error/what might be causing it? I'm trying to have a user use their wallet to sign a partial transaction that I built on my backend. WalletSendTransactionError: unknown signer: <...
xkycc's user avatar
  • 99
1 vote
2 answers
1k views

How to verify a Metaplex collection?

So my NFT metadata's collection field is like this: address: "string" key: "string", verified: false Also the collectionDetails is null. My question is how to verify the ...
agentp's user avatar
  • 235
0 votes
1 answer
1k views

Cant access mainnet-beta (403 forbidden)

I'm trying to get a list of NFTs held by a wallet and display them using metaplex js. The problem is when I try to connect to mainnet-beta, I get a 403 forbidden error. I read that Solana restricts ...
unknown90's user avatar
1 vote
2 answers
1k views

Give permission to freeze token account to another wallet

Is it possible to share the authority to freeze a token account with another wallet other than the token account owner? eg. A is the owner of token account and B is another wallet. I want to do so A ...
Muhit Raihan's user avatar
1 vote
0 answers
47 views

printNewEdition does not work after burning an edition

I use this code to print. metaplex.nfts().printNewEdition({ originalMint: new PublicKey(masterEditionMint) }) Then I use burn_edition_nft instruction to burn the minted one. Both work ...
Asim's user avatar
  • 11