Questions tagged [erc-1155]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

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

The ERC-721 and ERC-1155 NFT standards’ safeTransferFrom functions both accept a bytes data parameter which is then passed on unaltered to the transfer recipient address if this is a smart contract. ...
1
vote
1answer
23 views

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

What I want to achieve: A user should be able to transfer ERC1155 tokens from my contract address to his account. I've tried two approaches: Deploy ERC1155 contract, then pass its address to the ...
0
votes
1answer
13 views

Does anyone knows about EthItem?

We already know that ERC-1155 is a combination of ERC-20 and ERC-721. Now, a new standard has arrived called EthItem saying that it is the combination of ERC-20, ERC-721, ERC-1155. So what is the ...
2
votes
1answer
98 views

How to Fractionalize NFT's (high level)

I have a question to the solidity experts out there. I am Looking into fractionalize NFT's. I was thinking of many different ways of doing it. My first thought was to make a erc-20 market representing ...
0
votes
0answers
7 views

How to search for event in when an input should be the 5th topic in event

I want to query an ERC1155 token event where I know the token Id, there only can be 4 topics and tokenId would be the fifth,which means it's not an indexed input and goes to the data part. How can I ...
0
votes
1answer
17 views

Get token standard type knowing the contract address and tokenId

How can I implement code that returns whether a token is in the ERC721 or ERC1155 standard, knowing both the contract address and the tokenId? What I tried is that I call a function that exists only ...
0
votes
1answer
13 views

Get quick access to assets, events

How do sites like Opensea get all their data so fast? Because getting the data from the blockchain and fetching the tokenURi's takes a lot of time. So I thought they might store all the assets, events,...
5
votes
1answer
69 views

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

I'm learning ERC1155, and I'm a bit confused. This is OpenZeppelin's example of an ERC1155 Contract: They state that Thor's Hammer is an NFT (because only 1 was minted), while Gold is Fungible. ...
0
votes
1answer
14 views

How Can I Add Functionality to my ERC 1155 Token? (If needed) [closed]

I'd like to create my ERC1155 token to start my crowdsale, but I also want the token to be utilized on my music web app. Allowing for artists to craft their own nfts or buy/sell from each other with ...
0
votes
0answers
8 views

ERC 1155 for creating token holding multiple child token?

I would like to create a contract with a "master token" and be able to create (post-deployement) "child token" without deploying again a contract each time I create a child token. ...
0
votes
0answers
21 views

Is ERC1155 an overkill if all NFTs are going to be unique?

Within the use-case I'm trying to define an ERC1155 for, I do not foresee to use duplicates for the same token. However, I would like to be able to have this option if such a necessity arises. Is ...
0
votes
1answer
24 views

Fetching token metadata from token URI

Is there an efficient way to get the metadatas of a list of token uri's? Like, what if I have a list of 50 token Uris, would the only way be to send a different get request to each url?
1
vote
0answers
47 views

Get NFT owner by contract & token Id

I am trying to get the owner of a NFT in solidity & web3 by calling the Contract and the token id In Web3.js-v1.3.5 I've tried this so far, but the result isn't ever calledBack! How can I handle ...
0
votes
0answers
30 views

NFT Id using erc-1155

I am bit confused regarding NFT implementation usng ERC-1155 because of newbie in NFT, by defination, there can be one instance of one NFT, there is one uuid per artwork. But in ERC-1155, I can set X ...
0
votes
0answers
26 views

contract to mint tokens on Rarible

Is it possible that we have a contract that allows the user to mint contracts directly on rarible. If so, please guide how will this be accomplished. I want to mint erc-721 and erc-1155 tokens.
0
votes
1answer
238 views

How to creating multiple NFT tokens using ERC1115

I am new to solidity and ethereum network. I have knowledge of developing erc20 and erc721 tokens using openzepplin. But I am curious about erc1155. Also I have check the erc1155 documentation at ...
0
votes
2answers
36 views

ERC1155 name and symbol

