I’m looking for guidance on creating NFTs programmatically through Magic Eden’s platform. I’ve been working with Candy Machine for minting and have experience using web3 calls like this:
await nftFactory.rpc.createToken(authorityBump, {
accounts: {
factoryProgram: factoryProgramAddress,
factoryAuthority,
buyer: buyer,
treasury: nftFactory.state.vault,
tokenMint: tokenMint.publicKey,
tokenMetadata: metadataAddress,
edition,
creatorAuthority: buyer,
ownerAuthority: buyer,
metadataProgram: METADATA_PROGRAM_ID,
splTokenProgram: SPL_TOKEN_PROGRAM_ID,
systemProgram: SystemProgram.programId,
rentSysvar: anchor.web3.SYSVAR_RENT_PUBKEY,
clockSysvar: anchor.web3.SYSVAR_CLOCK_PUBKEY,
slotHashesSysvar: anchor.web3.SYSVAR_SLOT_HASHES_PUBKEY,
instructionsSysvar: anchor.web3.SYSVAR_INSTRUCTIONS_PUBKEY,
},
extraAccounts:
extraAccounts.length > 0 ? extraAccounts : undefined,
})
Is there a similar approach for Magic Eden’s minting process? What would be the equivalent method or API call?
Hey Isaac! Really interesting question - I’ve been wondering about this too.
Magic Eden doesn’t expose direct RPC methods like your candy machine setup. They handle minting through their own infrastructure and APIs. Have you checked their developer docs or API endpoints?
I’ve seen people use Magic Eden’s marketplace API for some operations, but I’m not sure if it covers actual minting or just listing/trading existing NFTs.
What are you trying to do with Magic Eden specifically? Mint directly to their marketplace or something else? Might be other ways to approach this depending on what you’re after.
You could try their developer community or Discord - they’d know if they support programmatic minting or if you need to stick with candy machine then list on Magic Eden after.
What’s your use case? Building an automated NFT generation system?
Magic Eden is just a marketplace - they don’t handle minting directly. I’ve tested their platform extensively and they don’t have RPC methods like Candy Machine’s createToken. Their API is built for marketplace stuff: fetching collections, getting token info, and handling trades for existing NFTs. Here’s what actually works: mint through Metaplex programs first, then use Magic Eden’s verification process. You’ll have to stick with your current Candy Machine setup for creating tokens since Magic Eden uses standard Solana NFT programs behind the scenes. Their REST API has endpoints for managing collections and marketplace interactions, but minting stays separate. Keep your existing web3 setup for token creation and check out their API for marketplace features after minting.
magic eden aint a minting platform. u gotta create tokens with candy machine then list em on magic eden. their API is focused on marketplace stuff, so it’ll help for collections but not for direct minting. check out metaplex’s JS SDK for creating NFTs programmatically.