Questions tagged [erc-721]

Relating to ERC-721, the standard for Non-Fungible Tokens (also known as Deeds)

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Polygon Mumbai - transaction pending infinetly when interacting with contract

I am trying to implement a ERC721 NFT smart contract at polygon mumbai network. First of all, contract code is here: https://github.com/Lorenzobattistela/melk-smart-contract When I first deployed with ...
user avatar
0 votes
0 answers
30 views

ERC-2981 implementation in ERC-721A contract

I am trying to implement ERC-2981 in a ERC-721A contract. The below code compiles and deploys fine. After a test mint, the transaction overview seems fine: However, the token tracker shows no ...
user avatar
0 votes
1 answer
7 views

Execute "setApprovalForAll" on behalf of deployed smart contract (Solidity)

I have deployed a contract which implements Ownable and IERC721Receiver. The issue I am facing is that this particular contract does not implement any function to grant approval to other contracts in ...
user avatar
0 votes
1 answer
21 views

Is it possible to fetch an Owner of an NFT by providing Smart Contract address and NFT ID

I am developing a smart contract which requires users to upload a specific information about their NFTs. I somehow need to verify whether they are the actual owner of that NFT before uploading ...
user avatar
  • 101
0 votes
0 answers
6 views

How Does a ERC-721 Smart Contract Interaction Work (BAYC example)?

I am trying to understand how most NFTs smart contracts work from start to finish. Specifically I am trying to understand how the mint function should work. From my understanding this function ...
user avatar
0 votes
1 answer
10 views

How can the smart contract auto execute the function in the Public chain eterscan testnet?

i'm using auctions in Nft-marketplace smart contract and i want auto call the fnction of widraw wheneever auction ends , and transfer bidders bidds ti thier account ?
user avatar
0 votes
0 answers
15 views

Symbol in NFT contract(RL)

The team and I decided on the subject and the name of our nft project, but the question arose: are there any rights to the nft symbol? Is it possible to use any symbol without fear of being accused of ...
user avatar
0 votes
2 answers
21 views

How do you pass in a variable as a string to a constructor in solidity

I'm currently working on an NFT project, using the openzeppelin ERC721 standard for the nfts. When Inheriting the ERC721 NFT contract standard from openzeppelin you're required to pass in the "...
user avatar
0 votes
0 answers
10 views

The purpose of 3 variables in the ERC-721 contract [closed]

I am analyzing the contract of one nft collection. The contact has the following variables: uint256 private reserveAtATime = 66; uint256 private reservedCount = 0; uint256 private maxReserveCount = ...
user avatar
0 votes
1 answer
5 views

Transfer someone else's NFT asset with an approve

I got this NFT marketplace smart contract. Still at the proof of concept stage, so I got 2 options to go with, I was just wondering if someone tried, or has knowledge about it: Here is the deal, I was ...
user avatar
  • 315
0 votes
0 answers
8 views

when i Fetch my NFT's in marketplace i got this , please help me out

