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
8 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.
0
votes
0answers
22 views

Cann't send token with looping function

Sorry, I'm a newbie on ERC721 token. Please help. I have deployed ERC721 contract in the localhost testnet. I use looping function for mint token and it works. But when I use looping function for ...
0
votes
1answer
23 views

Can we send tokens with data input? [duplicate]

Can we send tokens with data input? I did a bit of research on erc20 but maybe this is quite complicated. Will erc 721 do this?
0
votes
3answers
39 views

Self-destructing NFT (ERC-721) token

What I want to achieve is self-destructing token. For example I'd like to have some updatable TTL value assigned to my token. If TTL is reached the token should be auto-burned. What are the best ...
0
votes
1answer
24 views

Are there any good ways to express conditional ownership on ERC20 or ERC721 tokens?

I'm currently looking for any good ways to express conditional ownership on tokens. I look into approve function of both ERC20/ERC721 but, it seems that function may be disapproved by the owner and ...
-2
votes
2answers
28 views

ERC721 - How to create many ERC721 tokens at a time

Is it possible to create many ERC721 tokens at a time? I saw this link. ERC721 - Create 1000 tokens in one function call But I don't get it. Please help me.
0
votes
2answers
49 views

gas required exceeds allowance when deploying ERC721token

I am trying to deploy Smart-contract(ERC721) on my private ethereum network. But I have this issue. Here is my genesis. { "config": { "chainId": 3333, "homesteadBlock": 1, ...
0
votes
0answers
20 views

ERC1410 Security Token

I am searching for an ERC1410 security token contract source code (must be tested) to implement in another contract, there is a github repo available but it is written in the beginning that the code ...
3
votes
1answer
62 views

Issue in ERC721 token transfer to contract address

I am using ERC721 implementation for NFT tokens. I am testing the transfer functionalities in ERC721. `transferFrom(address _from, address _to, uint256 _tokenId)` `safeTransferFrom(address ...
2
votes
2answers
25 views

Is there a way to be notified when ERC721 is deposited?

We are coding a contract that will work with ERC721 tokens, basically a Plasma Root Chain contract. We need this contract to do some work whenever it receives a new ERC721 token from a ...
2
votes
2answers
72 views

ERC721 Token - Burn and mint again

I didn't try yet, but let's suppose the following: I have an ERC721 contract token with a total Supply of 101 My contract can mint and burn The first token has id 0 and the last one has id 100 I ...
2
votes
2answers
76 views

How to guarantee IPFS file access based on Non Fungible Token ownership (or security)?

The file is too big to be stored on the blockchain, so it is stored on IPFS. Only the person who owns a unique Non Fungible Token (or a Security Token) can access it. Of course I can encrypt the file ...
1
vote
1answer
49 views

Implementing ERC721 Marketplace

I'm working on a project where I need to implement an ERC721 marketplace. It doesn't work for some reason and wanted to know if I'm doing everything correctly. The way I approached this was: The ...
1
vote
1answer
32 views

ERC721TokenReceiver, assuming that transfer function exists?

When trying to find out if a contract implemented onERC721Received from safeTransferFrom function, are we just safely assuming the contract has all the erc721 related functionalities? such as transfer,...
1
vote
1answer
22 views

bytes data param in safeTransferFrom

In ERC721, safeTransferFrom has bytes data parameter. function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes data) public; how do I send data (is it in hex format?) and what ...
1
vote
1answer
24 views

What does mutability guarantees mean in erc721

Some functions from ERC-721 interface contain payable modifiers. function transferFrom(address _from, address _to, uint256 _tokenId) external payable; I was wondering why it is payable and found ...
2
votes
1answer
22 views

Is there a reason why minting is excluded in erc721 interface?

So the EIP-721 standard says, Creating of NFTs ("minting") and destruction NFTs ("burning") is not included in the specification. Your contract may implement these by other means. interface ...
0
votes
1answer
36 views

others accessing setApprovalForAll ERC721

While I was skimming through open zeppelin's ERC721BasicToken.sol I came across a problem. When setting the approval of a given operator function setApprovalForAll(address _to, bool _approved) ...
0
votes
1answer
54 views

ERC721Enumeration: DeclarationError for tokenOfOwnerByIndex(address owner, uint256 index)

I am new to the smart contract and please let me know why I have the error shown below. I compiled with the command, "truffle compile". I did not make any particular edits to the original contract ...
0
votes
2answers
32 views

ERC721 exchange logic

I'm trying to allow NFT holders to sell their tokens by listing prices (ETH) and allow others to buy those listed tokens. I used openzeppelin and succesfully implemented and tested my token creation. ...
0
votes
1answer
35 views

Create multiple tokens for a unique property

here is the idea: we assign a set of unique tokens to a company and then we allow people to buy some tokens and get partial ownership of that company. How can I achieve this? I was thinking of ...
1
vote
1answer
36 views

ERC721 Metadata and Items

i'm new to ERC721 tokens so this may be a stupid question. Following the Opensea docs and other docs (for example openzeppelin ones), I just create a simple ERC721 token that i called "avatar" which ...
1
vote
1answer
50 views

How to show inventory tab on etherscan

Sorry, i'm newbie about ERC-721. I have deployed my contract and verified it. https://ropsten.etherscan.io/address/0x677f76d276355c382da948d2476da06cf5dc6219 But I don't see inventory tabs like other ...
2
votes
1answer
52 views

What is the current distribution of ERC Token Standards in the top 100-1000 most active token contracts?

From ERC 677 Motivation ERC20 requires a multistep process for tokens to be transferred to a contract. First approvemust be called on the token contract, enabling the contract to withdraw the ...
1
vote
1answer
50 views

Transfer erc721 token to another address

I'm currently using transferFrom / safeTransferFrom to transfer the token to another address but I encounter this error. Error: Error: invalid address (arg="to", coderType="address", value="...
1
vote
2answers
79 views

ERC721, Token name and symbol not shown in etherscan

I have created a simple token with ERC721, but etherscan not show my token name and symbol, why? this is my contract I deploy with this code Result on etherscan No token name and symbol showed, is ...
0
votes
2answers
51 views

Why should I use an ERC-721 token to store data instead of a Smart Contract

Taking CryptoKitties as example, I'm sure it's possible to achieve the same concept of Crypto Collectable creating new kitties as Smart Contracts instead of using Tokens. Which would be the ...
2
votes
2answers
60 views

Is there a maximum/optimum amount of ERC-721 that can be issued per contract?

Take a role playing game as example in which players are allowed to create any number of characters (each one defined by an ERC-721 token). What would be the consequences of having more than 10 ...
1
vote
1answer
55 views

ERC721: Interface ID Registration

Why we need to register Interface ID in ERC721 token. I was just going through the openzeppelin-solidity erc721 code and curious to know that why we need to use this. That interface id register code ...
0
votes
1answer
29 views

Can you add a link to a ERC-721

I would like to get your though about what would be the best way to encapsulate a document in the blockchain. What i would like to achieve is that 1 token = 1 document, this token isn't divisible, and ...
0
votes
2answers
86 views

How do I send NFT assets (ERC721 Tokens) from my Ethereum wallet to someone else?

I want to send my ERC-721 to my friend. Fast. Any suggestions?
1
vote
1answer
53 views

ERC721Token super._mint calls addTokenTo from the top level implementation

Based on Shawn's answer, super._mint calls addTokenTo from the top level implementation (ERC721Token). How does this work? super._mint calls _mint from ERC721BasicToken reads line addTokenTo ...
1
vote
1answer
69 views

ERC721 how does tokenOfOwnerByIndex() list tokens owned by a user?

Per eip-721, there's an optional "enumeration extension". So what I did was I called balanceOf to get the number of tokens owned by the account and called tokenOfOwnerByIndex in a loop to get each ...
1
vote
1answer
24 views

Where can I find public and known ERC20-Contracts from existing ICOs

In order to list real live example code for ERC20-Token and Crowdsales at a talk about Smart Contracts I'm looking for such projects? Who can recommend me the real GOOD examples out there (and not ...
1
vote
1answer
125 views

Store ERC721 token metadata

I am new to ERC721 tokens so this may be a stupid question. I want to create my own ERC721 which can be integrated with opensea using the metadata, as far as I understand you have to store the ...
0
votes
1answer
21 views

Using geth Light Node to detect ERC-721 transactions

Is it possible to use a geth light node to detect incoming transactions executed via ERC-721 contracts? I have experienced being not able to get receipts using getTransactionReceipt in native and ...
2
votes
3answers
63 views

ERC721 Tokens - Hold ETH in the token?

Would it be possible to create a ERC721 Token for say a game item, but I want the Token to basically have ETH inside the token, so that a user could destroy the token to reclai
1
vote
1answer
30 views

add fields to ERC721 tokens, still belongs to the standard?

if starting from the code of an erc721 token, I add fields beside the name, symbol and URI, is it still a token that respects the standard? Add in the contract, not in the JSON file. The most ...
0
votes
1answer
70 views

ERC721-OpenZeppelin: This contract does not implement all functions and thus cannot be created

I know there are already a lot of topics that deal with the problem but their solutions didn't work for me. this is the code: pragma solidity ^0.5.2; import "https://github.com/OpenZeppelin/...
1
vote
1answer
45 views

onERC721Recieved implementation

As per the ERC721 requirements, I have to implement onERC721Recieved. This is how I did it: function onERC721Received( address _operator, address _from, uint256 _tokenId, ...
3
votes
3answers
332 views

ERC721: How to get the owned tokens of an address

There is a balanceOf function, but it only displays one uint (the token identifier) I see most ERC721 tokens doing this so I am confused on how to view all owned tokens.
1
vote
1answer
66 views

ERC 20 or ERC 721 for my dapp?

I am currently making a game where you collect gear pieces and upgrade them. There will not be a 1-1 upgrade, but rather 3-1, meaning 3 items may or may not upgrade to 1. I am aware of the difference ...
0
votes
0answers
20 views

ERC 998 ERC 721 Top-down: Can child tokens affect the status of the parent

I'm trying to make a DAPP, which involves using an ERC998 Top-down. I want to introduce a status on the token, and status has 2 options (ACTIVE and INACTIVE) I was wondering, is it possible to ...
1
vote
1answer
54 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 ...
0
votes
1answer
77 views

ERC721 Contract vs. Auction Contract - Architectural Approach [duplicate]

I'm working on a new ERC721 Crypto-Collectible project, which also means creating an Auction and Marketplace functionalities into the whole thing. Should I just start with a basic ERC721 Contract - ...
0
votes
0answers
35 views

Setting Fees/Prices for Items

I have a question on setting prices for the cards in the card game I'm working on. Right now, I have 2 cards available but there will be more (maybe a couple dozen). I store each card as a struct ...
0
votes
0answers
53 views

Getting ERC721 Metadata Into My Webpage

This likely goes beyond Solidity code so may be off topic, apologies in advance if that's the case. Working on a collectible card game based on ERC721 with the metadata extension. When a person "...
0
votes
0answers
53 views

Pay for the users gas fee (ERC-721)

Is there a way for an NFT (ERC-721) so the contract creator pays for the gas fee when the user's trade tokens? Or add some sort of middleware CC payment so for the user that is not tech salvage not ...
1
vote
1answer
90 views

ERC721 - How is gas worked out with TokenID?

ERC721 - I have minted a tokenid (tokenid=444) and my account owns it. When I try and transfer it, I get this message stating the gas cost is the normally calculated one and the total cost has the ...
1
vote
1answer
100 views

What is the difference between approval and ownership in ERC721?

I saw the contract as getApproved and ownerOf functions. What is the difference between owning the token under ERC721 and having approval? When the tokenid is transferred does that transfer ownership ...