Questions tagged [nft]
Questions about NFTs, non-fungible tokens.
47
questions
4
votes
2
answers
448
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 ...
14
votes
2
answers
17k
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 ...
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 ...
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,...
2
votes
3
answers
2k
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 ...
2
votes
2
answers
4k
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 ...
23
votes
7
answers
41k
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 ...
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, ...
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?
3
votes
1
answer
770
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.
...
2
votes
2
answers
1k
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, ...
0
votes
1
answer
4k
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 ...
8
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.
...
8
votes
5
answers
22k
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: ...
6
votes
2
answers
4k
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 ...
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
5
votes
3
answers
4k
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 ...
5
votes
1
answer
1k
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 ...
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 "../...
4
votes
3
answers
5k
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/...
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 ...
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
4
votes
1
answer
3k
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 ...
3
votes
1
answer
5k
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
1
answer
1k
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
1
answer
4k
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. ...
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-...
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 ...
2
votes
1
answer
969
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
1
answer
2k
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 ...
2
votes
3
answers
697
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 ...
1
vote
3
answers
56
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 ...
1
vote
2
answers
7k
views
Updated token metadata not refreshing on OpenSea
I've deployed a contract that lets users mint NFTs, which will have a "coming soon" artwork that will then be updated to reveal the real artwork at a later time. This was due to the fact ...
1
vote
1
answer
113
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 ...
1
vote
0
answers
3k
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:
...
1
vote
2
answers
2k
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:
...
1
vote
2
answers
711
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....
1
vote
0
answers
86
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 ...
1
vote
2
answers
62
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?
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
)
...
0
votes
0
answers
26
views
why the tokenId is lost when the eth_log method
Someone knows why the tokenId is lost when the eth_log method is used to monitor the nft contract. Normally, it should be continuous, but there are a few missing in the middle. Rescan the ...
0
votes
1
answer
100
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/...
0
votes
1
answer
154
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/...
0
votes
1
answer
46
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
0
votes
2
answers
116
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 ...
0
votes
1
answer
855
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....
0
votes
1
answer
1k
views
Possible to set a minimum price to mint an NFT [closed]
Is it possible to set a minimal price through smart-contract (Solidity) when an NFT is minted?