Questions tagged [nft]

Questions about NFTs, non-fungible tokens.

Filter by
Sorted by
Tagged with
4 votes
2 answers
457 views

How does a NFT Market work?

If I want to implement a little NFT marketplace and want users to be able to put items up for sale, and other users to buy those, how should I do that? Do I need to make market contract that gets ...
warren1235's user avatar
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
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,518
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
2 votes
3 answers
3k views

Is this possible to pay for ERC721 token with ERC20 token not ETH?

I can create NFT's with an ERC20 token but I want to set the price of a NFT to an ERC20 token too, not ETH. For example on OpenSea I can sell my NFT's for ETH but I want to get payed in any ERC20 ...
Faru Nuri Sönmez'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
4 votes
2 answers
12k 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
2 votes
2 answers
2k views

Is there any way to upload to IPFS or Swarm from inside a smart contract?

While the title pretty much sums up the question, let's go into a bit more detail. It would be very useful for a number of use cases if a function in a contract could directly upload to IPFS, Swarm, ...
The Renaissance's user avatar
2 votes
2 answers
5k views

How to Tranfer Remaining NFTs And/Or Tokens Out of A Hacked Ethereum Wallet

I have a friend who got hacked recently. The hacker drained all of the valuable NFTs and ERC-20s out of the wallet. The hacker did leave some NFTs of lower value in the wallet. The victim of the hack ...
ChristianOConnor's user avatar
0 votes
1 answer
5k views

Does ERC-1155 contract use less gas to mint tokens?

The commonly accepted benefit of using ERC-1155 (than ERC-721) is it saves lots of gas. But does it actually save gas when minting tokens? If so, should we pre-mint tokens when the contract is ...
warnerque's user avatar
  • 109
26 votes
7 answers
46k 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
9 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
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
5 votes
5 answers
13k 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,457
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
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
3k views

How do I limit the number of ERC721 NFTs per account?

I would like to restrict the number of NFTs any one address can own. How would you implement this in a Solidity smart contract? Say I have an ERC721 NFT contract, Square.sol: import "../...
emiliojazzar'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
3 answers
6k views

How to make a snapshot of ERC-721 (NFT) token holders

What is the best way to create a snapshot of ERC-721 token holders? Maybe there is a tool for this purpose? I need to take a snapshot of holders of tokens for this NFT contract - https://etherscan.io/...
Yuriy Vinogradov's user avatar
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
3 votes
1 answer
6k 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 ...
Meet Siraja's user avatar
3 votes
1 answer
1k 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 ...
Philip Rutovitz's user avatar
3 votes
2 answers
210 views

How to get ERC 721/1155 and ERC-20 data?

How do I get all the NFTs (ERC-721 & 1155) and Tokens (ERC-20) for a wallet address? Is there an API for this? Irwing Tello
Irwing Tello's user avatar
3 votes
1 answer
2k 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 ...
chad3cpo's user avatar
3 votes
1 answer
860 views

How is the ERC721TokenReceiver.onERC721Received data parameter used in practice?

The ERC-721 and ERC-1155 NFT standards’ safeTransferFrom functions both accept a bytes data parameter which is then passed on unaltered to the transfer recipient address if this is a smart contract. ...
dwardu's user avatar
  • 1,388
2 votes
1 answer
2k views

ImportError: cannot import name 'Accounts' from 'brownie.network.account'

Setup MacOS Catalina v10.15.6 IntelliJ Ultimate v2020.1.1 Python v3.7 eth-brownie v1.14.6 Ganache CLI v6.12.2 I created a VENV using my Python 3.7. Following Patricks tutorial, I have installed eth-...
pookie's user avatar
  • 121
2 votes
1 answer
5k views

