Questions tagged [erc-721]

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

54 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
393 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. ...
4
votes
1answer
152 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=...
3
votes
0answers
54 views

Passing constructor arguments from child contract to parent contract

The ERC721 standard contract requires a token name and symbol in its constructor. I have inheritance pattern that looks likes Contract A is B and Contract B is ERC721. If I want to set my token name ...
3
votes
1answer
55 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
93 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
128 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 ...
3
votes
2answers
763 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
66 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
127 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
356 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
21 views

Modifying erc-721 transfer

Say I want to take a cut of an NFT each time the token is transferred. If I were to change the openzeppelin erc721 transfer function to transfer 1% of the NFTs holding to myself, can that standard ...
1
vote
2answers
192 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'...
1
vote
1answer
291 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
82 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
108 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
66 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
95 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
1answer
159 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
972 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
873 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
107 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
244 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
100 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
252 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
184 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="...
0
votes
0answers
11 views

Mint process is not taking place in ERC-165 NFT Token contract

Already deployed NFT smart-contract based on ERC-165, now the mint function is not working. How can overcome this problem? Is there any problem related to high gas fees? Thank you in advance.
0
votes
1answer
31 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
1answer
57 views

ERC-2309 Minting Multiple ERC-721 Tokens in one Transaction

Anyone know how to work with ERC-2309? It's an extension to the ERC-721 Token standard and it's supposed to make it possible to mint a large number of ERC-721 tokens (meaning 100's or even 1000's of ...
0
votes
0answers
11 views

Can one ERC721 have two type NFT?

I am new to smart contract, I have to make NFTs so I am following ERC721 standard, but I have to make two types of NFT NFT1 = {prop1, prop2} NFT2 = {prop3, prop4} so can I have two type of createNFT ...
0
votes
1answer
13 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?
0
votes
0answers
27 views

Why is the ERC721 metadata limited to images?

Why is the ERC721 metadata JSON Schema limited to images? If I specify a file other than the image, does it cause an error when issuing the token? If it can be issued, what will be sacrificed? (e.g., ...
0
votes
1answer
43 views

Take a percentage of msg.value on ERC721 transfer

I want to transfer part of the value paid to an address whenever an NFT is traded. If the value is 0, then nothing is transferred. My original idea was to override the transfer function in ...
0
votes
2answers
112 views

Where can I find full ERC 721 example programs?

I am building a program with an ERC 721 token. My code runs without using the standard components provided by Open Zeppelin IERC721. Now I want to adapt it to the ERC 721 standard. Unfortunately the ...
0
votes
1answer
25 views

Identifying ERC-721, ERC-777, & ERC-223 Contracts in the EVM via eth.getTransactionReceipts(), etc

Is there any specific way of identifying ERC-721, ERC-777, & ERC-223 contract events under the EVM, specifically under the eth.getTransactionReceipt() function? I know there's a way for ERC-20 ...
0
votes
1answer
47 views

When and where do I set ERC721 tokens' data?

I am currently working on a smart contract to sell ERC721 tokens. I understand that my code should have a function that allows me (the owner) to mint a token and add it to a list which stores all the ...
0
votes
0answers
38 views

Obtaining ERC721 interface IDs

There's a related question here ERC721: Interface ID Registration but I couldn't get the answer I need from there. In the OpenZeppelin ERC721 basic implementation, there's this part: // Base URI ...
0
votes
0answers
54 views

ERC721 Token abstract contract or an interface and cannot be deployed

after reading many post i can't found the issues about this Smart contract who compile but it think i miss something about the inheritance and the Abstract contract. This is the SC : // solium-...
0
votes
0answers
45 views

Difference between method id, event id and ABI signature for event

I am confused as to what is the difference between method id, event id and abi signature. I got the abi signature of a token transfer function according to the following web3js function const ...
0
votes
2answers
131 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
3answers
70 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
0answers
66 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/...
0
votes
1answer
36 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
99 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
1answer
226 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
28 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
48 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
38 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
148 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
73 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
1answer
35 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 ...