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
0answers
25 views

Function to deposit an ERC721 token in another contract with ERC20 token and activate a function

I have a contract that allows users to mine an ERC20 token by staking ether. Now I created a ERC721 token that I would like to be staked in order to mine the ERC20 token instead of staking ether. I ...
0
votes
2answers
11 views

Prevent ERC721 metadata from being updated

I have a ERC721 token and the TokenURI gets set to a IPFS JSON link. The JSON contains metadata such as name, color, image ect about the NFT. The problem is I have a function which allows the TokenURI ...
0
votes
1answer
263 views

Calling “balanceOf” in a contract from another contract that imports it. Expected 1 Got 0

I have an ERC20 contract that calls BalanceOf in a ERC721 contract; In my ERC20 contract; import "./NFT.sol"; contract ERC20 { NFT public nft; constructor (NFT ...
0
votes
0answers
4 views

Tracking redemptions programmed into NFT

I'm trying to mint an NFT which the buyer can redeem for 6 cups of special coffee (in real life). The first of those cups can only be redeemed this month (and never after). The second of those cups ...
2
votes
1answer
20 views

Updating ERC-721 TokenURI (after it's already minted)

This is a conceptual question. Is it possible to somehow update an existing ERC-721 Token's uri, after the NFT was already minted? For instance, I minted an NFT where the asset location was AWS S3. ...
0
votes
0answers
15 views

Need help regarding setting up an airdrop

I’ve been looking for information that could help me with the following but haven’t had much luck. I’m trying to find a a way that I can airdrop erc721 and erc1155 tokens to token holders of a ...
2
votes
2answers
614 views

How can I find NFTS and their metadata?

I’m new to Ethereum, and I’m working on a side project I’m curious How can I discover every NFT on the Ethereum blockchain? Once I’ve identified the NFT, how do I fetch the metadata?
0
votes
1answer
27 views

How to know if a contact implements ERC721Enumerable

I'm trying to list all ERC721 tokens that an address has. For this, if the contract implements ERC721Enumerable is quite easy, I get the balance and use tokenOfOwnerByIndex. If not, I have to do the &...
1
vote
1answer
242 views

ERC721 Transfer Event issue

Looking at the open-zeppelin ERC721 Contract's code, I see that the very last thing that its mint function is doing is call emit on the contract's pre-defined Transfer event. My question is: how do ...
4
votes
1answer
210 views

Distinguishing erc721 transactions from the response of txlist on etherscan

I am making some erc721 transactions. I can retrieve those transactions using the etherscan api like this https://api.etherscan.io/api?module=contract&action=txlist&address=...
1
vote
4answers
965 views

How to issue new ERC 721 tokens for each individuals with different name and symbol

I'm working with an app where different users can create their own ERC721 tokens by passing token, symbol total supply etc. Currently, the code is creating the token, but it has common name only. ...
7
votes
1answer
466 views

What is the best way to handle multiple NFTs of the same collection in ERC1155?

I'm learning ERC1155, and I'm a bit confused. This is OpenZeppelin's example of an ERC1155 Contract: They state that Thor's Hammer is an NFT (because only 1 was minted), while Gold is Fungible. ...
0
votes
1answer
16 views

What does the signer address do? Am I getting scammed?

I have someone working on building an ERC721 token for me and I came across this line of code (refer to "address private signer): contract SingleToken is Ownable, IERC721, IERC721Metadata, ...
2
votes
1answer
99 views

ERC721 Metadata encrypted by owner's public/private key

Is there a good way to keep personal data (e.g. name, address , etc.) in the ERC721 metadata JSON, encrpyted with the public key of the owner, so that only the owner can decrypt it with his/her ...
0
votes
0answers
13 views

ERC721 as function access control

I am going through my solidity/web3 learning project and I'm trying to use an ERC721 as the argument to one function, and this ERC721, basically, controls the rewards a player is able to claim. The ...
0
votes
0answers
28 views

OpenZeppelin ERC721 URIStorage implementation missing enumerable functions

I'm trying to build a ERC721 contract using the default OpenZeppellin 4.x ERC721URIStorage implementation. In the documentation at this URL (https://docs.openzeppelin.com/contracts/4.x/erc721) you can ...
0
votes
1answer
130 views

Changing metadata dynamically

I am building a blockchain game where users can update their character's appearance. This is done by calling a function called updateAppearance in smart contract. I want to show latest version of that ...
2
votes
2answers
48 views

nft market logic

If I want to implement a little NFT marketplace and want users to be able to put items up for sale, and other users to buy those, how should I do that? Do I need to make market contract that gets ...
1
vote
1answer
461 views

Solidity bytecode not generated despite no errors

When does a compiler fail to generate bytecode for solidity? The code compiles entirely but both remix and solc js give proper abi but empty bytecode. The contract imports ERC721. Solidity contract: ...
1
vote
1answer
300 views

Error: Invalid number of arguments to Solidity function when calling safeTransferFrom function

I want to call the safeTransferFrom function to transfer ERC721 tokens. I am using the following code: var contract = this.web3.eth.contract(JSON.parse(contractabierc721)).at(contractAddress); // ...
0
votes
1answer
46 views

Creating an auction smart contract without storing the ether

I am currently looking into creating a smart contract for a NFT auction. But because of certain legal restrictions we are not allowed to store the ether bid during the auction period (that is what ...
0
votes
1answer
162 views

Undeclared identifier _setTokenURI in ERC721

I'm using pragma solidity ^0.8.0; I heard that _setTokenURI was removed in pragma 0.8.0 I tried these options https://forum.openzeppelin.com/t/function-settokenuri-in-erc721-is-gone-with-pragma-0-8-...
1
vote
2answers
1k views

How to find all ERC721 compliant NFTs owned by an address? (Web3 JS)

It is possible to check which address owns a particular NFT by using the ERC721 standard function: function ownerOf(uint256 tokenId) public view virtual override returns (address) in ERC721.sol But I ...
0
votes
1answer
25 views

showcase all NFTs a user has

I'm wondering how does a marketplace like OpenSea, automatically know what all NFTs a user has, without the contract address? this question can also be simplified as finding all erc20 tokens a user ...
1
vote
1answer
18 views

How an asset is tokenized?

Suppose I have a car and I want to tokenized it. Now I have following questions. What will be the process to make a digital token of my car. If someone buy this token, Will I have to transfer token ...
1
vote
1answer
104 views

Pull metadata from ERC721 contracts

what tools/services would you recommend for pulling metadata from ERC721 contracts? It seems like it's going to be a huge hassle to return the metadata directly from the blockchain. Any clever ideas?
2
votes
1answer
790 views

Calling function from another contract reverts

I've been developing a dApp that needs ERC721 tokens. I have three contracts, a base contract, the one to mint tokens and another one for auctions. The inheritance looks like Base > Token > Auctions. ...
3
votes
2answers
2k views

How to check Balance & send ERC721 Tokens

I have SPH ERC721 Tokens. How can I check balance like ERC20 and send ERC721 tokens token to Exchange or in other wallet ?
2
votes
2answers
79 views

How can I make an ERC721 NFT such that the token owner can edit an attribute in the metadata? Where can they edit the metadata?

I've read that ERC721 tokens can be created such that the token owner can edit the on-chain metadata. I've been following tutorials for the brownie-nft mix and making NFTs on OpenSea, but I have yet ...
0
votes
2answers
434 views

ERC20 and/or ERC721

Consider the following scenario. A person owns a asset called "A". Now the asset is very high valued and unique but you can allow other persons to own a certain part of that asset. EDIT: Ownership ...
0
votes
1answer
29 views

ERC721 - mass ownerOf request(or another way get all TokenIDs on address)

I use nethereum for get ownerOf NFT ids [Function("ownerOf", "address")] public class OwnerOfFunction : FunctionMessage { [Parameter("uint256", "_tokenId", ...
5
votes
2answers
2k views

What's the point of ERC721Receiver.sol and ERC721Holder.sol in OpenZeppelin's implementation?

I'm studying OpenZeppelin's ERC721 token implementation and I'm having a hard time making sense of ERC721Receiver.sol and ERC721Holder.sol and how they relate to eachother. In the file ...
0
votes
2answers
165 views

ERC-721 - How to avoid that an updatable tokenURI becomes a vulnerability for token trust?

I understand that one can use the tokenURI field to add the address for an endpoint that returns meta data for the given token. Let's imagine we create a unique asset with tokenId = "1" tokenURI = "...
0
votes
1answer
50 views

How to make an NFT out of an image using Solidity?

Over the last few days (while following a tutorial) I made a web app where I could make a NFT out of a color(e.g. #FFFFFF), so my question is if a client could upload a picture to my web app how would ...
1
vote
2answers
29 views

Are the limits on “limited edition” NFTs enforced by ERC 721?

I was looking at the ERC-721Enumerable interface, and I couldn't anything in the interface where say, an edition of 5 tokens for some NFT is actually enforced by the contract. Is that true, do we just ...
6
votes
2answers
2k views

ERC721 Token Transfers and Approvals

ORIGINAL POST (EDITED POST BELOW): I keep getting the following error in my ERC721 Contract: “ERC721: transfer caller is not owner nor approved” This happens when I’m trying to buy a Token that has ...
1
vote
2answers
70 views

Transferring NFT Tokens without the ownership

I'm wondering how opensea transferring tokens to the buyer without having the ownership of that token.And also they are not using escrow account at all.In remix, If i tried to transfer the token ...
1
vote
3answers
1k views

Can an NFT (e.g. ERC721) simultaneously belong to two different entities, say an user Owner, as well as a user Custodian?

For example, on the blockchain say you own a ERC721 Car token at your wallet address, but you want to park it in the ERC998ERC721 top down composable Garage owned by your friend, while still retaining ...
0
votes
1answer
47 views

Fetch all tokens (ERC20, ERC721, ERC1155) owned by a specified address

I am building an app and I need to fetch all tokens (ERC20, ERC721, ERC1155) owned by a specified address. I've seen some services for fetching ERC20 (ETHplorer) or ERC721 (Etherscan, OpenSea) tokens ...
0
votes
0answers
21 views

Getting error: 'approve caller is not owner nor approved for all' when calling approve() from ERC721 owner wallet

I am getting this error message when trying to call approve() on an ERC721 token: "code": 3, "message": "execution reverted: ERC721: approve caller is not owner nor approved ...
1
vote
1answer
32 views

Can I Update ERC-721 Token's Metadata after it was Minted

I am launching a collection of NFTs with an ERC-721 standard with hopes to turn it into a game at a later stage. If i were to limit the attributes/ Properties of the individual token initially to a ...
0
votes
1answer
43 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
1answer
55 views

How to manage delated metadata/images with an ERC721 launch

I have a smart contract working on rinkeby which is minting ERC721 tokens. The goal is to allow minting for a week and then to release the metadata and images after a week has passed. When I deploy it,...
0
votes
1answer
31 views

Getting all the Contracts created at Opensea and Rarible

I want to pull the number of NFT contracts created on opensea and rarible. I checked opensea API documentation and it seems like you can pass a range token ID's in this case I was wondering what would ...
1
vote
1answer
116 views

ERC721 “Digibles”: different than Bitcoin colored coin concept?

As I understand ERC721 contracts, in particular Cryptokitties, a cryptokitty is not associated with a piece of ETH but rather is just some storage associated with the Cryptokitty smart contract. Is ...
0
votes
1answer
10 views

How to get contract address with Contract Name

I am trying to pull NFT address by providing their name. For instance to get CryptoPunks address : I will pass 'cryptopunks' and get '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb' as a result. Does ...
1
vote
1answer
24 views

How to get all ERC721 tokens deployed on the smart contract

I have deployed a basic ERC721 token with some image metadata. I want to build a dashboard to view all the tokens and looking for an effective way of doing it. One approach I have tried is: Loop ...
6
votes
1answer
457 views

creation ERC721 error: Transaction failed, invalid address,

I would like to learn how ERC721 token works. I found some sample contracts online and tried to use remix and Ethereum Wallet to deploy the contract. The compile was fine but failed in the creation. ...
1
vote
0answers
39 views

Is that possible a multisig contract with ERC721?

I'm newbie in Solidity. I was wondering if it's that possible to have a Multisignature contract with ERC721 standard. I've found that simple example: https://github.com/christianlundkvist/simple-...
2
votes
2answers
270 views

Is there ERC721 decimals?

Is it possible to have decimals balances in ERC721 ? I mean is it possible to say i own 50% of an NFT for example ? Thanks

1
2 3 4 5
8