Questions tagged [erc-721]

Relating to ERC-721, the standard for Non-Fungible Tokens (also known as Deeds)

43 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
365 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. ...
3
votes
1answer
45 views

Is it possible to check the Thrid party token ( USDT ) within my ERC223 contracts?

I want to check how many tokens are received in my contracts, so that I am able to allocate MY TOKENS to the TOKEN Sender. I tried several ways like approveAndCall, but its not working. I don't ...
3
votes
0answers
92 views

How are ERC-721 protocol tokens different from Ardor assets? Is there a pro/con data sheet?

ERC-721 protocol is used to create unique tokens like crypto kitties, but I'm curious has anyone compared it to the Ardor Ignis singleton assets as it seems like it does something similar. Is there a ...
3
votes
0answers
115 views

What Are Good Specific Reasons The onERC721Received Function Returns A Magic Value?

The ERC721 standard says the following: The onERC721Received function specifically works around old deployed contracts which may inadvertently return 1 (true) in certain circumstances even if they ...
2
votes
2answers
21 views

ERC standard: possible to set upper price limit for NFT?

Let's say I want to create a non-fungible token which represents a ticket to a venue. And I don't want ticket scalpers to buy tickets and resell these tickets for a higher price. It should only be ...
2
votes
1answer
94 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=...
2
votes
1answer
239 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. ...
1
vote
1answer
79 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
40 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
62 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 ...
1
vote
1answer
193 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 ...
1
vote
1answer
60 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 ...
1
vote
2answers
35 views

How do you add miner address so that it can mint tokens?

I have ERC721 that I'm making. function mint(address to, uint256 tokenId) public onlyMinter returns (bool) { _mint(to, tokenId); return true; } How can I add an address so that it is able ...
1
vote
0answers
75 views

No events were emitted - Exchanging ERC721 Tokens

Function to exchange ERC721 Tokens between two addresses. I am implementing this on truffle and openzeppelin 2.10. Two different tokens should be exchanged between two addresses. Here's my contract ...
1
vote
5answers
968 views

ERC721 Error: invalid number value arg=“_tokenId”, coderType=“uint256”, value=

MyERC721: pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol"; import "openzeppelin-solidity/...
1
vote
1answer
121 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); // ...
1
vote
1answer
561 views

Get ERC721 token total supply using web3.js

I created a simple contract which basically does nothing but mints new ERC721 tokens. The solidity code for it is as follows: struct Monster { string name; uint level; uint ...
1
vote
1answer
497 views

DeclarationError: Identifier already declared. Two imports import the same ERC721 contract

Im building a contract that uses two contracts that both use the ERC721 zeppelin contract, when I import the two as such: import nonFungableWidthAddedFunctionality1.sol; import ...
1
vote
2answers
80 views

erc-721 erc-20 solidity code check effects interaction pattern

Where can one locate a formally verified ERC20/ERC721 solidity code/template that adheres to security design patterns such as check effects interaction patterns?
1
vote
0answers
198 views

Error encountered bailing. network state unknown. TypeError: contract.detectNetwork is no a fnction

I used "Zeppelin-solidity" to publish the ERC 721 token and compiled the sample code with truffle. However When migrating with "truffle", the following error occurs. Why? Error encountered, ...
1
vote
1answer
95 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 ...
1
vote
0answers
216 views

Most efficient way of generating random ERC 721 NFT

I'm just getting into Solidity by building a first project around collectibles, ERC 721. There's for example 1500 different collectibles, each has an available amount defined by a criteria. These ...
1
vote
1answer
69 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
466 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 ?
0
votes
1answer
19 views

Unable to invoke smart contract function from Web3j contract wrapper

I've been learning about interacting with smart contracts through Android and the Web3j framework but have run into an issue. I'm trying to mint an ERC721 token and send it to an address but it doesn'...
0
votes
1answer
15 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
3answers
26 views

Using a Non-Fungible token to gain access to a file

Please excuse me, I'm a layperson, not a programmer. At this time is there a way to issue NFT's to be used as a 'key' to gain access to a file on the internet? For example you create and sell an NFT ...
0
votes
0answers
46 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: ...
0
votes
0answers
25 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
31 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 ...
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 ...
0
votes
2answers
35 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
41 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 ...
0
votes
2answers
92 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 ...
0
votes
2answers
150 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?
0
votes
1answer
25 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 ...
0
votes
0answers
45 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
63 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
61 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 ...
0
votes
0answers
74 views

How would I use Web3.js to fetch a user's ERC721 tokens?

How would I use Web3.js to see which ERC721 tokens a user has in their wallet and what the ID or index for those tokens is?
0
votes
2answers
143 views

Deploy ERC721 tokens to many addresses

How to I transfer many of my ERC721 tokens to many addresses? MyERC721: function mintUniqueTokenTo ( address _to, uint256 _tokenId, string _tokenURI // Store, receipient'...
-1
votes
0answers
23 views

Api to get total transfer count of an ERC-721 Token

I want to retrieve the total number of an erc 721 token's transfers/ transactions. I couldn't scrape the transfers value from etherscan as well e.g. given here https://etherscan.io/token/...
-1
votes
1answer
60 views

How many projects are there which implement ERC1155 standard?

New ERC1155 standard which is thought to be an improved version of ERC721 and ERC20. But I see many projects still prefer ERC20 or ERC721 standards. If so, do you know any projects implementing ...