Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [nft]

Questions about NFTs, non-fungible tokens.

Filter by
Sorted by
Tagged with
26 votes
7 answers
47k views

How to find all ERC721 compliant NFTs owned by an address? (Web3 JS)

It is possible to check which address owns a particular NFT by using the ERC721 standard function: function ownerOf(uint256 tokenId) public view virtual override returns (address) in ERC721.sol But I ...
Oscar Chambers's user avatar
16 votes
2 answers
14k 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 ...
Mark55's user avatar
  • 1,011
14 votes
2 answers
18k views

Updating ERC-721 Token's Metadata after it was Minted

Is it possible to somehow update an existing ERC-721 Token's MetaData after it was already minted? Let's say we've created a Knight character for a game - by minting an NFT for it, and 3 months later ...
Mark55's user avatar
  • 1,011
10 votes
2 answers
4k views

How to properly implement a ContractURI for on-chain NFTs

I am trying to implement contract-level metadata for an NFT collection on OpenSea, However, if I do so with the following code, the contract's metadata won't update on the OpenSea collections' page, ...
Martijn Vissers's user avatar
10 votes
2 answers
4k 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. ...
António Gonçalves's user avatar
9 votes
5 answers
28k views

Metamask - "Params specify an EIP-1559 transaction but the current network does not support EIP-1559"

I'm working on a little erc 721 project. We have a frontend that allows users to mint a couple of our nfts with a button. contract.methods.mint(tokensNumber).send({from: accounts[0], value: ...
Pepe Silvia's user avatar
9 votes
2 answers
2k views

ERC721 NFT minting to accept custom ERC20 token as payment

When creating the contract for minting NFTs using the erc-721 standard, I want to be able to accept payment from my own erc-20 token instead of 'ETH'. How can this be accomplished?
Philitician's user avatar
7 votes
2 answers
2k views

How to get the value of a position on Uniswap V3 NFT?

I'm trying to get the amount of each token currently held in a liquidity pool position on Uniswap V3 (in Pyhton) based on the token ID of the NFT. I was able to get info about the position by calling :...
Jesús Castrejón's user avatar
6 votes
2 answers
5k 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 ...
Stevers's user avatar
  • 362
6 votes
3 answers
6k views

How can I make an ERC721 NFT such that the token owner can edit an attribute in the metadata? Where can they edit the metadata?

I've read that ERC721 tokens can be created such that the token owner can edit the on-chain metadata. I've been following tutorials for the brownie-nft mix and making NFTs on OpenSea, but I have yet ...
Kyle Lynch's user avatar
6 votes
4 answers
871 views

How to get Token balances

How to get balances of all ERC 20 tokens a wallet holds?
Devsuite's user avatar
6 votes
2 answers
2k 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 ...
Maxim Gaina's user avatar
6 votes
1 answer
3k 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 ...
genzr's user avatar
  • 97
6 votes
1 answer
2k 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 ...
NeilD's user avatar
  • 75
6 votes
2 answers
2k views

ERC725 with ERC735 - Identity and Claims

How does ERC725 (Identity) and ERC735 (Claims) work together to enable a decentralized identity?
Nathan Aw's user avatar
  • 1,954
6 votes
2 answers
2k views

How to use a placeholder image during minting, and then only updating metadata with the actual URI after minting?

As per the title. I want to be able to have a placeholder image for my NFTs, something like this: https://opensea.io/collection/thealcabones Then subsequently, after launch, I then update the metadata....
Welpers's user avatar
  • 61
5 votes
1 answer
8k views

What should I write in token decimal while importing NFT in Metamask

When I tried to import NFT to my Metamask wallet, I found out that "Token Decimal" input should be filled. I know NFT doesn't have decimal so does it mean I should fill it with 0?
Ice Griffin's user avatar
5 votes
1 answer
14k views

Why are all NFTs created from Null Address on Opensea?

When someone mints on NFT on OpenSea using their own wallet as the identity of the creator, why does Null Address always appear in the NFT's transaction history as the creator instead? and then the ...
user610620's user avatar
  • 1,528
5 votes
5 answers
14k views

View all NFTs owned by specific Ethereum wallet

Python developer here, very interested in the ETH ecosystem. I would say I'm an experienced developer, but unaware of the many languages/tools that are available to interact with Ethereum wallets. Let'...
Karanvir Ghumaan's user avatar
5 votes
1 answer
2k 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 ...
Sean Thoman's user avatar
5 votes
2 answers
5k 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
Bob5421's user avatar
  • 1,477
5 votes
1 answer
1k views

Ethereum stuck in the smart contract

I deployed a beta version of an NFT project, however, some people who were not in the whitelist got their eth stuck in the smart contract, now I need to refund them by withdrawing the eth in the smart ...
kool Erick's user avatar
5 votes
1 answer
2k views

Reveal NFT metadata after buy

We would like to publish our collection on OpenSea, the artwork is done, and would like to do so using Haslips' smart contract. This smart contract already has a similar thing that we are looking for, ...
Viktor Szakálos's user avatar
5 votes
1 answer
4k views

ERC721 Metadata - TokenURI - Return the full JSON String Instead of URL Pointer?

Sorry if this is hella n00b, but I was wondering when overriding tokenURI you can just return a string containing all the metadata which is calculated dynamically on-chain, eliminating the need for ...
Pethereum's user avatar
5 votes
1 answer
6k 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, ...
Eswar Rajesh Pinapala's user avatar
5 votes
3 answers
5k views

What process does Opensea use to get all the NFTs of a wallet?

