Questions tagged [metaplex]
The metaplex tag has no usage guidance.
241
questions
0
votes
0
answers
15
views
Minting from CandyMachine in the front end: "Class extends value undefined is not a constructor or null"
I am trying to mint from candy machine in React and following this example from the docs:
import { mplCandyMachine } from '@metaplex-foundation/mpl-candy-machine';
import { createUmi } from '@metaplex-...
1
vote
2
answers
28
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
1
answer
13
views
Use candy machine in anchor program
Are there examples of calling candy machine and candy guard prgoram from an anchor program?
0
votes
1
answer
32
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....
0
votes
0
answers
13
views
CNFT Lock/Freeze possible?
It is possible to freeze/freezeDelegated for metaplex NFTs. Also pNFTs can be locked in user wallet. I am not able to find any such feature for cNFT, is it possible to freeze/lock cNFT in user wallet?
0
votes
1
answer
32
views
Collection is not showing in solscan (minting nft in solana with collection using metaplex)
I have minted a collection and nfts using some codes, and got to same result than those other stackoverflow questions. Nfts are ok, collection is there, but solscan is not showing it in the NFT sheet.
...
2
votes
1
answer
39
views
How to upload files and images using umi
How do I upload my NFT assets using umi from Metaplex.
The docs are in this page. https://github.com/metaplex-foundation/umi/blob/main/docs/storage.md
Is there a tutorial or code snippet of how I can ...
0
votes
1
answer
16
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,})....
2
votes
0
answers
48
views
Get owner from PDA if the owner is off-curve - DAS API
Is it somehow possible to get and deserialize the owner of the token account if the owner is a PDA and off-curve around this line - https://github.com/metaplex-foundation/digital-asset-rpc-...
2
votes
1
answer
130
views
Is there an audio file format supported by Metaplex
I've seen support for mp4 under the animation_url field and was wondering, is there a field for adding an audio file to an NFT using Metaplex?
0
votes
2
answers
31
views
Error on building sdk with solita on anchor-lang:0.28.0
No matching version is found by solita for anchor-cli: 0.28.0 on https://crates.io/crates/anchor-cli/versions , which gives error.
1
vote
2
answers
46
views
Need to Mint 1 NFT using Js and new Metaplex createNft: Fails ...Attempt to debit an account but found no record of a prior credit
I am trying to create one Js script to mint 1 NFT to test new Metaplex function createNft on: https://developers.metaplex.com/token-metadata/getting-started/js
I am testing on Devnet.
I am providing a ...
2
votes
1
answer
227
views
What does `NotFullyLoaded` error mean in candyMachine
I am trying to call the MintV2 candy machine instruction, but I am getting the error below originating from the Guard program.
Here is the code first
async function createCandyMachine() {
const ...
0
votes
2
answers
49
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
2
answers
56
views
How to create a metadata account with python?
Original Question
I would like to write a python script that can create tokens. Since the Metaplex Python API seems outdated and only targeted to NFTs, I decided to do it myself. With the help of the (...
0
votes
1
answer
28
views
Metaplex mpl token metadata returns transaction builder, can we get the instruction?
i'm trying to use metaplex mpl token metadata v3 to burn an nft, and i need the instruction.
When i use burnNft method, it returns a transaction builder instance.
Is there a way to get only the ...
2
votes
1
answer
21
views
How to clone metaplex metadata program to use with solana-test-validator
How do you set up solana-test-validator with the metaplex metadata program to run tests locally?
1
vote
1
answer
26
views
failed: exceeded CUs meter at BPF instruction #3831
I have an instruction which transfers tokens, pnft and closes the account. I get the above error when I call the instruction from the frontend.
Here's the instruction code
pub fn handler(ctx: Context&...
0
votes
1
answer
41
views
How do I breed to NFT on Solana?
I would like to breed NFTs on the Solana blockchain. Does Metaplex offer a feature for breeding two NFTs, or can we create a custom Rust program for this purpose?
1
vote
2
answers
71
views
How to mint multiple cNFTs?
I'm using this fonction to mint a cNFT createMintToCollectionV1Instruction but I don't want to wait 5-10sec before minting an other cNFT.
Has anyone found a solution to this problem?
1
vote
1
answer
62
views
How Print a new Edition from a Master Edition? - "failed: Cross-program invocation with unauthorized signer or writable account"
Guys i am trying to use this function to create a copy of an existing nft, this is the code of the function i have in my solana program:
Metaplex Dcos
pub fn mint_new_edition(
ctx: Context<...
2
votes
1
answer
57
views
Metaplex Transfer pNFT failing
I am trying to transfer a pNFT via an anchor program, but it is failing at the TokenProgram.
Logs below
0
votes
1
answer
36
views
Best way to batch or parallelize compressed NFTs mints/transfers?
I'm currently building an app where cNFTs are minted by a backend service on behalf of users, therefore not directly minted by users (like with Candymachine).
Ideally, I was thinking about having a ...
1
vote
1
answer
20
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 ...
1
vote
3
answers
58
views
How do I ge the `Token Record` account for a pNFT
Is there a way to access a programmable NFT's Token Record Data using anchor in Rust?
Is there a function for this provided by the Metaplex SDK? I have the address of the account and I just need to ...
0
votes
0
answers
13
views
java.lang.IllegalArgumentException: Size must be known in advance when using READ_ALL
I want to fetch an Account using the SolanaKt library
Code:
try {
val serializer = SolanaAccountSerializer(ProgramInfo.serializer())
val account = solana.api.getAccountInfo(serializer, ...
0
votes
1
answer
53
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::...
0
votes
1
answer
71
views
"Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: custom program error: 0x4b"
I have also checked the error repository of metaplex and there i have found this msg:
"#[error("This instruction was deprecated in a previous release and is now removed")]
Removed, //...
0
votes
0
answers
29
views
Help Needed to create PNFT list/sell instruction through Metaplex AuctionHouse
For Non pnft list transactions, I am using the below accounts
export declare type SellInstructionAccounts = {
wallet: web3.PublicKey;
tokenAccount: web3.PublicKey;
metadata: web3.PublicKey;...
3
votes
1
answer
39
views
Getting SendTransactionError
I'm getting "SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Program failed to complete" Where did i go wrong?
const ...
2
votes
1
answer
55
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 ...
2
votes
1
answer
47
views
umi functions causing Application error: a client-side exception has occurred
My website works fine locally but when deployed to Vercel, I get a client-side exception error. After checking other parts of the website, I've found the culprit to be in my UMI function code. I'm ...
0
votes
1
answer
49
views
how many times go to update solana token metadata?
how many times go to update solana token metadata. I was Updated few times using createUpdateMetadataAccountV2Instruction but still my image doesn't appear.
0
votes
1
answer
27
views
InstructionError: [ 0, 'ComputationalBudgetExceeded' ] Program failed to complete
//lib.rs code
use anchor_lang::prelude::*;
pub mod mint;
pub mod sell;
//pub mod swap;
use mint::*;
use sell::*;
//use swap::*;
declare_id!("H5sYvvHMEVSJb2QEwrhCmxGKsMHuntiWz3bmVfxUcBnt")...
2
votes
1
answer
33
views
CandyMachine V2 mints fail with CIVIC since Phantom Wallet v23.X update
I started receiving a strange error when trying to mint via Candymachine V2 on my mint page following the latest major version release of the Phantom Wallet (I believe this toe be v23.X).
The mint ...
1
vote
1
answer
121
views
Mint from V3 candy machine using Umi. Throws Anchor error - account not insitialised
I have used the Sugar CLI to upload a test candy machine with just 2 items and the collection data, and then set up a simple mintLimit guard.
Am am able to find the candyMachine and see all of the ...
2
votes
1
answer
73
views
Error fetching Account Info on Android Kotlin `java.nio.BufferUnderflowException`
I want to fetch an account's data using [Metaplex KT Library][1].
I am still facing error while fetching an account:
code:
try {
val serializer = SolanaAccountSerializer(...
0
votes
0
answers
44
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
48
views
Error while sending an Instruction in Android (Kotlin): Cross-program invocation with unauthorized signer or writable account
I am getting some error while sending a transaction in Android (Kotlin)
Error processing Instruction 0: Cross-program invocation with unauthorized signer or writable account
This is the function ...
4
votes
2
answers
139
views
minting cNFTs with Solana Pay QR code
I'm trying to create a qr code so people can scan it and mint a cNFT. I'm using a transaction request as shown in the Solana Pay docs and using Metaplex Bubblegum for state compression. This is on ...
0
votes
0
answers
37
views
How to invoke mpl_token_metadata::processor::lock from custom onchain program?
I have been working with pNFT lock function but I can't figure out how to invoke the mpl-token-metadta function.
Anyone has an experience with lock function?
Here is references.
https://github.com/...
2
votes
2
answers
36
views
How to update items available count on candy machine UI after someone mints? Next app using umi
I built a ui on next js using typescript and need the items available count to not only show currently available items but to update after a user mints. Currently, I'm using candyMachine.data....
3
votes
2
answers
75
views
List my NFT to auctionhouse using Metaplex JS SDK returns Cannot read properties of undefined (reading 'currency')
I am trying to use Metaplex JS SDK to list NFT. My code is as per below:
const METAPLEX = Metaplex.make(connection)
.use(keypairIdentity(wallet))
.use(bundlrStorage({
address: 'https://...
1
vote
1
answer
22
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
0
answers
39
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 ...
1
vote
2
answers
61
views
Can I use the meta plex js SDK to update SPL token meta data?
I am creating a token mint and was wondering, if i can use the meta plex sdk to upload meta data for it.
I am trying like this.
const mint = await createMint(
pg.connection,
pg.wallet.keypair,
...
0
votes
1
answer
59
views
Why does fetching of compressed nfts by collection/owner not work?
Context: Ran the solana compressed nfts scripts successfully about 2 weeks ago from creating and minting to fetching by collection/owner using the helius devnet rpc endpoint.. This is the link to the ...
1
vote
0
answers
130
views
Minting candy machine v3 umi getting incorrect account owner error using express js endpoint
I am using the below in an endpoint to create a candy machine. Currently getting an incorrect account owner following the guide provided here https://docs.metaplex.com/programs/candy-machine/managing-...
0
votes
0
answers
89
views
Rust Program to Transfer Pnft
Im trying to update my program to be able to transfer pnfts from the payer wallet to another wallet but facing errors:
"11111111111111111111111111111111's signer privilege escalated",
'...
2
votes
2
answers
225
views
Attach metadata to token with metaplex
I am trying to attach metadata uploaded to arweave to a token. I am using createCreateMetadataAccountV3Instruction from @metaplex-foundation/mpl-token-metadata, but I am getting an error.
This is the ...