function fetchMyNFTs () public view returns (MarketItem[] memory) { uint totalItemCount = _tokenIds.currentId(); uint itemCount = 0; for (uint i =0 ; i <totalItemCount ; i++) { ...
user avatar
0 votes
1 answer
8 views

Fakes on OpenSea

Recently, our team faced a small problem. We made an announcement of the collection and showed several nfts. Soon, fakes of our collection and our profile appeared on OpenSea. How to resist this ? ...
user avatar
0 votes
0 answers
7 views

Deployment of the Open sea contract

I want to host my nft collection on OpenSea, how do I do it? Please share guides, links or your experience) Thank you very much in advance
user avatar
0 votes
1 answer
20 views

NFT tokenID question

I've got an ERC721 contract as part of a larger react dApp. My app is connected using web3 tools to the user's wallet. I need to be able to see if the address connected has a token balance for my ...
user avatar
  • 1
0 votes
0 answers
19 views

ERC721 - safeTransferFrom function reverts on called by approved address

In ERC721, safeTransferFrom function , we run approve() to clear the approval, if any, for the tokenId being transferred. This function can be called by owner or operator or approved address. But for ...
user avatar
0 votes
1 answer
29 views

How to determine if a smart contract is ERC721 if it is not responding with ERC721 interfaceID

I am working on a crawler that indexes ERC721 contracts on the blockchain. The method that I found to find the ERC721 contracts is something like this: For every transaction on the blockchain: For ...
user avatar
0 votes
0 answers
4 views

How to identify an opensea "collection" minted using the opensea contract?

This is the contract https://polygonscan.com/address/0x2953399124f0cbb46d2cbacd8a89cf0599974963 If you look at the interface https://polygonscan.com/address/0x2953399124f0cbb46d2cbacd8a89cf0599974963#...
user avatar
  • 3
0 votes
1 answer
35 views

ERC721A - Strings for uint256 | ERROR REMIX IDE

I'm struggling with this error, the contract is from a famous Blockchain Dev Youtuber Hashlips and i've used it months ago without error, but now when i put it into REMIX Ide it gives me this error. ...
user avatar
0 votes
1 answer
29 views

How to get transaction history of ERC-721 token in Solidity

I'm trying to figure out how to get a history of values for a specific ERC721 token of known contract address. I want to do some maths in solidity and do not want to do all that in web2; therefore, I ...
user avatar
  • 3
0 votes
0 answers
23 views

Getting error Erc721 : operator Query for non existent token

I am making a nft rental contract. When calling setUser or any function in the contract error is generated -- ERC721: operator query for nonexistent token. Even if the token is minted . Any guess why? ...
user avatar
  • 1
0 votes
1 answer
40 views

Why require(minter == msg.sender) always throw error? I used the correct address as sender

I created an contract , source code is: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/...
user avatar
  • 160
0 votes
1 answer
24 views

Set a minimum price an NFT can be listed on exchanges for

Is it possible to have a minimum price for a ERC721 contract that would prevent the token being traded on exchanges if listed below that set price. (Not the mint price of the token itself) Say an item ...
user avatar
0 votes
0 answers
18 views

erc721 was created but does not appear in wallet

I am attempting to create a Factory which mints NFTs and while it seems that my transaction has completed, metamask does not register the NFT. See the screenshots of my app: https://imgur.com/a/...
user avatar
0 votes
1 answer
21 views

Is it possible to write protect an IPFS base url?

Imaging you have an ERC721 contract with an infinite max supply. Usually, the metadata IPFS url will be the base url concatenated with the token ID: ipfs://[base-url]/[token-id]. Say we are up to ...
user avatar
0 votes
1 answer
19 views

In My ERC-721 Contract, tokenURI Doesn't Return A String, It Returns A Promise

In my solidity contract, the function for tokenURI looks like this: function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), ...
user avatar
0 votes
1 answer
49 views

OpenZeppelin ERC721: difference between safeMint and mint

Can you highlight the core difference between two functions: mint and safeMint? Why its called "safe"? and when both of them should use? cause, for me, functions' syntax is pretty similar.
user avatar
0 votes
0 answers
18 views

It is possible to see NFT attributes (IPFS metadata) on Metamask?

I have developed an ERC-721 Smart Contract, to mint NFTs following the OpenZeppelin guide and ERC721URIStorage.sol extension. In the tokenURI property I'm adding a JSON file stored in IPFS, following ...
user avatar
  • 646
0 votes
1 answer
64 views

How do I download an entire NFT collection, including metadata

I want to download an entire collection, including the metadata. Any help would be appreciated.
user avatar
0 votes
2 answers
27 views

Is There A Way to Do A Whitelisted NFT Mint Via Email?

I am trying to do an NFT launch via email. I have a basic NFT smart contract that I'm ready to deploy. I also have a react app with metamask connected and a button for the end user to mint an NFT. My ...
user avatar
0 votes
1 answer
17 views

ERC721 setApproveForAll for 2+ operators

I was wondering how setApproveForAll is working. If the USER approves 2 operators(operatorA and operatorB), and operatorA create an auction and sells the USER's NFT first, is the job of operatorB to ...
user avatar
0 votes
1 answer
52 views

Downsides of using ERC721A over ERC721?

At our project we're still contemplating wether to ERC721A over ERC721Enumerable. It's important for us to have stability. So has ERC721A proven so far that it's stable? I'm looking forward to answers ...
user avatar
  • 101
0 votes
0 answers
12 views

Can I leave a gap between token indexes?

I am writing an ERC721 smart contract for minting a collection of 10000 NFTs + 100 reserved for the owner. However I was wondering if it could be done by reserving token ID's 0-99, which can be minted ...
user avatar
  • 101
0 votes
0 answers
12 views

Secondary sales commission – ERC721 [duplicate]

The general idea – ERC721 contract, with minting functionality, and a commission every time the token changes owners (e.g. through OpenSea). The ERC721 and minting functionality is fairly simple. What ...
user avatar
  • 101
0 votes
1 answer
27 views

TokenURI Stack too Deep Errors

