Skip to main content
10 votes

Non Fungible Token XCM transfer documentation

This is not quite possible on XCM V2, but will be very soon once V3 gets into the runtime. The PR for adding non-fungibles is here: https://github.com/paritytech/polkadot/pull/4950
joepetrowski's user avatar
  • 2,975
7 votes
Accepted

How to mint offchain NFT in pallet_nfts

In order to sign the mintData object, you would need to get its encoded version first. The easiest way to do this is to open the mintPreSigned extrinsic's form and fill it with the data: For the ...
Jegor Sidorenko's user avatar
6 votes

Non Fungible Token XCM transfer documentation

Aside from the PR that @joepetrowski mentioned, you may want to check out my answer here to decide how exactly you would like to transfer your NFTs, as NFT transfers also use the same models as ...
Keith Yeung's user avatar
  • 2,121
4 votes
Accepted

Make token/nft transfer within smart contract

The answer to your question: Right now ink! generates a separate structure for cross-contract calls. It has the name {}Ref where {} is the name of the contract struct. To use it, you need to export ...
Green Baneling's user avatar
4 votes
Accepted

How to implement NFTs on a substrate chain?

For a general overview and real life ecosystem examples have a look at the polkadot wiki NFTs. In addition, the NFTs pallet and the Uniques pallet are definitely worth looking into!
Daan van der Plas's user avatar
4 votes

Access your NFTs using PolkadotJS API

If you want to gain Access to NFTs which you purchased on Singular, then you are dealing with RMRK NFTs which live in Smart Contracts deployed to the Moonriver Network which is a L1 parachchain on ...
Achim's user avatar
  • 575
4 votes

How to mint offchain NFT in pallet_nfts

Offchain minting is a feature built into the NFTs pallet. It is the ability to mint NFTs by having the issuer of a collection sign encoded mint data offchain, this encoded mint data will either ...
Bruno's user avatar
  • 8,335
3 votes

How to restrict the minting in pallet-nft?

Referring to pallet-nfts, for creating a collection you have the CreateOrigin (see here). For minting nfts it depends on the config of your collection, more specifically the MintType. You can find ...
Daan van der Plas's user avatar
3 votes

error: the wasm*-unknown-unknown targets are not supported by default

It was a bit tricky to find a solution, thanks to the parity team member who helped with this problem. When working with pallet-nft-fractionalization which is available only after v0.9.43.we would ...
Abhishek Ekaanth's user avatar
3 votes

Polkadot.js API how to add the name of an item and collection of NFT's using uniques

name comes from ipfs JSON object that you can add using setMetadata call. Let's say you have an object like { name: 'My NFT #1', description: 'My first NFT on pallet uniques', } You then pin this ...
Yuri's user avatar
  • 173
3 votes

How to implement NFTs on a substrate chain?

To the Daan's question I I would like to add: A tutorial from the Parity Blog How we created 50K Unique NFTs for Polkadot Decoded 2022 . A project from the ecosystem, RMRK: a set of NFT legos that ...
Alex Bean's user avatar
  • 5,757
3 votes

Standards for PSP34 thumbnail/image and resource url?

PSP34 is a standard at the contract level targeting contracts-pallets. As mentioned in the standard: Attributes are more flexible than single tokenURI function like in Erc721. The list of required ...
P.Ossun's user avatar
  • 1,219
2 votes

How do conventional block chains access NFTs

That is exactly how it works. There is a back end which stores all the consolidated remarks from the chain into a final state of NFTs. These are rendered for you as you log in. Due to the nature of ...
Swader's user avatar
  • 176
2 votes

Access your NFTs using PolkadotJS API

So, thanks to Achim, in the rmrk-tools repo, you can use: https://github.com/rmrk-team/rmrk-tools#fetchremarks fetchRemarks(api, to, from, prefixes); method call It's not pretty but it's a start: ...
rarara's user avatar
  • 241
2 votes

Non-uint256 TokenID for 721/1155 NFTs? (arbitrary var types)

