Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [erc-721]

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

0
votes
0answers
15 views

ERC721 how to use tokenOfOwnerByIndex() to list tokens owned by a user

I'm trying to list ERC721 tokens owned by a user. I found there is tokenOfOwnerByIndex(address _owner, uint256 _index) that can make the looping shorter. When I checked ERC721Token.sol from ...
1
vote
1answer
16 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
15 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
35 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
24 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
26 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
21 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
164 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
45 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
10 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 ...
0
votes
0answers
29 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
47 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
40 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
23 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
42 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
36 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 ...
1
vote
1answer
159 views

How to import files into remix (ERC721 contract)?

I get this error - Unable to import "undefined": Not Found And this flashes onto the screen - Loading https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/introspection/...
0
votes
0answers
34 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?
1
vote
2answers
87 views

ERC721 - Create 1000 tokens in one function call

I have implemented a contract where a set of ERC721 tokens should be generated with a function call in private net. Code as follows : function mint( address _owner, uint256[] _id ) ...
0
votes
1answer
15 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 ...
0
votes
1answer
24 views

What does the single line “_;” in OpenZeppelin's onlyMinter() function do? [duplicate]

In onlyMinter(), there is a line with only _;. I'm having troubles adding a minter address, so I'm just checking the various contracts that go into ERC721. The function is modifier onlyMinter() { ...
0
votes
0answers
52 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 ...
2
votes
2answers
112 views

How do I transfer an arbitrary erc 721 asset from a smart contract?

I'm trying to work with ERC 721 tokens in such a way that my contract freezes and unfreezes them (based on some conditions) but I'm having trouble wrapping function calls to the ERC 721 token contract ...
1
vote
1answer
50 views

ERC721 Default Implementation

I’m working on a card game. Right now it is really simple. There are orcs and cards. Both should be implemented as ERC 721. What would be the most natural way to make the orc an ERC-721 token? ...
3
votes
1answer
157 views

How to integrate ERC 721 and 20 to create semi-fungible tokens?

ERC 721 defines non-fungible tokens where each token is unique. But if one needs to create a token where there is a limited supply of various types, is there a an effective way to accomplish this by ...
1
vote
1answer
87 views

How to ERC721 token using external contract to msg.sender?

I have Caller and ERC721 contract just like this : contract SampleToken is ERC721MetadataMintable { string private name; string private symbol; constructor (address _creator, string _name,...
0
votes
2answers
365 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/...
0
votes
0answers
32 views

Member “transfer” not found or not visible after argument-dependent [duplicate]

I am writing ERC721 contract with truffle. I have recently upgrade solc to 0.5.0 due to openzepplin compiler version. Read about the changes to the 0.5.0 version unfortunately I am unable to resolve ...
1
vote
2answers
89 views

How to estimate ERC721 mint transaction?

My contract; contract My721 is ERC721Full, ERC721Mintable, Ownable { constructor() ERC721Full("My721", "MY721") public {} function mintUniqueTokenTo (address _to, uint256 _tokenId, string ...
0
votes
2answers
85 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'...
3
votes
3answers
49 views

Function that returns address if is passed or msg.sender

I'm implementing an ERC721 contract and I want to execute the following logic. This is what I want: If the user pass to a method an address, return that address, if not, return the user's address. I ...
1
vote
2answers
234 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
58 views

what is the equivalent of encodeFunctionSignature for web3.js version ^0.20.6

I want to check if a specific contract deployed at an address is an erc721 contract. I found out that most of the erc721 contracts should have safeTransferFrom function implemented. (except ...
3
votes
1answer
115 views

ERC721 Metadata Creation (Newbie Question) [closed]

Complete newbie here so thanks in advance for tolerating the ignorance that follows. Working on creating a little card game to learn solidity and have reached the part where I need to assign metadata ...
2
votes
1answer
60 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
2answers
268 views

Should My ERC721 Show In A Wallet?

We've created and deployed a contract to mint and issue an ERC721 token. I've gone to our admin page in our dapp and "sent" 3 of them to my personal address. When I check my address in etherscan I ...
1
vote
2answers
155 views

What is the difference between the transfer and transferFrom function in an ERC721 contract

Using web.js, I am trying to transfer erc721 tokens across different addresses. In case of cryptokitties, I can do the transfer using transfer function only while in case of cryptoheroes, I can use ...
1
vote
1answer
84 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); // ...
2
votes
1answer
36 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 ...
1
vote
1answer
69 views

ERC 721 card game

The general concept of ERC 721 is clear to me. My question is more about the contract deployment. I want to have 100 unique cards, So I thought of these two implementations: Having an initial supply(...
1
vote
2answers
181 views

how to get Token_Id from ERC721 smart contract

How do I retriever Token_Id of cryptokitties from ERC721 Smart contract Smart contract address : https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code
1
vote
1answer
312 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 ...
4
votes
1answer
208 views

List holders and tokens for an ERC-721 contract

Given a contract, I want to map the holders to their token ids. For example, the contract 0xFBeef911Dc5821886e1dda71586d90eD28174B7d is an ERC-721 contract for KnownOriginDigitalAsset. Etherscan ...
3
votes
2answers
120 views

Ethereum implementation of a non-fungible but divisible token? (ERC721 seems not to work for that)

I am struggling currently with finding the right implementation possibility for a token with the following properties: Asset-backed token based on a non-fungible asset (like a piece of art) More than ...
1
vote
1answer
43 views

Can we create a token with some data inside it?

I wane to write some data (like a link to some file etc) in a token, and once someone sends it from one address to another, that data should be sent as well. Is there anyway we can do now? or you this ...
5
votes
2answers
401 views

How etherscan.io is able to track ERC721 tokens on the blockchain

My question can be rephrased as: how does https://etherscan.io/tokens-nft work? Does they analyze every transaction data? The NFT tokens listed there doesn't implement the exact same ABI, is there ...
1
vote
1answer
69 views

How ERC20 and ERC721 deals with confirmation level

a smart contract store the internal balance per owner. when we transfer tokens from Owner A to Owner B, we update the internal balance sheet. but the internal balance sheet is a most recent snap shot. ...
1
vote
1answer
245 views

Two ERC721 tokens that refer to the same metadata

This is a question about the ERC721 interface. I understand that the tokens are non-fungible and guaranteed to be unique to a specific account (owner). One possible way to use ERC721 tokens would be ...
2
votes
1answer
430 views

mint method usage in ERC721 token implementation

What does the internal method call _mint(msg.sender, tokenId) really do in the background when used with ERC721 token implementation?