Questions tagged [metaplex-js]
For questions relating to the [Metaplex JS SDK](https://docs.metaplex.com/sdks/js/)
83
questions
0
votes
0
answers
3
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-...
0
votes
1
answer
28
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/...
1
vote
2
answers
51
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 ...
1
vote
3
answers
187
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....
1
vote
2
answers
29
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,})....
0
votes
1
answer
31
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 ...
0
votes
2
answers
114
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)
...
0
votes
1
answer
33
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 ...
1
vote
1
answer
30
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 ...
0
votes
1
answer
72
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::...
2
votes
1
answer
89
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 ...
0
votes
0
answers
59
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 ...
1
vote
1
answer
44
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 (...
1
vote
1
answer
27
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 ...
1
vote
1
answer
42
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 ...
1
vote
0
answers
45
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 ...
0
votes
3
answers
81
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 ...
0
votes
0
answers
30
views
I have a problem with a non-base58 error
I'm trying to create a token but I'm getting the following error message.
Error: Non-base58 character
at Object.decode (C:\Users\luukh\OneDrive\Bureaublad\Solana-Token\node_modules@solana\web3.js\...
0
votes
1
answer
154
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 ...
2
votes
1
answer
75
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 ...
5
votes
2
answers
139
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:
...
0
votes
1
answer
284
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 --...
2
votes
2
answers
50
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 ...
0
votes
1
answer
36
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 ...
1
vote
1
answer
104
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?
0
votes
1
answer
88
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,
...
3
votes
1
answer
129
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 ...
0
votes
0
answers
140
views
WalletSendTransactionError: Signature verification failed when minting NFT from Candy Machine
I am trying to add the capability for a user to be able to mint and NFT from a Candy Machine from the frontend of my website. I am running into this error when the user approves the mint transaction (...
1
vote
0
answers
67
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: <...
1
vote
2
answers
504
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 ...
0
votes
0
answers
78
views
How do I get a user to pay for an NFT mint using Candy Machine?
I am trying to create an API call for my backend that would allow a user to mint an NFT through my frontend. How would I go about doing this? Specifically, how would I make the user pay seeing as the ...
0
votes
0
answers
128
views
How to create a Candy Machine using Metaplex JS SDK
I have a few questions that I have commented in the code included below that is meant to create a Candy Machine to mint song NFTs from. Note that all of the NFTs should be same (the only difference ...
0
votes
1
answer
334
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 ...
1
vote
2
answers
230
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 ...
1
vote
0
answers
33
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 ...
2
votes
1
answer
83
views
Can I choose token id to mint from Candy Machine collection?
I have Candy Machine V2 with 10 tokens with different 0.png - 9.png images.
I would like to mint those tokens in specific order, can I pass some id to mint function to achieve that?
For now I was ...
3
votes
0
answers
61
views
Metaplex JS SDK returning null when jsonLoaded is True
I'm having an issue while trying to get an NFT's JSON data. Regardless of mint address, I keep getting null.
(Using @metaplex-foundation/[email protected] on a free QuickNode RPC).
I'm trying the following:
...
0
votes
1
answer
187
views
How can I get the addresses of the owners of a perticular Nft using metaplex
What type of nft ( master, printed , normal edition ) should I need to share with user so that, later I can get the details who are the owners of that perticular Nft or whether user address contains ...
3
votes
1
answer
122
views
Not enough tokens to mint a limited edition
const freezeTx = await createFreezeDelegatedAccountInstruction(
{
delegate: WALLET.publicKey,
tokenAccount: new PublicKey("...
1
vote
0
answers
103
views
connection.confirmTransaction() doesn't wait for confirmation [closed]
I am trying to freeze an NFT with the Metaplex SDK. It all goes well and fine and waits for the transaction to be confirmed, then ends the function. I don't know what happened but now it's not waiting ...
1
vote
1
answer
123
views
Is it possible to fetch the delegate of a solana NFT/Token?
I want to fetch the delegated account/delegate of a specific NFT. Is this possible in either the native web3 API or Metaplex?
5
votes
1
answer
80
views
Possible to add multiple approveDelegateAuthority() in the same transaction?
I am trying to approve delegation of multiple NFTs without having multiple transactions. Is this possible with the metaplex js library? Here is the code:
await this.metaplex.tokens()....
2
votes
0
answers
52
views
TokenNotFoundError using getAssociatedTokenAddress() on MKRS NFT [closed]
I am working on a project that is pretty urgent and this error stays prominent when I try and fetch the Token Account of an MKRS NFT:
All other NFTs work fine, so I'm not sure why this one doesn't.
...
4
votes
1
answer
169
views
Metaplex Create NFT Error: Transfer: `from` must not carry data
I'm trying to combine the instructions from the metaplex create nft builder with a sol transfer instruction. I got this far:
let useNewMint = Keypair.generate();
let localMeta = Metaplex.make(...
1
vote
0
answers
87
views
Metaplex Create NFT Signature Verification Error
This is the code I have:
const { Metaplex, keypairIdentity, bundlrStorage } = require("@metaplex-foundation/js");
const { Connection, clusterApiUrl, Keypair } = require("@solana/web3.js&...
2
votes
1
answer
238
views
Cannot import @metaplex-foundation/js and run in nodejs
I try to run the example: https://github.com/metaplex-foundation/js-examples/tree/main/getting-started-expressjs
I import the @metaplex-foundation/js into a javascript file. However the i find the ...
1
vote
1
answer
57
views
why does my metaplex.candyMachines().create() variable returns a pending Promise?
i am building a test NFT-minting website on replit.co as a nodeJS project with an Express server
i am willing to use the Metaplex JS SDK and its Candy Machines in order to do so
i instantiated a ...
2
votes
1
answer
160
views
Do I have to verify all creators every time after creating an nft?
From the metaplex js test. After creating an NFT I need to verify all creator as such
metaplex.nfts().verifyCreator({ mintAddress: nft.address, creator });
Does it need to be done after every ...
2
votes
1
answer
67
views
How to take off Discord Roles within minutes of NFT holders when they sold or transfer their nfts?
We are building a Discord holder verification tool on solana and we are almost done with 80% work
We are using metaplex SDK to find nfts in the wallet of users.
But we have one query how to have a ...
0
votes
2
answers
443
views
Is it possible to upload an image to ARWeave using the metaplex JS SDK?
Note: There's a similar question Upload image and metadata to arweave by using `@metaplex-foundation/js` whose accepted answer is "I tried it, it doesn't work, don't use metaplex to upload the ...