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
0 votes
1 answer
1k views

EnumerableSet vs Access Control in Openzeppelin

Openzeppelin offers RBAC whereby an address may be granted a specific set of responsibilities. I would like to know which might be considered a better practice - using Access Control Or using an ...
0 votes
2 answers
242 views

Is it possible to create and assign any number of NFTs without emitting Transfer event? (ERC721)

I am asking this question regarding to the dev note above Transfer event in the ERC721 spesification / code. /// @dev This emits when ownership of any NFT changes by any mechanism. /// This event ...
0 votes
1 answer
338 views

How to get baseURI for NFTs in IPFS using Fleek?

I have been trying to use Fleek to host my NFTs. But the folder link they are providing, which I wants to use as baseURI in my contract, is using their own storage API, rather an IPFS link. Is there ...
0 votes
1 answer
18 views

How to enable multi-payment in the NFT marketplace like ETH, USDT, MATIC, DAI, etc?

Hope you are doing great. I'm trying to build a NFT marketplace with multi-payments. When users buy a NFT, they must be allowed to pay with any of the payments such as ETH, USDT, MATIC, DAI... How to ...
0 votes
2 answers
506 views

transaction parameter value with Wei is different from Metamask

For example, I set a tParam as value: web3.utils.toWei('0.01','ether'), ... const txHash = await window.ethereum.request({ method: "eth_sendTransaction", params: [tParam], })...
0 votes
2 answers
2k views

How can i see Goerli Testnet NFT, in PC browser?

I'm testing NFT creation on goerli testnet. All works fine, I can also see the final minted NFT on Metamask mobile... I cannot find a way to see it on a PC.... I have the NFT contract address, the NFT ...
5 votes
2 answers
383 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 ...
4 votes
1 answer
701 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 ...
1 vote
0 answers
7 views

NFTs made from other NFTs

I am working my first ethereum dapp, a supply chain app which tracks the movement of meat products from farm to fork. I have decided to digitise these as ERC721 NFTs, starting with the animal at the ...
1 vote
2 answers
329 views

What Is The Best Way To Retrieve All Transactions of a Certain Token?

I am currently trying to better understand purchasing trends of certain NFTs (ERC-721). Currently, I am doing this using EtherScan's API. Now, the API calls return "up to a maximum of the last ...
2 votes
1 answer
530 views

How to see all the minted nfts and the owner addresses during development?

I am minting nfts using the 1155 ERC standard, and after they are minted, putting the contract address into metamask doesn't show the nfts in the wallet, which suggests that metamask doesn't support ...
0 votes
2 answers
945 views

Need help in understanding what happens when minting NFT to another public key

I am new to developing on Ethereum, so I hope these questions aren't too dumb. I have a smart contract that allows me to mint an NFT to another public key. Who is the owner of this NFT - me, or the ...
2 votes
3 answers
859 views

How do you set max amount of NFTs a wallet can mint?

contract xyz is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; uint256 public constant maxSupply ...
0 votes
2 answers
436 views

NFT marketplace: transfer NFT directly from seller to buyer, or go through the marketplace first?

I'm developing a simple NFT marketplace where people can connect their own collections (each one having its own smart contract) and put those collection's NFTs for sale. I saw a tutorial where the ...
0 votes
1 answer
581 views

Which function is called when transferring a NFT to another address

this is my first question. I hope it doesnt sound dumb but I wanted to know when I have a NFT in my wallet, and send it to another address (with Metamask for example), will Metamask call the transfer()...
0 votes
3 answers
2k views

Add a price for minting an NFT

I attempting to implement an NFT minter into my application, but want to set prices for minting an NFT. I'm using a smart contract template I found but haven't been able to figure out how to set ...
0 votes
3 answers
24 views

How to restrict selling and buying nft, but can transfer to user?

I'm using seaport protocol in marketplace and make customized erc721. I want some specific erc721 cannot be sold or bought in marketplace, but can transfer from user to other user. when I ask chatGPT, ...
0 votes
3 answers
671 views

What is the easiest way to get an NFT json file?