For WASM implementation of Fungible(Erc20), Non-Fungible(Erc721), and Multi tokens(Erc1155) were created own standards. PSP22 - Fungible token PSP34 - Non-fungible token PSP35 - Multi token
Green Baneling's user avatar
2 votes
Accepted

NFT Enlisting on OpenSea

You should ask Opensea to list your network... https://support.opensea.io/hc/en-us/articles/4404027708051-Which-blockchains-are-compatible-with-OpenSea-
AurevoirXavier's user avatar
  • 10.8k
2 votes
Accepted

Create child account that relies on a parent account to maintain its existential deposit to stay alive and to pay all its fees

If signing transaction with the "parent account" is acceptable, then I can suggest using a pure proxy (a.k.a anonymous proxy) for the "child account". Here are some helpful ...
Adam Wierzbicki's user avatar
2 votes

Efficiently limit NFT transfers to members of a group

FRAME has the NFTs pallet with the logic to deal with Nfts, it is highly configurable to adjust it to the logic you want when adding it into your chain. For example with the Pallet-level feature flags ...
Alex Bean's user avatar
  • 5,757
2 votes

Is there any way to access the storage of another pallet in Substrate-based blockchain?

Between two pallets in the same chain you need coupling between them to access the storage. An example about this in the Substrate FRAME repository is between pallets bounties and child-bounties ...
Alex Bean's user avatar
  • 5,757
2 votes
Accepted

Setting metadata of an item of the Nfts pallet in a custom pallet

You can use now set_item_metadata and set_collection_metadata to set the metadata of a token or a collection. This trait has been added recently in this PR: Trading trait and deal with metadata in ...
Alex Bean's user avatar
  • 5,757
1 vote
Accepted

Setting collection metadata

It is failing with IncorrectMetadata because your provided metadata is too long, i.e longer than the StringLimit constant of pallet_nfts::Config. Metadata is stored as BoundedVec, which is bounded by ...
dastansam's user avatar
  • 601
1 vote
Accepted

Can't build node when using pallet-nfts in custom pallet

It looks like you're missing default-features=false on the pallet-nfts import. Try changing it to: pallet-nfts = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate....
Tony's user avatar
  • 527
1 vote
Accepted

How can i create a collection on statemint nft pallet without reserving 10 DOT

You can't, the deposit is there for a reason.
joepetrowski's user avatar
  • 2,975
1 vote

I want to make pallet to transfer NFTs between different chains through xcm?

There was a PR regarding supporting non-fungibles here. And there are also some nice examples in the XCM Simulator: /// Scenario: /// The relay-chain teleports an NFT to a parachain. /// /// Asserts ...
Bruno's user avatar
  • 8,335
1 vote
Accepted

Efficiently limit NFT transfers to members of a group

Collating information here that (eventually, in the fullness of time, etc.) should address the use case. Open questions will reflect the state of play. You define the group multiple ways, e.g. off-...
Begley Brothers Inc's user avatar
1 vote
Accepted

How does the pay_tips parameter work for NFTs?

So with pay_tips dispatchable call there is a concept of a receiver and a sender. It is voluntary for this extrinsic to be called, meaning "paying tips" is not a required part of buying/...
Bruno's user avatar
  • 8,335
1 vote
Accepted

What is the purpose of tips in the NFTs pallet?

From the docs of the pallet: pay_tips: Pay tips, could be used for paying the creator royalties. And if you see the code of the do_pay_tips is basically paying a tip to an Account related to an Item ...
Alex Bean's user avatar
  • 5,757
1 vote

Testing cross-contract calls

This question has already been asked here. It looks like unfortunately there are at the moment no options to test your smart contract (when cross contract calling) in rust. In the github issue there ...
rajohs's user avatar
  • 491
1 vote

Fractionalized NFTs

This is something Unique Network (not to be confused with uniques-pallet) did as "refungible", and something we at RMRK do as "NFTs as DAOs" (full breakdown here), short version ...
Swader's user avatar
  • 176

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