Updating ERC-721 TokenURI (after it's already minted)

This is a conceptual question. Is it possible to somehow update an existing ERC-721 Token's uri, after the NFT was already minted? For instance, I minted an NFT where the asset location was AWS S3. ...
Hassan Baig's user avatar
2 votes
3 answers
748 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 ...
alberto's user avatar
  • 23
2 votes
1 answer
1k views

Auction data on-chain or off-chain

Currently I am trying to build a NFT marketplace and I am currently at a point where I need to make a design choice. In my current contract I have the data about the auction on chain. And every bid is ...
zanzoken's user avatar
  • 125
1 vote
2 answers
304 views

How can I know who is the owner of nft collection?

for getting owner of a single NFT we use ownerOf(tokenId) but how can I know who is owner the whole collection (owner of the contract) and then I can validate them to be able to set royalty fee to ...
mahyar's user avatar
  • 75
1 vote
1 answer
2k views

my nft image not showing in opensea testnet

when ever i mint an nft with my frontend dapp and check it on opensea i will just see the name without the nft image. here is my deploy.js file. this is the tutorial i am following https://dev.to/...
Anezichukwu Agusigbo's user avatar
1 vote
2 answers
4k views

ParserError: while parsing a block mapping

This is the code in my brownie.config.yaml file: # exclude SafeMath when calculating test coverage # https://eth-brownie.readthedocs.io/en/v1.10.3/config.html#exclude_paths reports: ...
rizonpoint's user avatar
1 vote
0 answers
200 views

Handle multiple tokenURI in one NFT contract

I have a simple nft contract and I want to create mint functions that if you press one or another that tokenId is bound to a URI I decide. I already tried multiple ways to do it but I got an error ...
Pablo's user avatar
  • 11
1 vote
2 answers
963 views

How to force smart contract to accept ether when deployed on Polygon chain

I have written a contract to mint NFT in solidity. I intend to deploy it to Polygon eventually. There’s a slight confusion, I have put the price in my contract as 0.1 ether which works fine on Rinkeby....
Usama Danish's user avatar
1 vote
1 answer
659 views

ERC2981 NFT Royalties Implementation in a ERC721 Marketplace

I've read already many posts regarding this topic, but I just can't wrap my head around this Royalty implementation thing. Pls help me out, I don't know how I should play with this thing. what is ...
DevABDee's user avatar
  • 441
1 vote
3 answers
65 views

Temporarily ownership and Dependency/Customization of NFTs

In NFTs is there way to create a system where 2 NFTs (A and B) can be confirmed to be owned by the same owner and a new NFT (Z) is created that is dependent on the 2 primary NFTs (A and B). By ...
Mook's user avatar
  • 11
1 vote
2 answers
84 views

After minting 10,000 NFTs, do you list them for sale one by one? If so, then how long does it take to finish listing all of them? [closed]

After minting 10,000 NFTs, do you list them for sale one by one? If so, then how long does it take to finish listing all of them?
dagh's user avatar
  • 11
1 vote
1 answer
123 views

How to use one Ethereum account for all NFT minting transactions for website users

I am developing a website that allows users to put a hash of their data on the Ethereum blockchain - as an NFT. To make it easier for the users, we don't want users to use a wallet (e.g. metamask). To ...
Paul Groove's user avatar
1 vote
1 answer
249 views

How exactly can someone prove they were the creator of an NFT?

On Etherium.org it states with regard to NFTs... https://ethereum.org/en/nft/ You can easily prove you're the creator. How exactly can someone prove they were the creator of an NFT? I am not ...
user4574's user avatar
  • 133
1 vote
1 answer
2k views

Want to generate non-repeative random number in a particular range

I need to generate a random number in range 1-5000 which are non duplicate. I had found solution to generate random number in particular range using chainlink and without chainlink also but i need to ...
Rupesh singh Rathore's user avatar
1 vote
0 answers
4k views

How to get all NFTs from an Enumerable ERC721 Smart Contract?

I'm trying to add a function to the ERC721 Smart Contract to return all the NFTs (items identified by tokenID) from a user address. At first, I was thinking on something like the following: ...
Alexander Herranz's user avatar
1 vote
3 answers
4k 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 ) ...
angelmaria's user avatar
  • 1,061
0 votes
1 answer
202 views

How can I get the price of NFT on Opensea using chainlink?

I have tried to use the chainlink and contract address of NFT to fetch the price but I am not sure where I am wrong pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/interfaces/...
Samresh Kumar Jha's user avatar
0 votes
1 answer
1k views

How to mint nft with ERC721A using tokenuri or uri (string) as in URI-Storage?

I want to mint NFT using ERC721A but I cant use the TokenURI. function prizeDistribution(uint256 jackPotId) external payable override returns(uint256) { require(_dateTime....
Syed Murtaza Ali Shah's user avatar
0 votes
3 answers
489 views

How can I query the onchain data on the ethereum blockchain without using any APIs?

I want to get all the onchain data available on the Ethereum blockchain about an NFT from its contract address and tokenID. Like its metadata, the current owners, its last price, etc. How can I do ...
amam's user avatar
  • 11
0 votes
1 answer
121 views

Do gas prices for NFTs depend on file size?

If I am minting NFT does the file size and type affect gas price, i.e. if that's 5 GB video or just a small 15 digits number? Thanks, Yury
Yury Moskaltsov's user avatar