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
1answer
13 views

How to get contract address when receiving an ERC-721 token in a contract?

I'm writing an NFT staking contract and I want my contract to accept NFTs only from 3 specific contracts. I have implemented IERC721Receiver and the onERC721Received function successfully fires. What ...
0
votes
0answers
9 views

Randomizing values in mintable NFTs

I've read and written simple smart contracts in the past yet I'm relatively new to getting random data in a transaction, which seems to be harder than I've thought, due to the nature of determinism of ...
0
votes
0answers
18 views

ERC-721 using a combination of Arweave and On-chain metadata

I am working on an NFT project where the NFTs are acting as certificates of ownership to real-world items. I'm by no means an expert on the technical side of things. Aside from some unchanging ...
0
votes
0answers
14 views

Is it possible to verify and publish a contract with openzeppelin imports without uploading imported contracts?

I wrote a contract and imported below contracts and deployed into polygon testnet, but while verifying and publish it is getting failed with : Error! Unable to generate Contract ByteCode and ABI (...
0
votes
0answers
6 views

Why removing royalty info on burn in Openzeppeling ERC721 Royalties extension?

In https://github.com/OpenZeppelin/openzeppelin-contracts/blob/783ac759a902a7b4a218c2d026a77e6a26b6c42d/contracts/token/ERC721/extensions/ERC721Royalty.sol#L34 we have function _burn(uint256 tokenId) ...
0
votes
1answer
15 views

How can I call contract which created from another contract (In TESTING)?

Hello guys now Im testing my contract, but I dont know how to call contract which created from another contract, If someone did it please help) Create I mean like following code. function ...
0
votes
1answer
5 views

Issue Badges (ERC721) for ICO participants ; and based on that define reflection % in the ERC20 contract?

I have unique requirements for a project. They are trying to issue ERC721 based badges/identities to the ICO participants. And utilize that identity/cert for sending reflection rewards via ERC20 ...
0
votes
0answers
18 views

How to verify whether an address has been active on OpenSea?

We do a bunch of validations in our project to ensure real people can claim NFTs and that bots with auto-generated wallets are filtered out. One I'm still figuring out is how to ensure the address is ...
0
votes
0answers
5 views

On EIP-721, how to check if receiver address is capable of receiving?

In the EIP-721 transferFrom states that the caller is responsible to confirm the "to" is capable of receiving NFTs or else they may be permanently lost. Because it throws if "to" ...
0
votes
0answers
24 views

How to get all contracts with ERC721 tokens?

I want to build an index of all the contracts containing erc721, similar to the list Opensea has in his rankings page. I tried with Moralis, but it only works if I give it the contract address as ...
0
votes
0answers
12 views

How to avoid user to get metadata from non-minted ERC721 token?

I'm building ERC721 and ERC1155 tokens but I have something I didn't understand.. My Tokens represent characters with attributes, where every attributes have a different rarity. So every character are ...
0
votes
1answer
23 views

Is there a way to listen to events that involves a specific contract?

I would like to do something when an NFT from my contract gets transferred to another user. Can I listen to events like this? If not, what would be the best way to get around this?
0
votes
0answers
20 views

I need guidance on building a staking smart contract for my ERC 721 NFTs

I have written a smart contract in solidity using remix that will mint ERC721 NFTs. I now want to write another smart contract that will stake the NFTs. My code for the minting contract is below, any ...
0
votes
0answers
7 views

HTML NFT (ERC721) Not displaying correctly from data url

I've built and deployed an HTML nft (ERC721). I've passed a data url containing the base64 encoded html document to the animation_url parameter. This data url shows up correctly when I paste it into a ...
0
votes
1answer
34 views

How would I go about finding out whether an address owns a specific NFT or not?

Can it be done simply using web3.js? Can I do it on both ERC-721 and ERC-1155 NFTs?
1
vote
1answer
29 views

Why does CryptoPunks does not use the Wyvern contract on OpenSea?

Almost all NFT transactions on OpenSea are handled using the wyvern contract which creates an OrdersMatched event for the NFT sale. However, I noticed that on sales for CryptoPunks there is no ...
0
votes
1answer
12 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 ...
1
vote
1answer
30 views

what does ERC721 _checkOnERC721Received do?

function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to)....
1
vote
2answers
30 views

Can I transfer ownership of an ERC-721 contract to a gnosis safe?

I was sent here by the nice user support people. Can I transfer ownership of an ERC-721 contract to a gnosis safe? just to be clear, not erc-721 tokens... I am talking about the contract, can it be ...
0
votes
2answers
82 views

Different IDs for bulk NFT mint in ERC-1155

I would like to mint bulk NFTs, say 1000. ERC-721 will be costly, therefore, I would like to use ERC-1155 instead. What I want to learn is, is it possible to have different IDs for each NFT? If so, ...
1
vote
1answer
8 views

DNSLINK for ERC721

I'm working on a dynamic NFT project where the images will periodically be updated and I would like to do this with DNSLINK but I'm not sure how to link my tokenURI to the IPFS CID returned by DNSLINK....
0
votes
0answers
31 views

Check that the sender of NFTs is the owner of the IERC1155Receiver contract

I'm currently building a smart contract in solidity (v0.8.6) that can store NFTs, but I only want the owner of said contract to be able to send NFTs to it. The onERC1155Received function gives several ...
0
votes
0answers
11 views

Question: ERC721 (NFT) contract per individual item/content or per platform

Executive Summary I am developing a cool little project to-do with NFT's, its a platform that allows users to make NFT's (I know, not original) and do other things, like buy them etc. I have had a ...
0
votes
1answer
19 views

How to cheaply fractionalize certain rare NFTs in a collection?

I wanted to fractionalize certain rare NFTs in a collection. I.e a collection with total 5000 NFTs, 4000 with normal minting (1 owner) and 1000 NFTs that are each fractionalized (100 shares). Also the ...
0
votes
1answer
44 views

How to successfully utilise the safe mint or mint function?

function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an ...
0
votes
1answer
35 views

How does an NFT marketplace give a verified badge?

I am trying to build an NFT marketplace. I see that Opensea provides a verifiable account badge. Here is the link for documentation I wonder how Opensea uniquely identifies the user if it is qualified ...
1
vote
1answer
31 views

How are contracts allowed to transfer ERC20 tokens from a different contract?

Sorry if my question sounds a bit vague, but I'm looking at writing an NFT staking contract that will allow holders of the ERC721 token to transfer those tokens in return for our ERC20 token. There ...
1
vote
2answers
67 views

ERC721 - getting the list of all token owners (all addresses)

I have an ERC721 compliant contract with multiple NFT tokens. I'm looking for a way to randomly select one of the token owners. Is there a way to get the current list or all token owners from ERC721 ...
0
votes
1answer
44 views

How to call ERC 721 smart contract methods from JavaScript [duplicate]

I'm trying to create a simple nft minting website and I have my contract working properly but I'm having trouble implementing the actual minting process. So far my site only has the ability to let ...
0
votes
0answers
24 views

what does id refers to in erc1155

I'm trying to explore erc1155 with a knowledge of erc721. I come to know that in erc1155 the id refers the token type. I found this from https://ethereum.org/en/developers/docs/standards/tokens/erc-...
0
votes
0answers
48 views

I want to code a claim function in my ERC20 smart contract and want to limit the claimants to only those who hold an NFT from a particular collection

I'm writing a smart contract for an ERC 20 token that is pausable and mintable in the sense that more tokens can be created by the contract owner. I want to add a claim functionality for the holders ...
0
votes
1answer
104 views

How to approve() a ERC721 token to an unknown address which buys the token at some later point?

I am building an NFT marketplace where the user actions are as follows. Address A uploads an image to create an NFT. This action calls smart contract functions createToken() to create ERC721 token ...
0
votes
1answer
34 views

Retrieve ABI file using a ERC721's contract address