I have an NFT in my wallet. It's contract address is 0x3cd266509d127d0eac42f4474f57d0526804b44e in Polygon mainnet. My NFT ID is 1234. What is the easiest way to get the NFT json file (getTokenURI) ...
1 vote
1 answer
926 views

How to change the smart contract of a collection in Opensea

Although I have contacted the Opensea help center their response time is usually very long. I have therefore decided to debut on their forum with this question. I have a contract deployed and ...
0 votes
1 answer
2k views

On-chain vs Off-chain NFT art platforms

In this thread, an NFT cryptoart collector with deep pockets named beanie said, I have bought a few pieces on FND cause they were significantly cheaper, but now realize they were priced that way for ...
0 votes
1 answer
1k views

Get balanceOf tokens ERC721 (nethereum)

Just trying get count of uniswap NFT-s on 0x5794d36de0c21211a7906688981371132bd7c6f0 wallet Step one: Get contract from adress 0xc36442b4a4522e871399cd717abdd847ab11fe88 (Contract address for uniswap ...
0 votes
1 answer
358 views

How to display a token collection on opensea before it is minted?

Is there a way to display non-minted "yet" tokens on Opensea with the required msg.value as a price set directly by the contract? So instead of me paying the gas of thousands of tokens, I ...
0 votes
1 answer
680 views

I was sent an NFT, to ETH/Polygon address, and cannot view it, though it shows (on creators' opensea) as owned my me

After buying some nft's from a creator on opensea (using Polygon on ETH), they sent me one for free. They asked me for my polygon address, and assuming this meant the poly/eth address that is ...
0 votes
1 answer
657 views

Try to setup an 1155 token to be render with all its metadata (name, description, image) to opensea.io

I have the smart contract below pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/...
0 votes
2 answers
574 views

Why isn't the following ERC721 contract detected on OpenSea?

After implementing the following simple ERC721 contact, then deploying to Rinkby: // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol&...
0 votes
1 answer
10 views

Is there a standard or method for creating multiple, separate, batch NFT mints within one contract or deployment?

Is there a standard or method for creating multiple, separate, batch mints NFT within one contract or deployment? While each Batch maintain its own unique metadata? For example, say i need, 6 ...
0 votes
1 answer
836 views

ERC-1155 interface with MetaMask mobile

I am currently developing a contract that issues a single NFT per usage, I have implemented the token part with the ERC-1155 standard imported from open-zeppelin. When adding my NFT to Metamask mobile ...
0 votes
2 answers
489 views

ImportError: cannot import name 'LinkToken' from 'brownie'

I am working with the tutorial by freecodecamp.org and have the following error: ImportError: cannot import name 'LinkToken' from 'brownie It is also not able to import VRFCoordinatorMock which I am ...
0 votes
1 answer
328 views

Sell NFT by QR Code for specific amount

Currently I'm writing an app to interact with NFTs in a game. Therefore I want to implement a function to buy and sell an NFT by using a QR code. The seller should be able to create a QR code for his ...
1 vote
1 answer
645 views

Image not being displayed when uploading to IPFS with NFT.Storage

I am trying to upload an image that is generated by the stable diffusion to IPFS via NFT.storage but when I check my image ipfs link it displays a small grey box in the center of the screen. Which I ...
0 votes
2 answers
1k views

Can't resolve 'electron' in '/opt/build/repo/node_modules/swarm-js/node_modules/got'

Repo: https://github.com/vortextemporum/BoringBananasCompany I added Infura node provider to the config.js Deploying to Netlify using yarn build build dir: build It works fine off my ubuntu 20.04 lts ...
0 votes
2 answers
2k views

How to fetch tokenURI from Polygon smart contract?

I am trying to analyse different tokens in terms of the metadata they link to. I found a Polygon-based token project: https://opensea.io/assets/matic/0x50c2eae4903261b386c27c1733588e867f1a33db/10200 I ...
0 votes
1 answer
443 views

How to transfer ERC1155 data(Ownership) mapping from one smart contract to another?

I am developing an NFT Marketplace where I am distributing free NFTs(out of 3 defined categories, Diamond,Gold,Silver). I have developed a dropsite smart contract for this distribution. The dropsite ...
0 votes
1 answer
319 views

Read a variable from a onchain deployed contract

I was deploying a NFT and the VRF coordinator takes too much time to respond and I cant see if the _safemint function is working or not. Also i cant verify the contract on rinkeby.io Is there a way to ...
0 votes
2 answers
231 views

How to get single NFT's total volume its price history

Let's say an NFT have been trading 3 times for price: 1 eth, 5 eth, 12 eth and the result will be 18 eth total price volume. Is there a API service can get the NFT volume ranking of ethereum?
0 votes
0 answers
10 views

ERC6551 and module style

I would use ERC6551 to introduce accounts as NFTs into the game. I believe that adding a modular style to the account contraption would make it an extensible contraption. However, in contrast to ...
0 votes
0 answers
42 views

The "transfer NFT" function works smoothly on occasions, yet occasionally fails with transactions being reverted to their initial state

I am using OpenZeppelin for minting and transfering the nft's.I tried increasing the gas fee but the transaction just gets stuck . Using etherJs for interacting with the contract Code For this :- ...
0 votes
1 answer
337 views

ERC1155 passing user defined tokenURI on the mint process

Hi im trying to set a new tokenURI per mint. Users are submitting the meta on the front end and im trying to get it back from moralis to use in my contract… Is this even possible? I tried doing this ...
0 votes
1 answer
31 views

Callable contract's function not exists in ABI

I want to programmatically mint a NFT on Sea Drop on OpenSea. Here is a sample contract that I deployed to test out mint function Sepolia Etherscan Here is the mint page OpenSea If I switch to Write ...
0 votes
1 answer
61 views

Deployment Issues with BasicNFT on Sepolia Network Using Foundry: Mismatched Bytecode and Successful Deployment

While deploying a smart contract using Foundry on the Sepolia test network, I'm encountering an issue. The deployment seems successful, but I'm facing a challenge verifying the contract's bytecode. ...
1 vote
2 answers
2k views

What is the right function to use to list NFT collection with a fixed price?

New solidity learner here. I have created a solidity code to mint NFTs. But I am struggling to create a function that would help me set a fixed price in ether for all listed tokens. Any help or ...
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(...
1 vote
1 answer
1k views

How to add NFT Royalties Feature to a marketplace

I'm currently working on an NFT marketplace, and I would like for creators to be able to add a certain percentage as royalties for future sales like rarible does. So what I wanna know is do I add this ...
0 votes
3 answers
807 views

What NFT marketplaces have currently implemented EIP-2981?

Is there a generic way to set royalties from smart contract. Looking for a method that applies to all top marketplaces.
0 votes
3 answers
3k views

Metadata not showing up for ERC-721 OpenSea NFT

I made NFT's, following this tutorial I deployed the smart contract via Remix to my Metamask on the Rinkeby Testnet. OpenSea detected the assets in my wallet after they were minted, but the pictures ...
0 votes
1 answer
568 views

How to Get All NFTs Owned by an Address on my custom blockchain

on mumbai lets say, i can use the alchemy sdk, where i input the network name and then call the functions easilly, however if the network is testnetwork with a chain id of 1234 and public RPC of : &...
1 vote
2 answers
128 views

What is the best option for mutable NFTs (ERC721 or ERC1155)?

I am researching on the best option to have mutable metadata for NFTs (ERC721 and ERC1155). What is the best option? Is anybody already using any approach to this? Tableland has just come to my ...
0 votes
1 answer
433 views

What's the recommended way to allow users to mint random ERC-721 tokens, reveal metadata, and offer full transparency in 2022?

I'm writing an ERC-721 contract to launch a collection of paintings and I'm considering a few semi-generative variations to make the total supply about 1,000 tokens with multiple rarities. I'd like to ...
0 votes
2 answers
823 views

How NFT image assets are combined?

How do NFT projects combine their assets with all possible combinations? e.g. Cryptokitties: you have like 10 skin colors, 10 eyes shape ...etc. to combine these assets, you get let's say 10000 ...
0 votes
2 answers
337 views

How to check the balance of a wallet within a contract and assign balance to a variable?

I'm trying to require the number of contract NFTs in a wallet < declared uint256 variable in order to proceed with safemint function. I have the following code but I can't work out what is ...

1
2 3 4 5
25