12 votes

Get a list of all token types for ERC1155

So the question was an underlying question while trying to understand how all these platforms like OpenSeas are identifying all of the minted tokens for standard ERC721 and ERC1155 contracts. It was ...
Stevers's user avatar
  • 362
11 votes
Accepted

ERC1155 name and symbol

The ERC1155 standard interface has a URI (Uniform Resource Identifier) that can point to a file where you can specify all the characteristics of the token (name, symbol, description, size, color or ...
Sergi Juanati's user avatar
9 votes
Accepted

Can we mint 5 gigabyte video NFTs?

I'll come at this from a slightly different direction... The current price of ETH is ~$1500. The Yellow Paper states that storing a 256-bit (32-byte) word costs 20,000 gas. Average gas price is ...
Richard Horrocks's user avatar
8 votes

How can I get a list of all owners of an ERC1155 NFT by using a web3 call?

UPDATE: Now you can use the Moralis API /nft/{token_address}/owners endpoint to get this directly. This is quite difficult, as Anupam pointed out you would have to go through all the transfer events ...
Filip's user avatar
  • 921
8 votes

Royalties for ERC 1155

Short Answer: There is currently no single way to achieve this that has been widely adopted. Add the royalty functionality of the platforms you think you will need (like OpenSea). Example provided ...
Joseph Roccisano's user avatar
5 votes

Get a list of all token types for ERC1155

The common way to know the number of token types (aka. tokenId) is to have a counter inside the ERC1155 contract, for instance: uint256 private _currentTokenID = 0; This way, whenever you need to ...
Sergi Juanati's user avatar
5 votes
Accepted

How to extract the URL of a crypto art as it appears within the NFT? and technical details like ERC-token type?

I can't find that particular piece in their contracts, but the below applies to the 2 of 10 edition. How can I view the URL link to the associated image file as it appears within the metadata/code of ...
Richard Horrocks's user avatar
5 votes
Accepted

What is operator approval in context of ERC-1155?

The term operator has been first introduced by the EIP-721 to define addresses authorized (or approved) by a NFT owner to spend all of his token Ids. In EIP-1155, the operator is set by the token ...
clement's user avatar
  • 4,292
4 votes
Accepted

Pattern for generating dynamic ERC-1155 or ERC-721 metadata

The approach of using an IPFS address as the token URI is intended to ensure its immutability, since the generated hash within the IPFS address will be unique for the file you are pointing to. In your ...
Sergi Juanati's user avatar
4 votes

ERC1155 name and symbol

From the Rationale section of the standard: The symbol function (found in the ERC-20 and ERC-721 standards) was not included as we do not believe this is a globally useful piece of data to identify a ...
Richard Horrocks's user avatar
4 votes
Accepted

How is the ERC721TokenReceiver.onERC721Received data parameter used in practice?

The original thought was this would be used mainly for passing a price to a marketplace contract. Everyone using it (just a few people) are using it for that. I don't know of any wallets that support ...
William Entriken's user avatar
4 votes
Accepted

how to make smart contract erc1155 receiver?

openzeppelin has already implemented it in the following library, import this from openzepplin: import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; contract myContract ...
ezio's user avatar
  • 205
3 votes
Accepted

If crypto art is stored off-chain, how does the collector have any control over their NFT's contents if the server where it is saved shuts down?

There are several questions here. Let's review. If crypto art is stored off-chain, how does the collector have any control over their NFT's contents if the server where it is saved shuts down? Answer: ...
William Entriken's user avatar
3 votes

Is there any way of creating ERC-1155 or ERC-721 tokens always earn transaction fees?

It is easy to create an NFT that transfers a fixed fee to you at every transfer of this NFT. Just add transfer (of ETH, or an ERC-20/1155) to it. It is nearly impossible to get a transaction ...
porton's user avatar
  • 1,744
3 votes

What are the reasons to use ERC-1155 instead of multiple ERC-20 contracts?

ERC-1155 tends to be more useful for things such as games that need both fundable (In-game gold) and non-fungible(land) tokens.
robneal's user avatar
  • 31
3 votes

How to Fractionalize NFT's (high level)

You got the answer yourself: ERC1155 gives you the combination of fungible and non-fungible tokens within the same standard contract. In essence, you still have a non-fungible token with its ID, like ...
Sergi Juanati's user avatar
3 votes
Accepted

How to have the contract check if the msg.sender currently owns a specific token. (erc721)

If contracts is an ERC721 then you can query how many tokens a user owns with balanceOf uint count = token.balanceOf(user); if (count > 0) { // User owns at least 1 index } If the tokens ...
Ismael's user avatar
  • 31.1k
3 votes

How can I get a list of all owners of an ERC1155 NFT by using a web3 call?

If you want an ownerOf in ERC1155 youll have to implement it yourself. rarible and opensea use indexing services like thegraph.com to keep track of transfers and who currently owns the token.
Dylan Kilkenny's user avatar
3 votes

Limiting operator transactions in ERC-1155

For the sake of simplicity, we'll call the functionality to limit approves to a specific token and amount "individual approves" since the approvals won't just be a blanket approval over all ...
Linum Labs's user avatar
  • 1,438
3 votes
Accepted

ERC-1155 events for approval

These two functions are not part of the EIP-1155 (https://eips.ethereum.org/EIPS/eip-1155). In fact, the EIP only defines : /** @notice Enable or disable approval for a third party ("...
clement's user avatar
  • 4,292
3 votes
Accepted

Which token standard should be use to create different tokens for different users?

I have requirement to create a platform on which users can register and create their own token with passing token name, price and so. Is it possible to develop such contract to create different token ...
balajipachai's user avatar
3 votes

What are the reasons to use ERC-1155 instead of multiple ERC-20 contracts?

The only benefit is having everything in the same place. ERC-1155 is orders of magnitude more gas efficient, as deploying an ERC-20 contract is costly with current Ethereum gas prices.
Mikko Ohtamaa's user avatar
3 votes

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

The short answer is that it looks like the latter, unique id for each NFT, regardless of grouping (eg stadium). But to have NFT-like grouping there are a couple of considerations: The nft example ...
James Zaki's user avatar
3 votes

How do I let a user transfer ERC1155 token from my contract address to his address?

Could you look into the documentation on openzepplin? I've linked it here, particularly pertaining to ERC1155PresetMinterPauser.There's a dependency that I don't see mentioned here, namely, Access ...
Vignesh Karthikeyan's user avatar
3 votes
Accepted

How can Opensea and Etherscan understand that CryptoPunks are NFTs if the contract does not implement ERC20, ERC721 nor ERC1155?

Etherscan hardcoded the CryptoPunks contact to show up that way. Basically Etherscan is programmed this way: If contract is CryptoPunks handleCryptoPunksSpecially() Else If contract is CryptoKities ...
William Entriken's user avatar
3 votes
Accepted

How would I go about finding out whether an address owns a specific NFT or not?

If you know the address of the account you want to check and a the specific id of the token you can use the balanceOf or ownerOf method of the token standards. For ERC-1155 you would use the following ...
Richard's user avatar
  • 4,814
3 votes
Accepted

Confusion around ERC721/ERC1155 and IPFS/IPNS

Using 721 or 1155 depends on the type of assets you want to add to your system and the growth you expect for your project. This is: if you're totally sure that you won't need anything else than: ...
Luis Masuelli's user avatar
3 votes
Accepted

Is there a limit on how many tokens I can mint on a contract?

At its core, ERC1155 uses a mapping to store the balances of tokens (see the code here: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/defcf20042479d995a0688bdfd019e44c9e79d76/contracts/...
julianwyz's user avatar
  • 946
3 votes

How to get all the owners from an NFT collection?

All other answers give valid suggestions. If you are interested in how to query directly from the smart contract, you can leverage ERC-721's ownerOf methods. This is a sample script base on web3JS: ...
Wuzhong - Chainstack DevEx's user avatar
3 votes

How to find total value in ETH of all NFTs owned by a user

If you like to get the user's NFT portfolio value, then you can use Moralis to provide you with such data. Simply sign up to Moralis to get the API key and install the SDK: npm install moralis Then, ...
Yoseph Kurnia Soenggoro's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible