Questions tagged [nft]

Questions about NFTs, non-fungible tokens.

Filter by
Sorted by
Tagged with
5
votes
2answers
926 views

How to guarantee IPFS file access based on Non Fungible Token ownership (or security)?

The file is too big to be stored on the blockchain, so it is stored on IPFS. Only the person who owns a unique Non Fungible Token (or a Security Token) can access it. Of course I can encrypt the file ...
5
votes
1answer
1k views

mint method usage in ERC721 token implementation

What does the internal method call _mint(msg.sender, tokenId) really do in the background when used with ERC721 token implementation?
5
votes
1answer
70 views

What is the best way to handle multiple NFTs of the same collection in ERC1155?

I'm learning ERC1155, and I'm a bit confused. This is OpenZeppelin's example of an ERC1155 Contract: They state that Thor's Hammer is an NFT (because only 1 was minted), while Gold is Fungible. ...
5
votes
2answers
1k views

ERC725 with ERC735 - Identity and Claims

How does ERC725 (Identity) and ERC735 (Claims) work together to enable a decentralized identity?
4
votes
2answers
517 views

Ethereum implementation of a non-fungible but divisible token? (ERC721 seems not to work for that)

I am struggling currently with finding the right implementation possibility for a token with the following properties: Asset-backed token based on a non-fungible asset (like a piece of art) More than ...
4
votes
1answer
1k views

ERC721 Token Transfers and Approvals

ORIGINAL POST (EDITED POST BELOW): I keep getting the following error in my ERC721 Contract: “ERC721: transfer caller is not owner nor approved” This happens when I’m trying to buy a Token that has ...
4
votes
0answers
228 views

What is the difference between ERC-2665 and what is proposed in EIP-2981? Royalties vs Transfer Fee

There is an EIP for Royalty standards. But there is already a ERC for a Transfer Fee Could ERC-2665 be used to implement royalties across all market places for NFT? What is the difference between ...
4
votes
0answers
137 views

How would an nft marketplace structure their smart contracts to pay out “creator shares”?

This may be a noob question, but does any know how a market like Nifty or any similar nft marketplace actually implement paying a "creator share" or royalty back to the original creator ...
3
votes
1answer
516 views

ERC721: Interface ID Registration

Why we need to register Interface ID in ERC721 token. I was just going through the openzeppelin-solidity erc721 code and curious to know that why we need to use this. That interface id register code ...
3
votes
1answer
477 views

How can I verify ownership to allow resale of NFTs?

I have discovered NFTs and ETH recently and would like to build a marketplace like opensea but allows resale of NFTs that are already minted on various block chains(ETH, FLOW). Starting with just ETH, ...
3
votes
1answer
170 views

If crypto art is stored off-chain, how does the collector have any control over their NFT's contents if the server where it is saved shuts down?

CryptoKitties essentially sells crypto art NFTs to collectors on the Ethereum blockchain. However, the pictures of the cryptokitties are stored on the company's server, since the NFT merely represents ...
3
votes
1answer
68 views

Can my friend sell an 'Eiffel Tower' with NFT

Suppose I know someone who has ownership over a landmark. Not quite the Eiffel Tower, but to ensure he remains anonymous we could say it is a similar asset. Perhaps simpler because it just sits there ...
3
votes
1answer
357 views

Pattern for generating dynamic ERC-1155 or ERC-721 metadata

I am quite new to smart contract development so apologies in advance if this seems like a silly question. I'm looking for some guidance on a usable pattern for the following use case. I need to ...
3
votes
0answers
32 views

Re-entrancy attack explanation and possible fix for specific NFT token - hashmasks

One popular recent NFT project - Hashmasks - Tweeted that some coder called 'samczsun' uncovered a possible re-entrancy attack in their mint function which would have allowed to mint more than the ...
3
votes
1answer
129 views

deploying a simple ERC721 contract: transaction could not be decoded: could not recover secp256k1 key: calculated Rx is larger than curve P

You can check out the code here: https://github.com/lopeselio/Chainlink-VH-DynamicNFT Command: truffle migrate --reset --network rinkeby -f 3 Then response is as follows: Compiling your contracts... =...
3
votes
0answers
33 views

how do I know that NFT is from the right person

I understand the NFT (at least solidity part).. There's something that's bugging me though. Let's say someone made a super great cat(cat1), published it to ipfs, then called the ERC721 contract and ...
3
votes
0answers
108 views

Safe implementation on Solidity 0.8.0 of a withdrawal and a refund

I'm here for asking of a SECURE way to implement on solidity 0.8.0 two functions: 1-Withdrawal() which sends all the ether of the smart contract to the owner address. My current implementation is: //...
2
votes
1answer
137 views

Enable a download only for an NFT holder?

Could someone enable a download only for an NFT holder? What would be the mechanism for this?
2
votes
2answers
142 views

What tokenized assets can be stored on-chain?

Examples of digital assets that can be tokenized as NFTs are: crypto art (.jpg or .png file stored off-chain) game weapons or characters Examples of physical assets that can be tokenized as NFTs are:...
2
votes
1answer
160 views

Which token standard should be use to create different tokens for different users?

I have read several differences between fungible and non fungible tokens. It cleared my few doubts though, I have few more remaining. I have requirement to create a platform on which users can ...
2
votes
2answers
43 views

Are NFTs (technically, the smart contracts) stateless or stateful?

Are the smart contracts used to manage NFTs stateless or stateful? Ethereum as a protocol seems to be stateful, but the smart contracts for NFT marketplaces seem to be stateless. They don't save any ...
2
votes
1answer
213 views

Is there any way of creating ERC-1155 or ERC-721 tokens always earn transaction fees?

I have a rather interesting but challenging question. I want to create ERC-1155 and ERC-721 tokens that will be primarily traded using a Decentralized Exchange (DEX) implemented for a newly created ...
2
votes
1answer
652 views

Signing a message to sell NFT/token - what happens if you transfer the NFT later?

If you sign a message with intent to list an NFT/token for sale - how does that work if you transfer the item later? For example on an NFT marketplace - you list your NFT for sale by signing a message....
2
votes
2answers
227 views

Splitting and Merging tokens

i'm here to ask if my project is doable or not. I'm actually reading "Mastering Ethereum" by Andreas M. Antonopoulos, so i have some basic solidity knowledge. I have a project: I have a building, ...
2
votes
1answer
31 views

KeyError: 'wallets'

Screenshot of directory: This is the code in my brownie.config.yaml file: reports: exclude_contracts: - SafeMath dependencies: - smartcontractkit/chainlink-brownie-contracts@1.0.2 - ...
2
votes
1answer
38 views

Is there ERC721 decimals?

Is it possible to have decimals balances in ERC721 ? I mean is it possible to say i own 50% of an NFT for example ? Thanks
2
votes
1answer
128 views

Question about NFT metadata

I require a bit of help regarding NFTs. Can someone please fact check my understanding of how NFTs work, and answer a question about how NFTs are accessed? I have one big question about what is stored ...
2
votes
1answer
122 views

Studying the cryptopunks code. Why are these three conditions required?

So I recently started learning some solidity and was looking at code to make nft series like the punks. I noticed that in their code there are always three conditions that appear to do the same thing. ...
2
votes
1answer
183 views

When to use nonfungible tokens and possibility to interchange tokens with different standards

I'm little bit familiar with Blockchain and ERC-20 standard. Now I started learning about ERC-721 and having a lot of confusion. Let's take an example of music artist token platform. Any music ...
2
votes
0answers
47 views

Sign an NFT asset with an Ethereum address

Is it available an Ethereum application that allow the owner to let "sign" his NFT asset by other addresses? If not would it be possible to develop it?
2
votes
1answer
98 views

How to Fractionalize NFT's (high level)

I have a question to the solidity experts out there. I am Looking into fractionalize NFT's. I was thinking of many different ways of doing it. My first thought was to make a erc-20 market representing ...
2
votes
1answer
36 views

Are there any NFT marketplaces that accept non-media or even arbitrary file formats?

I am curious as to whether there are NFT marketplaces that allow minting tokens for arbitrary file formats say pdfs, text files, etc .
2
votes
3answers
129 views

NFT ERC 721 smart contracts

According to my understanding ERC721 smart contracts hold a list a "NFTs/owners" the same way ERC20 smart contracts hold a list of "owners/token balance". NFT are digital assets ...
2
votes
1answer
46 views

How do I allow the current owner an NFT to append 8 bytes to the token?

How would I allow the current owner of an NFT to append a fixed number of metadata bytes to their token on chain. Is this something that can be done with ERC-1155 or ERC-721. Or is this a whole new ...
2
votes
0answers
45 views

How to prevent NFT or Enjin Token copying?

So lets say someone mints an Enjin token pointing to a 3D model asset for a game. What prevents someone from downloading that same exact 3D model, and minting a new token that points to it? Are the ...
2
votes
0answers
149 views

Possession vs Title vs Ownership in NFTs

Is there a way to separate possession from title in an NFT smart contract? I'm not sure these are the best terms, but here are some examples: Renting out NFTs, say for use in a game. The rental is ...
2
votes
0answers
47 views

Are ERC-1155 tokens always atomic?

I am creating an ERC-1155 smart contract whereby I create a number of different tokens and also want to be able to create new tokens on the fly. The code is something like: import "@openzeppelin/...
2
votes
1answer
71 views

Temporarily ownership and Revokable ownership of NFT

Is NFTs(ERC721 or ERC1155) allow to "temporarily own by an address" and the issuer can "cancel ownership of NFT of the address" or "directly assign it to a new address without ...
2
votes
1answer
1k views

See an NFT Token picture in metamask

I have followed step by step this tutorial: https://medium.com/pinata/how-to-build-erc-721-nfts-with-ipfs-e76a21d8f914 Everything works like a charm. I am working on ropsten Network. I have create ...
1
vote
2answers
2k views

Can we mint 5 gigabyte video NFTs?

What is the maximum size of NFTs on the Ethereum blockchain (ERC-721 or ERC-1155 tokens)? crypto art NFTs on the Ethereum blockchain already contain JPG/PNG files that are about 5 MB large, and ...
1
vote
2answers
789 views

Why are gas fees taken for failed smart contract interactions?

When claiming an NFT (smart contract interaction), the gas fees would have been $50-$80, so I went to Advanced options in MetaMask, and turned down my willingness to pay for gas to around 25,000 units ...
1
vote
1answer
574 views

Two ERC721 tokens that refer to the same metadata

This is a question about the ERC721 interface. I understand that the tokens are non-fungible and guaranteed to be unique to a specific account (owner). One possible way to use ERC721 tokens would be ...
1
vote
2answers
170 views

Get a list of all token types for ERC1155

How do I identify what token types have been created for a specific ERC1155? I noticed the balanceOf function takes an address (owner) and the token type, but what if I dont know what all token types ...
1
vote
2answers
262 views

Implementing ERC-1155 contract on the fly

I want to implement an ERC-1155 token to represent ownership of videos. Creating such a contract is relatively easy: import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; contract ...
1
vote
3answers
1k views

ERC721 - Create 1000 tokens in one function call

I have implemented a contract where a set of ERC721 tokens should be generated with a function call in private net. Code as follows : function mint( address _owner, uint256[] _id ) ...
1
vote
1answer
42 views

How to effectively use the metadata of ERC721

When you store a URL as the metadata of ERC721, does that defeat the purpose of the immutability aspect of a blockchain, since the content that URL is pointing to can be modified? How do I effectively ...
1
vote
2answers
76 views

i would like to create 60GB video NFT, is it possible?

Is it a matter of price? I would like to know what is the process to do that. Thanks a lot
1
vote
1answer
48 views

How to have the contract check if the msg.sender currently owns a specific token. (erc721)

Assuming I have a contract to mint my own NFTs: (I'm thinking ERC-721, but not necessarily). I want to create another smart contract that before doing anything, verifies that the address interacting ...
1
vote
2answers
87 views

Sell my own NFT?

On what platform can I sell my own NFT? I've seen NFT's kick-off recently. I have seen certain more exclusive platforms launch where large sales are being made, but have not seen one where anyone can ...
1
vote
2answers
111 views

Random distribution of large amount of NFT

I'm an beginner in solidity, and with a teamate we have a project for an NFT contract. I have a contract with 5000 NFT limite (cards, and 20 specific card form a familily, each family and cards are ...