I do not understand something: ERC721 standard interface contains a name and a symbol. ERC1155 is very similar to ERC721 and I do not understand why there are no symbol and name variables in ERC1155. ...
2
votes
1answer
71 views

Temporarily ownership and Revokable ownership of NFT

Is NFTs(ERC721 or ERC1155) allow to "temporarily own by an address" and the issuer can "cancel ownership of NFT of the address" or "directly assign it to a new address without ...
1
vote
1answer
47 views

Custom metadata urls for ERC1155 tokens

I have create a very basic ERC1155 token from this tutorial: https://docs.openzeppelin.com/contracts/3.x/erc1155 // contracts/GameItems.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; ...
0
votes
1answer
23 views

What is the best way to download all NFTs data

Mb someone knows what is the best way to download all NFTs data(uri) from contract?? I try to use filter on minting event but I need to do N iterations, because infura or web3 has limitation of 10k ...
2
votes
2answers
80 views

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

The ERC-1155 standard allows for multiple semi-fungible tokens. If I understand correctly, this would be no different than creating multiple ERC-20 contracts, with the same token quantities, to ...
0
votes
2answers
545 views

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

With ERC721, there's the 'ownerOf' function that takes a non-fungible token's id and returns the owner address, but ERC1155 doesn't officially require that a function like that be implemented. I made ...
3
votes
2answers
898 views

How to generate a new token for ERC1155?

Developing an ERC1155 contract, how to generate an address for a new token? I need to create an API function like function createToken() returns (address). How? Should I just use an incrementing-by-...
0
votes
0answers
9 views

Signer Address Recovery