I am trying a slightly different approach to the TokenURI with dynamic metadata in my ERC721 NFT. As the metadata can change I generate the TokenURI in the contract as required, it works fine but I am ...
user avatar
0 votes
1 answer
56 views

Cheaper way to mint NFTs to addresses( airdrop) by using ERC721 contract?

I want to create an NFT contract and mint some NFTs to some addresses. I have a function as follow: function airdrop(uint256 tokenId, address _receiver) public onlyOwner { _safeMint(...
user avatar
0 votes
2 answers
24 views

Can I re-deploy an NFT contract when the previous contract hasn't had any interactions?

I have created, deployed and verified an ERC721 smart contract for an NFT collection. The base URI is set in the contract, but no tokens have been minted yet and the contract hasn't had any ...
user avatar
0 votes
2 answers
47 views

Transfer ERC721 tokens in BULK to single address

I want to know what is the gas effective manner to code to transfer many (e.g 1000) ERC721 tokens to a single address. I have tried the way below but I want something more efficient. function ...
user avatar
  • 61
0 votes
0 answers
18 views

How do I use my erc20 coins on multiple chain?

I am planning to launch my erc20 token as coins so that I can use those for dapps payment. So, my concern is how can I use those coins on dapp that are on different network. Like, if I create my erc20 ...
user avatar
0 votes
1 answer
38 views

How can I use my polygon erc20 custom tokens on other chains?

I am planning to launch polygon erc20 coin. But I have come to learn recently that interchain smart contract interaction is not possible. If I want to use my polygon coins as a payment on ethereum ...
user avatar
1 vote
1 answer
29 views

Contract <contract_name> should be marked abstract - when inheriting IERC721?

I was trying to do a simple NFT locking mechanism when I came across this error (It transfers over the NFT from owner to a locking address): TypeError: Contract "locker" should be marked as ...
user avatar
0 votes
1 answer
18 views

Usage of cloned factory contract pattern for erc721 marketplace contracts

I have an upgradeable ERC721 contract for a marketplace and its working is such that every time a new collection is to be deployed a new contract is created for that collection. Now, I this process is ...
user avatar
  • 790
0 votes
0 answers
12 views

Is it possible to use both ERC721 and ERC1155 standards in the same staking contract?

Is it possible to use both ERC721 and ERC1155 standards in the same staking contract, or would that require 2 separate contracts?
user avatar
1 vote
1 answer
45 views

How to calculate token ID for my own NFT marketplace

I am just creating my own NFT marketplace. I need to create unique token ID for each NFT but the current demo for token ID is like below. contract ERC721 { ... mapping(uint256 => address) ...
user avatar
0 votes
0 answers
24 views

Is this an application for ERC721 or ERC1155?

I am in the process of planning my first smart contract and trying to decide if I should use ERC721 or ERC1155. Any help from someone more experience on the subject would be much appreciated! Here is ...
user avatar
  • 1
0 votes
0 answers
15 views

Brownie seems to revert the effect of some transactions while testing

I am currently testing an ERC721 smart contract with brownie, and I am implementing a stateful test for it. The structure is: def setup(self): self.balance = {i: 0 for i in self.accounts} ...
user avatar
0 votes
0 answers
27 views

How to pass NFT property value to smart contract

I have an NFT staking contract that issues rewards based on the property rarity of the NFT staked. The four property tiers are 1,2,3 and 4. When a user clicks stakeNFT(tokenId, nftTier), I use the ...
user avatar
1 vote
2 answers
23 views

What is the difference between NFTs and a smart contract?

I am exploring a new domain and wanted to understand the difference between ERC721, ERC20, and a smart contract? ERC721 is "a standard for representing ownership of non-fungible tokens," but ...
user avatar
0 votes
0 answers
29 views

How to give approval to all addresses to transfer my tokens?

I am trying to develop an erc 1155 marketplace? I am using the function : ERC1155.setApprovalForAll(to, true); To provide approval to all tokens that the owner owns to a particular address. Now, I ...
user avatar
0 votes
0 answers
24 views

How would I link multiple tokens to a single token?

So I'm trying to allow a user to stake a token and have users stake their tokens from a different collection within that token if that makes sense. Kind of like storing cars in a garage. The contract ...
user avatar
  • 1
0 votes
0 answers
10 views

Is there a web3 equivalent of Discord based on ERC721 ownership?

I am wondering if there exist, to this date, online discussion platforms in the likes of Discord or Slack - private community messaging apps - on which you would only be able to join groups/...
user avatar
  • 1

1
2 3 4 5
17