Skip to main content
5 votes
Accepted

Is there a method available to convert the web3 PublicKey to metaplex's publicKey?

To convert the public keys, use the fromWeb3JsPublicKey and toWeb3JsPublicKey methods from the @metaplex-foundation/umi-web3js-adapters package. You can read more on the documentation about the Web3....
beeman's user avatar
  • 950
5 votes
Accepted

How to upload files and images using umi

Umi AWS Storage Umi has an UploaderInterface, which you can see the documentation for here. Umi's umi-uploader-aws allows you to create an awsUploader when you create your Umi interface: import { ...
0xIchigo's user avatar
4 votes

is canopy depth the same as the length of the canopy field of the `fetchMerkleTree()` method from umi

The canopy array inside the MerkleTreeAccount object stores all of the nodes within the canopy depth excluding the root node. For instance, if a tree has a canopy depth of 3, then its canopy array ...
Loris Leiva's user avatar
3 votes
Accepted

Creating SPL token Non-Transferable Extension with metadata on React

Answering my own question, as I could solve the issue with this. // Size of MetadataExtension 2 bytes for type, 2 bytes for length const metadataExtension = TYPE_SIZE + LENGTH_SIZE; // ...
cablespecific's user avatar
3 votes

How to get Token 2022 Program metadata?

I've used the getTokenMetadata method from the @solana/spl-token package to get this info. // Retrieve and log the metadata state const metadata = await getTokenMetadata( connection, // Connection ...
beeman's user avatar
  • 950
3 votes
Accepted

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

Unfortunately, Umi doesn't currently support these methods in its RpcInterface but, for now, you have the following options: Option 1: Use the catch-all umi.rpc.call method by passing the name of the ...
Loris Leiva's user avatar
2 votes

Get the Root of a cNFT

You can access the root of your fetched Merkle Tree account using the getCurrentRoot helper function like so: const merkleTreeAccount = await fetchMerkleTree(umi, merkleTree); const root = ...
Loris Leiva's user avatar
2 votes
Accepted

Designate PublicKey as signer in Kinobi generated method

The idiomatic way to handle this use case is to keep the Signer requirement and use the createNoopSigner function provided by Umi. setListingStatus(umi, { verifier: createNoopSigner("...
Loris Leiva's user avatar
2 votes

About composable metadata standard in one dapp

Sure. @metaplex-foundation/mpl-token-metadata actually is some kind of umi plugin. E.g. if you mint a NFT using it you first set up umi, then run the mpl token metadata function: import { ...
Mark Sackerberg's user avatar
2 votes

Netlify suspended all my Solana dApps

Netlify is known to be somewhat unfriendly to crypto, and will sometimes shut sites (even non-crypto) down without warning. I'd recommend using a provider like Vercel or Cloudflare Pages instead.
Joey Meere's user avatar
  • 1,425
1 vote

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

If you look at the last failing instruction in your transaction, you'll notice that it's issuing a transfer from HCBDHVQTrfMVvQEQwowE6dFj6JqKM3U4aGeac1hukyYi to ...
Jon C's user avatar
  • 15.9k
1 vote

Cnft collection token documentation

You can check their tests where you can find each one of the steps https://github.com/metaplex-foundation/mpl-bubblegum/tree/main/clients/js/test Those tests should give me most of the workaround to ...
voidpixel's user avatar
1 vote

Unable to configure signer for delegate using walletAdapterIdentity (metaplex UMI)

You are using the PublicKey class from legacy web3.js as opposed to the PublicKey type that Umi expects — i.e. a simple base58 string opaque type. You need to replace things like: const ...
Loris Leiva's user avatar
1 vote

Recreate a versioned transaction that has no signatures - to be able to update blockhash

Unfortunately, this might be a problem with the API that you're using. If they provide a partially signed transaction, you cannot update the transaction without invalidating their signature, so you ...
Jon C's user avatar
  • 15.9k
1 vote

Metaplex CM Cannot Mint NFT - AnchorError caused by account: candy_guard. Error Code: AccountOwnedByWrongProgram

Problem This issue is caused by the candyGuard account. According to the error logs, its program owner is invalid — i.e. it is not owned by the Candy Guard program you are sending the transaction to. ...
Loris Leiva's user avatar
1 vote

Error when minting a pNFT collection with candy machine and umi

Unfortunately, the Public key does not match expected value error is burried in nested CPI calls and could refer to just about any account. However, looking at your code snippet, I can see you're not ...
Loris Leiva's user avatar
1 vote

how to create a fungible token using umi from Metaplex

As I told you in my previous answer's comments, I found this function (createAndMint), on Metaplex GitHub repo, that might be what you were looking for... You can set the supply with it, and it ...
jmontes's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible