Questions tagged [erc721]

123 questions
1
vote
1 answer

ERC4907 compile issue in "function _beforeTokenTransfer"

I am working on an NFT Marketplace creation task with Truffle. For that, I am using an ERC4907 smart contract and trying to compile it. Following is my ERC4907 code. // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import…
1
vote
1 answer

Why Openzeppelin ERC721 defines two 'safeTransferFrom'?

Source code: /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId,…
Ray
  • 333
  • 4
  • 11
1
vote
0 answers

ERC721 How to sign EIP-712 and verify if the signer of signature is the owner of the NFT?

How to sign EIP-712 and verify if the signer of signature is the owner of the NFT ? using Counters for Counters.Counter; using ECDSA for bytes32; Counters.Counter private _tokenIdCounter; mapping(address => uint256) private userInfo; bytes32…
Software14
  • 155
  • 1
  • 9
1
vote
0 answers

ERC2981 NFT Royalties Implementation in a ERC721 Marketplace

I've read already many posts regarding this topic, but I just can't wrap my head around this Royalty implementation thing. Pls help me out, I don't know how I should play with this thing. what is feeNumerator? _setDefaultRoyalty(address receiver,…
DevABDee
  • 180
  • 9
1
vote
0 answers

Get past transactions on a contract using web3.php

I am using web3.php script and need to get minted NFT IDs from a contract. Solution I think about is to read past contract "transfer" events and get tokenId from its data. but couldn't find any manual on how to do this with WEB3 PHP or if there is…
mhmd
  • 995
  • 2
  • 15
  • 30
1
vote
1 answer

Is it possible to create an erc721 contract without using openzepplin library and render it on opensea?

I am building an erc721 contract (for practice) from scratch without using any external libraries such as openzepplin. till yet the basic functions work. now I want to list the tokens created from this contract to open sea, how do I do that or is…
Sam
  • 55
  • 6
1
vote
1 answer

How to Return an Array of structs from Solidity?

i'm having an issue when trying to return an array of structs from a getter function i've made. The smart contract is an ERC721 Staking Contract. This is the getter function: function getNftInfo(uint256[] calldata tokenIds) public view returns…
1
vote
1 answer

Can you make an ERC1155 contract receive an ERC721 token?

I've got an ERC1155 contract and I want it to receive an ERC721 token and give other tokens in exchange for that. Can I somehow add ERC721 Receiver interface?
kar
  • 13
  • 4
1
vote
1 answer

check if a given NFT id on a contract is minted or not

NFT contract is on ERC-721 we need the most simple way to check if Token ID from NFT collection is minted so far or not. no matter if it is minted and transferred several times. just if minted , true or still not minted, false Thanks
mhmd
  • 995
  • 2
  • 15
  • 30
1
vote
3 answers

Is frontend better or backend for integration with smart contract (erc721)?

I have developed my ethereum smart contract and I want to integrate it with my web application. But I don't know that is integration with ReactJS a better option or integration with nodejs a better one. Please give suggestions . Also I don't know…
Zoha Akram
  • 47
  • 9
1
vote
1 answer

Invalid contract specified in override list?

I am having an issue trying to deploy a contract i've just finished working on... Here's the code :` // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import '@openzeppelin/contracts/access/Ownable.sol'; import…
kjp
  • 21
  • 3
1
vote
0 answers

How to recognize and interact with contract of other chains?

I am planning to issue erc20 token on ethereum and I want to use it as a payment for dapps on polygon. How may I estublish the interaction between the contracts? A potential answer to that question might be bridging. But I tried to look for every…
Blockchain Kid
  • 315
  • 2
  • 9
1
vote
0 answers

ERC721 contract deployed with create2 stops working after a particular function is called

So I'm working on an NFT marketplace smart contract and one of the features in this marketplace allows users to deploy their own collection (this is basically a smart contract that extends the ERC721 specification). For this, I'm leveraging the…
1
vote
1 answer

deploy erc721 contracts from a simple or factory contract

I want to deploy erc721 contracts from a simple factory contract and i have this error when I try to upload NFT - "transfer to non ERC721Receiver implementer", "data"enter image description here // SPDX-License-Identifier: MIT pragma solidity…
1
vote
0 answers

can I create a token that would be having an array of multiple tokens?

I am developing a blockchain based food supply chain project in which I have to create raw products as well as a finished product (nugget in my case). I have created an ERC 721 contract for tracking the process but now I have to add that one nugget…
Zoha Akram
  • 47
  • 9
1
2
3
8 9