Is there a way to to retrieve a ERC721 contract's ABI programmatically using its contractAddress? Not sure how to do this
0
votes
2answers
70 views

Why do I keep receiving this error? "revert ERC721: transfer caller is not owner nor approved"

I'm trying to write this function in solidity that resells an NFT that someone has purchased, and I keep getting the aforementioned error. I'm not exactly sure what the issue is, cause this function ...
0
votes
0answers
74 views

"Contract might not be implemented correctly" but I'm using ERC721URIStorage from OpenZeppelin?

I'm trying out the OpenSea SDK using the following code: const expirationTime = Math.round(Date.now() / 1000 + 60 * 60 * 24) const assetPromise = seaport.api.getAsset({ tokenAddress : '...
0
votes
0answers
67 views

Make NFT ERC1155 Or ERC721 with multiple images

as the title states i want to make an NFT which can have an array of images associated with it, which the user from my website can choose any amount of images and create this NFT. the metadata however ...
1
vote
2answers
68 views

Is reentrancy guard needed in ERC 721 minting process and why so?

I am trying to write a ERC-721 NFT minting contract and I am noticing that a lot of users are guarding against reentrancy attack. I was wondering why(and if) is this needed. An example of a contracts ...
0
votes
1answer
37 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
1answer
87 views

How to access the price nft asset is being sold for in your NFT contract?

I have a unique case in which I want to implement an NFT contract that prevents users from selling/transferring NFT tokens below a specific ether price. Opensea uses wyvern protocol for NFT order ...
0
votes
0answers
149 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 ...
0
votes
1answer
49 views

uniquenessOfErc721Token(tokenId, contract)?

it seems the primary function determining an ERC721 token is _safeMint(address to, uint256 tokenId, bytes _data). in the case of ERC721Metadata, the significant addition seems to be _setTokenURI(...
0
votes
1answer
64 views

Should I use totalSupply() or a custom counter for ERC-721 token id?

I'm following OpenZeppelin ERC721 guide. They use a counter (Counters.Counter) for the tokenId. My contract inherits from ERC721Enumerable so I have totalSupply() out of the box. I was wondering if I ...
3
votes
2answers
123 views

Bulk Distribution of NFTs to Wallets with Varying Quotas

Problem: I'm working with two programmers to launch a 4444 NFT avatar collection. My main focus is fair distribution. There will be more than 1K wallets with varying number of claims, some will have 1 ...
1
vote
0answers
25 views

brownie is not reading web3 infura project id even though it's already set in .env

I'm following Patrick Collins' NFT Smart Contract course on YT and I can't get Brownie to read the WEB3 Infura project id This is what the Error looks like Brownie v1.16.4 - Python development ...
1
vote
1answer
66 views

erc-721 extension for immutable plaintext string instead of tokenURI

trying to implement this tutorial https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/ but without any metadata/tokenURI and with plain text data encoded on-chain instead, as ...
1
vote
0answers
48 views

How to make a web page button that invokes MetaMask to mint an NFT to Ethereum mainnet?

What programming languages background is required to publish a web page that has a button on it, which when pressed, invokes MetaMask for the user to publish an ERC-721 token to Ethereum mainnet? ...
1
vote
1answer
38 views

Universal solution to implement Royalties for ERC721 for trades on and off marketplace?

The goal is to implement royalties in an ERC721 on any transaction, independent if it happened on a marketplace or peer-to-peer. I can only find implementation/tutorials for royalties on a marketplace ...
0
votes
1answer
255 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
1answer
22 views

Handling sensitive data in an ERC721 Contract

I'm a noob in web3 and blockchain, but could someone help me understand this: Can you store sensitive data within an NFT (ERC721)? If so, how would that data be stored? Within the token URI (IERC721 ...
0
votes
0answers
21 views

Call Smart Contract to Smart Contract always reverts - OpenZeppelin

I have an implementation of the ERC721 OpenZeppelin contract that implements another method: // SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "https://github.com/OpenZeppelin/...

1
2 3 4 5
13