I have these 2 functions in my contract with help of which I want to recover the address of the signer: function formSigningData(address NFTAddress, uint NFTId, uint amount, address tokenAddress, uint ...
0
votes
0answers
16 views

ERC-1155 safeTransferFrom() issue: contract doesn't have permission to send tokens from itself

I have a function in an ERC1155 contract that looks like this: function foo(uint _id, uint _amm) external{ safeTransferFrom(address(this), msg.sender, _id, _amm, ""); } Assume the ...
1
vote
1answer
48 views

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

Assuming I have a contract to mint my own NFTs: (I'm thinking ERC-721, but not necessarily). I want to create another smart contract that before doing anything, verifies that the address interacting ...
1
vote
2answers
169 views

Get a list of all token types for ERC1155

How do I identify what token types have been created for a specific ERC1155? I noticed the balanceOf function takes an address (owner) and the token type, but what if I dont know what all token types ...
2
votes
1answer
45 views

How do I allow the current owner an NFT to append 8 bytes to the token?

How would I allow the current owner of an NFT to append a fixed number of metadata bytes to their token on chain. Is this something that can be done with ERC-1155 or ERC-721. Or is this a whole new ...
2
votes
0answers
148 views

Possession vs Title vs Ownership in NFTs

Is there a way to separate possession from title in an NFT smart contract? I'm not sure these are the best terms, but here are some examples: Renting out NFTs, say for use in a game. The rental is ...
2
votes
1answer
212 views

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

I have a rather interesting but challenging question. I want to create ERC-1155 and ERC-721 tokens that will be primarily traded using a Decentralized Exchange (DEX) implemented for a newly created ...
0
votes
0answers
92 views

Call contract's mint function from Truffle console

I'm trying to call my contract's mint function from the Truffle console, but I keep getting an error. The code looks like this: function mint(uint256 _optionId, address _toAddress, uint256 _amount, ...
1
vote
1answer
83 views

Is ownership of tokenized real assets through NFT upheld by law?

Let's say you've tokenized your house as a non-fungible token (NFT) on the Ethereum blockchain. if an NFT simply represents ownership of a tokenized asset, what actors or agencies currently will ...
2
votes
2answers
142 views

What tokenized assets can be stored on-chain?

Examples of digital assets that can be tokenized as NFTs are: crypto art (.jpg or .png file stored off-chain) game weapons or characters Examples of physical assets that can be tokenized as NFTs are:...
3
votes
1answer
170 views

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?

CryptoKitties essentially sells crypto art NFTs to collectors on the Ethereum blockchain. However, the pictures of the cryptokitties are stored on the company's server, since the NFT merely represents ...
1
vote
1answer
488 views

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

The following piece of crypto art has a title, description, and additional details regarding file and image size, provided by the NFT platform (Makersplace) where the artist (Lumi) minted the NFT for ...
1
vote
2answers
2k views

Can we mint 5 gigabyte video NFTs?

What is the maximum size of NFTs on the Ethereum blockchain (ERC-721 or ERC-1155 tokens)? crypto art NFTs on the Ethereum blockchain already contain JPG/PNG files that are about 5 MB large, and ...
0
votes
0answers
58 views

How can an NFT pay royalties to more than one creator?

Many NFT marketplaces have an option to declare royalty percentage to be paid to the NFT creator for each secondary sale of the NFT. Unfortunately, only one person (wallet address) can be assigned ...
0
votes
0answers
585 views

How to convert ERC crypto art NFTs into a Cardano NFT?

This is being asked two days before native tokens and multi-asset support hits the Cardano blockchain, but, given that Cardano has created an ERC-20 token converter that converts ERC-20 tokens to ...
0
votes
1answer
43 views

Can a contract hold ERC1155 token?

I am curious if ERC1155 token is able to stake or something else with smart contracts? I know ERC721 is able but not sure about ERC1155. Thank you.
1
vote
1answer
36 views

Storing nested array (2D array)

So I am making an ERC1155 token (for the batch mint pretty much). It is only ever going to mint NFT's (as you will see now now). I am trying to batch mint tokens and store an array for each one. So ...
3
votes
1answer
357 views

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

I am quite new to smart contract development so apologies in advance if this seems like a silly question. I'm looking for some guidance on a usable pattern for the following use case. I need to ...
1
vote
0answers
63 views

ERC1155 per token variables

I want to create an NFT that can mint different character types and multiple clones of each type. The clones within each type will start with same metadata, but each individual token should have its ...
1
vote
1answer
266 views

Is there are a ERC-1155 wrapper of ERC-20?

I want a ERC-1155 contract that allows anyone to "wrap" any ERC-20 token. Well, that's impossible, because when a ERC-20 token would be added, need to emit events for all its balances, but ...
1
vote
0answers
31 views

How to pull metadata of NFT tokens that uses (erc721 and erc1155)

Is there any apis that we can use to pull such metadata , i found that openseac provided an api for the erc721 tokens but not for the erc1155 ones.
2
votes
0answers
30 views

ERC1155 without metadata uri

Is it possible to create ERC1155 without metadata uri? At the moment I don't need metadata Thanks
2
votes
0answers
47 views

Are ERC-1155 tokens always atomic?

I am creating an ERC-1155 smart contract whereby I create a number of different tokens and also want to be able to create new tokens on the fly. The code is something like: import "@openzeppelin/...
0
votes
0answers
237 views

Using Uniswap for trading ERC-721 or ERC-1155 Tokens

Is it feasible to use Uniswap for buying and selling NFT's (ERC-721) or Semi-NFT's (ERC-1155) tokens? It would seem to me that it could be an easy way to implement a DEX for unique digital assets with ...
1
vote
2answers
261 views

Implementing ERC-1155 contract on the fly

I want to implement an ERC-1155 token to represent ownership of videos. Creating such a contract is relatively easy: import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; contract ...
2
votes
1answer
106 views

What is operator approval in context of ERC-1155?

https://github.com/enjin/erc-1155/blob/master/contracts/ERC1155.sol says something about "operator approval". What is an operator and what is operator approval?
0
votes
1answer
39 views

ERC-1155 events for approval

ERC-1155: function approve(address _spender, uint256 _id, uint256 _currentValue, uint256 _value) external; /** @dev Allow other accounts/contracts to spend tokens on behalf of msg....