Skip to main content

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

ENS: Resolve NFT to its name

When registering an ENS name, an NFT is received corresponding to the name. Given I know the token ID and contract address of the NFT, how can I determine the corresponding ENS name for it (e.g. foo....
Cooper Maruyama's user avatar
0 votes
0 answers
24 views

I'm working on a NFT Marketplace and help me with BUY function. It's not working?

I'm new to smart contracts and testing some functions. I'm trying on buy nft function. it's not working somehow. Even though I've enough balance, the crypto transfer is not happening. Please find the ...
Vara Prasad's user avatar
0 votes
1 answer
32 views

How to get all my tokens from my contract

I need help getting all tokens in an array . I’m making a geo location based game, where a user can mint an NFT and then pin it to the map. Once the NFT is pinned it gets added to my NFTS array I want ...
piña's user avatar
  • 209
0 votes
1 answer
15 views

Getting an error While uploading image folder on pinata using pinFromFS function in nodejs

I am uploading approx 2.3 GBi of folder to pinata using pinFromFS() now i am getting error given below: Error: write EPROTO at afterWriteDispatched (node:internal/stream_base_commons:160:15) ...
Rahul Pithadia's user avatar
1 vote
0 answers
48 views

Chainlink function is executed but NFT is not minted

I am using Remix IDE with compiler version pragma solidity 0.8.20. Basically the contract calls an external API using Chainlink functions to get a character name that will be used when minting the NFT....
Jose Miguel Vega Lopez's user avatar
0 votes
1 answer
55 views

ERC721 NFT is empty in Avalanche Fuji Testnet

I am using OpenZeppelin to generate this simple contract and Remix IDE to deploy it and interact with it using Core Wallet as injected provider: // SPDX-License-Identifier: MIT // Compatible with ...
Jose Miguel Vega Lopez's user avatar
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 ...
user134392's user avatar
0 votes
1 answer
59 views

ERC721 safeTransferFrom reverts with no message

I'm trying to build a NFT marketplace to learn solidty but i don't understand why my code doesn't work. Here's the relevant parts: // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0....
xx_VxR_xx's user avatar
0 votes
0 answers
13 views

Public mint but merkle proof exists

I want to programmatically mint this Base Mainnet NFT: NFT Base Scan code The mint is open to everyone, but when I decode my transaction: TX Link, I can see that there still exits merkle proof that is ...
duyanhhz's user avatar
0 votes
0 answers
17 views

How do you actually link Real World Asset to newly issued tokens?

I've been exploring possibilities to tokenize real world assets, such as a real estate, and I came across the concept called Real World Asset Tokenization link. Aside from all the gibberish about how ...
Hitit's user avatar
  • 101
0 votes
0 answers
19 views

Getting error Error in plugin @nomiclabs/hardhat-etherscan: You set an Etherscan API token for the network

Hello Dear I need Some help Am trying all The day TO deploy nft in Base testnet in visual studio code I deployed it but when I try to verify I got This error Error in plugin @nomiclabs/hardhat-...
Shi's user avatar
  • 1
0 votes
1 answer
33 views

Openzeppelin ERC721Enumerable getTokenIdsOfOwner reverts and I don't know why

I am trying to implement a staking contract, I wanted to map all the owned NFTs by a certain address, so came across ERC721Enumerable and getTokenIdsOfOwnerfunction, however whenever I call my ...
Mohamed Wael's user avatar
0 votes
0 answers
37 views

Token Transfer in the absence of _isApprovedOrOwner

I have created a smart contract in which I have a method called forSale used to store a flag (in a struct part of a mapping) indicating that the owner of an ERC721 token wishes to sell his said token (...
JF0001's user avatar
  • 291
0 votes
1 answer
36 views

How to call erc721 functions (approve, setApprovalForAll etc.) from another contract?

I have an erc721 NFT and a Main contract. The Main Contract is a factory contract. Which creates erc 721 contracts. I can create NFT contract from Main contract . But can't call the approve, ...
Asir Shahriar Roudra's user avatar
0 votes
0 answers
87 views

EIP-2612 Permit Signature Phishing Scam

I have fallen for a phishing scam which resulted in drainage of a single asset from my wallet after signing a permit signature request via browser wallet. Going back to the phishing site I can see ...
Tom Heaps's user avatar
1 vote
1 answer
25 views

How do projects create huge NFT collections?

Working with ERC20 is simple, but when it comes to NFTs, how can I manage bigger collections? For example I wanna launch a collection of 2k NFTs. The problems are: To upload the 2k images (This is ...
Solidity Nerd's user avatar
0 votes
0 answers
19 views

Dynamically include data from contract in ERC721 JSON data

Let's say an ERC721 NFT contract includes a mapping: mapping(uint256 => uint16) public nftAttributeA; // uint256 is tokenId, uint16 is an attribute of the tokenId where the nftAttribute is updated ...
Ryan's user avatar
  • 92
0 votes
1 answer
29 views

ERC721 Transfer Event in Constructor

I thought that when you mint an ERC721 Token in the Constructor of your smart-contract it will not emit the Transfer event. I'm thinking this cause of what's written in the official ERC721 EIP ...
Mark55's user avatar
  • 1,011
0 votes
1 answer
17 views

How NFT marketplaces detect NFTs metadata updated?

I have learned ERC-4906 to notify updating metadata. I found out the way to detect some NFTs metadata updated, but I don't know how marketplace detect tremendous NFTs metadata updated. Please let me ...
ttt's user avatar
  • 107
0 votes
2 answers
34 views

How to get which tokens have been transferred by a transaction using ethers or Web3?

Given for example this transaction, is there a way of getting exactly what ERC721 tokens have been transferred by it? To clarify, it would be this detail here: Is it possible to get this information ...
Falcon Stakepool's user avatar
2 votes
2 answers
105 views

ERC721 Inheritance Issues

I have a smart-contract that inherits from ERC721, as follows: contract myNFTsMinter is ERC721, Pausable, Ownable, ReentrancyGuard { ... } In my javascript file (I'm using Hardhat + ethers.js) I ...
Mark55's user avatar
  • 1,011
1 vote
1 answer
28 views

How do i read sales here?

I've been trying to read the sales in this transaction. Tried to read "Execution721MakerFeePacked" event But could not understand anything from it. Tried seeing what NFTs got transferred and ...
Ladybug's user avatar
  • 11
0 votes
0 answers
10 views

Seeking Smart Contract for Certifying Physical Artworks Similar to Kronos360

I'm looking for a smart contract that can certify physical artworks, similar to Kronos360's approach for watches. The contract should mint a unique token for each artwork, linked to its image and ...
YoannR's user avatar
  • 1
0 votes
0 answers
69 views

Why is hardhat contract deployment script consuming high gas?

const hre = require("hardhat"); async function main(file_name, private_key, smart_contract_name, smart_contract_symbol) { const networkURL = hre.network.config.url; const provider = new ...
Gaurav Pant's user avatar
0 votes
0 answers
35 views

Efficient Storage Strategies for ERC721 with Editable Content

I'm just starting to learn about smart contracts, Ethereum and NFTs. It's all new and I need your help with managing editable NFTs. I want to create a NFT with content that is easy to modify while ...
user9541033's user avatar
0 votes
1 answer
70 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. ...
Aryan's user avatar
  • 1
0 votes
1 answer
156 views

Can't see the metadata for my sepolia nft on opensea's testnet or ehterscan testnet

I'm following a tutorial on how to create an ERC721 contract and I've ran into a problem. I can't see the image for an NFT I've minted on Opensea's testnet. none of the metadata will load after almost ...
Jupiter Express's user avatar
1 vote
3 answers
423 views

Trying to create a soulbound token. Keep getting two errors

I'm trying to create a soulbound (non-transferable NFT) token on Solidity. Here is my code so far. // SPDX-License-Identifier: MIT pragma solidity >=0.4.17 <0.9.0; import "@openzeppelin/...
NFTSamurai's user avatar
0 votes
0 answers
10 views

Can we provide NFT royalties to 2 addresses through Opensea?

I have an NFT collection and want to split the royalty between 2 addresses. After some research, I stumbled upon the contractURI() method where we can add the information like: function contractURI() ...
Shubham Sharma's user avatar
0 votes
1 answer
26 views

Best approach to simplify phantom array logic (ERC721 Enumerable) [HARD]

I wanted to create an ERC721 token vault with arbitrary numbers of NFTs pre-"minted", yet compliant with IERC721Enumerable as a proof-of-concept. For simplicity, the NFT ids are contiguous. ...
Ashraile's user avatar
  • 125
0 votes
1 answer
209 views

Why am I not able to deploy ERC721 contract to Avalanche Fuji?

// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol"; contract NFTERC721 is ERC721 { uint256 private _nextTokenId; ...
Gaurav Pant's user avatar
1 vote
1 answer
23 views

How can I access the 3rd argument of _safeMint?

I am minting an ERC721 using _safeMint and I am setting the 3rd argument to a string. I want to be able to access this data argument using the transaction hash or whatever I have to access the ...
Falcon Stakepool's user avatar
1 vote
0 answers
15 views

Attack vector in direct transfer function in EC721

How the attack vector would look like in case of direct transfer function in EC721 standard. It is described in the comment A marketplace is transferring an NFT from Bob to Mary (among many other &...
ramiz_karaeski's user avatar
0 votes
1 answer
123 views

How can I fix execution reverted: ERC721: approval to current owner?

My contract is returning me this error: execution reverted: ERC721: approval to current owner How can I fix this? //SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "hardhat/...
Mohamed Dhaanish's user avatar
1 vote
2 answers
126 views

How can I fix a problem with transferring ERC721 by approved contract?

Hey everyone I'm new to NFT development and developing an ERC721 token for property ownership and marketplace. I implemented two functions to enable a user to put their token on sale for another user ...
emtothed's user avatar
0 votes
1 answer
205 views

ERC721 token image not showing in wallet

Hey everyone I'm new to NFT development. I developed an ERC-721 token used for property ownership and I deployed and minted a token both on Anvil and sepolia. I can import the token on metamask but ...
emtothed's user avatar
0 votes
1 answer
112 views

NFT metadata for property ownership ERC721 token

Hey everyone I'm new to NFT development and I'm trying to develop a simple property ownership and marketplace using the ERC721 token standard. since I'm so unfamiliar with json I have some problems ...
emtothed's user avatar
0 votes
1 answer
28 views

Batch NFT mining

I am trying to create a project where users can specify a total supply on a minted NFT, will the NFT all have the same address but with different tokenId's or they will have different addresses
Santos's user avatar
  • 17
0 votes
1 answer
39 views

With erc-1155 can you mint tokens on the fly with parameterized name and supply?

The erc-1155 contract would have various token types. Users would be able to request minting (contract owner would mind the tokens on their behalf) of any type available on the contract but they would ...
Sami Awwad's user avatar
1 vote
1 answer
92 views

NFT Not Show In Opensea Collection Profile

I am trying to buld ERC721 to my NFT. But the NFT not show in NFT opensea profile Collection. I am using openzeppelin library and the basic project is using Hashlib labs. The skenario is when i mint ...
angga danar's user avatar
1 vote
1 answer
105 views

When a ERC1155 works as ERC721 and when as ERC20?

Im trying to track in real time the holders of any ERC1155 contract, and I have this doubt about this interface. The ERC1155 can work as an NFT or as a Token, but also as both at the same time, right? ...
lucasmenendez's user avatar
1 vote
1 answer
121 views

Deploying a smart contract without private key

I want to create a web app that will allow users to deploy a smart contract for ERC721 SBT (Soul-Bound Tokens) and then transfer those SBTs to specific accounts. However, I intend to keep it as a no-...
Soham Ratnaparkhi's user avatar
1 vote
1 answer
36 views

How do i directly write in my ERC721 parent's private mapping?

MyContract is ERC721 I want to adapt the _update function to a specific usecase. In order to keep its core functionality, the adapted function needs to write into _owners, _balances and ...
PupSt4r's user avatar
  • 61
0 votes
0 answers
35 views

Can I add an NFT image to MetaMask on the Ganache test network?

Here is my code: const addImageToMetaMask = async (_tokenAddress, _tokenName, _tokenSymbol, _urlImage, _tokenId) => { try { if (typeof window.ethereum !== 'undefined') { const provider =...
azam's user avatar
  • 1
1 vote
0 answers
145 views

Slither, High risk vulnerability , arbitrary from in transferFrom (ERC20)

So I'm implementing a NFT marketplace. It allows a non custodial bidding system; Meaning an address can make a bid (provided it has enough fund at the moment of bidding) without sending the funds. To ...
Torof's user avatar
  • 790
1 vote
0 answers
29 views

0x ExchangeProxy addresses point to different implementations on Ethereum and Polygon

Why is it that on ethereum the 0xDef1C0ded9bec7F1a1670819833240f027b25EfF contract is a ERC1155OrdersFeature and on Polygon it is a ERC721OrdersFeature? Does is mean that there is no ERC1155 support ...
AFMeirelles's user avatar
0 votes
0 answers
23 views

Solidity Contract Size and ERC721

I have a contract that mints Tokens and I’m currently managing the properties of these Tokens using a series of Arrays, as follows: uint256[] public tokenIDsArray; uint256[] public ...
Mark55's user avatar
  • 1,011
1 vote
0 answers
18 views

Is it a good practice to token gate smart contracts for a user base?

I want to create a contract like below which restricts access to some functions based on holding of ERC721 token. contract GreetingContract { IERC721 public token; string greeting; ...
Rishi Deorukhkar's user avatar
0 votes
0 answers
33 views

ERC721A internal _transfer

I am currently developing a contract that includes a function allowing token transfers without the need for explicit approval. However, I have encountered a challenge as the existing functions within ...
NFT_king's user avatar
0 votes
0 answers
26 views

Transaction Reverted by EVM during NFT Minting Process

Body: I am trying to create an NFT minting application using React for the frontend, Express.js for the backend, and Solidity for the smart contract. The smart contract is deployed on the Ethereum ...
New programmer's user avatar

1
2 3 4 5
20