I'm new to this so excuse my n00bness. I created an NFT through Remix on Rinkeby and then log into Opensea and the NFT appears nicely in my account. But how are Opensea finding that data? Are they ...
highrankin's user avatar
5 votes
1 answer
3k 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?
A. Eth's user avatar
  • 139
5 votes
1 answer
2k 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 ...
Thrabbit's user avatar
5 votes
1 answer
4k views

How to set a max supply of an ERC-721 token?

I am using the OpenZeppelin framework and I've tried to find solutions on how to put a max supply of an ERC-721. The only answers I've found seems unnecessary complex and I haven't been able to make ...
Adam's user avatar
  • 53
5 votes
1 answer
150 views

Metadata not showing on opensea

I have a problem with a simple nft program i did in order to learn more about ERC721. this is the code: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/...
Squallaz's user avatar
5 votes
2 answers
384 views

How do you prove ownership of a digital asset with NFTs?

I have a few questions regarding NFTs. Every source I find online roughly says that an NFT is a blockchain-stored ownership certificate for a certain digital asset. But I don't understand how that ...
Angelo Brillante Romeo's user avatar
5 votes
0 answers
935 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 ...
Bard Ionson's user avatar
5 votes
2 answers
448 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 ...
AdjunctProfessorFalcon's user avatar
4 votes
3 answers
12k views

How can I get a list of all owners of an ERC1155 NFT by using a web3 call?

With ERC721, there's the 'ownerOf' function that takes a non-fungible token's id and returns the owner address, but ERC1155 doesn't officially require that a function like that be implemented. I made ...
Matt's user avatar
  • 41
4 votes
2 answers
8k 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 ...
user610620's user avatar
  • 1,528
4 votes
4 answers
8k views

NFT royalties with solidity smart contracts

I hope you are all well. Do you know how NFT royalties work with solidity smart contracts?? Or do you know a tutorial about it? Thank you Take care Pierre
Pierre's user avatar
  • 63
4 votes
3 answers
313 views

Can an NFT own other NFTs?

Ok so this is a bit abstract, but imagine you have two ERC-721 contracts: GameCharacter and Weapon. You want each GameCharacter to own a Weapon. Is this possible?
doctopus's user avatar
  • 315
4 votes
1 answer
6k views

approve + safeTransferFrom ERC721 from existing smart contract

I am trying to call ERC721 from another smart contract, while calling function approveAndTransfer ,I am getting "ERC721: transfer caller is not owner nor approved", not sure reason behind it,...
Seth x's user avatar
  • 41
4 votes
2 answers
1k 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 ...
Sascha's user avatar
  • 41
4 votes
1 answer
444 views

What is the purpose of using a true random number for an NFT?

I don't understand what the purpose of using Chainlink VRF for my NFT's generation is. Why don't I just launch and pick the NFT traits myself?
Patrick Collins's user avatar
4 votes
2 answers
559 views

How do i prevent users from selling NFTs they earned from my platform to any external marketplaces like openSea

I am building my platform where users will do several tasks to earn NFTs as a reward, I don't want them to sell these NFTs on any external marketplace. Is there a way through which I can restrict my ...
Talha Sajid Chaudhary's user avatar
4 votes
2 answers
13k views

How can I find NFTS and their metadata?

I’m new to Ethereum, and I’m working on a side project I’m curious How can I discover every NFT on the Ethereum blockchain? Once I’ve identified the NFT, how do I fetch the metadata?
John Holland's user avatar
4 votes
1 answer
5k views

Best way to set metadata in ERC721 contract on production

What is the best method to set the metadata for each token in a ERC721 contract? Please take a PRODUCTION ENVIRONMENT in mind while answering the question. How do the industry giants achieve it? Case ...
PiNaKa30's user avatar
  • 188
4 votes
1 answer
3k views

How to use ERC1155 with files hosted on IPFS, when files are added regularly?

I'm looking to build an ERC1155 smart contract (I'm using OpenZeppelin) that will contain NFTs whose metadata will be hosted on IPFS. About 4,000 images for now, all unique (all amount of 1). An ...
jeremy's user avatar
  • 141
4 votes
1 answer
916 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 ...
user610620's user avatar
  • 1,528
4 votes
2 answers
3k views

How to make sure that a token exist?

I want to sell an NFT within my smart contract. But first, I want to check with a require statement if the token (NFT) exists or not before moving on to the next steps. I have tried require(ownerOf(...
MehmedB's user avatar
  • 241
4 votes
2 answers
4k views

solidity cannot verify ethers.js signed data (signTypedData)

i am using _signTypedData in etherjs to sign and encode a signature out of the data as follows const domain = { name: "og-nft", version: "1", }; const types = { ...
Adarsh Raj's user avatar
4 votes
1 answer
2k views

Scam where unsolicited airdrop NFTs, if sold, drains victim's wallet

There are many reports of random NFTs being distributed to collectors' eth wallets on Opensea, and if the recipient accepts an offer to sell them, or lists them, they apparently verify a MetaMask ...
user610620's user avatar
  • 1,528
4 votes
2 answers
1k views

safeTransferFrom of ERC721 not working when transfering NFT to a safe address

I was trying to transfer an NFT using ERC721's safeTransferFrom method from my gnosis safe to another gnosis safe address but while executing the transaction I am getting - Error: cannot estimate gas; ...
chakshu jain's user avatar
4 votes
2 answers
403 views

Can I send fraction of Fungible Token generated using ERC1155?

I am familiar with ERC20 and ERC721. Now exploring more about ERC1155. Just like we can send a fraction of ERC20 based token. can we send a fraction of ERC1155 based fungible token?
Deepak Bhavsar's user avatar

1
2 3 4 5
25