Questions tagged [nft]

Questions about NFTs, non-fungible tokens.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

How to verify allowed addresses using a Merkle Tree in Node.js

I have set up a server using Node.js and Express. I am unsure if I need a database but I do have MongoDB available if needed. The method I'm trying to do is to capture the wallet address from the ...
0
votes
0answers
12 views

Random-order minting of ERC721 tokens

Problem is minting of tokens in random order. I would like to hear more about drawbacks of these approaches: Having: 10.000 NFT collectibles amongst them there are rare ones images are clearly ...
0
votes
0answers
4 views

How does renting ERC721 tokens work

I am currently not able to grasp the NFT renting functionalities of ERC721 Tokens. I found a couple samples where the ERC721 tokenId is directly transfered to another address without setting/giving ...
0
votes
0answers
21 views

Correct way of randomly selecting token Ids from already minted NFT's

I have an NFT project with 1000 NFTs. As part of my project, users who hold an NFT will be entered into a lottery. The function I want to implement is the following: Select x number of users to ...
0
votes
0answers
5 views

How to retrieve All ERC721, ERC1155 Contract Addresses From Ethereum Blockchain?

I'm trying to retrieve all contract addresses of erc721 and erc1155. Is there any way retrieve that without using the openseaAPI? Any expample related to The Graph ?
0
votes
2answers
51 views

How to get 10,000 NFTs on Opensea without paying gas fees

When talking about NFTs, there is a core concept I'm not understanding that I hope someone can help me out with. I can write and deploy smart contracts without a problem and I think I understand what'...
0
votes
1answer
18 views

How to upload images to IPFS with the certain baseURL?

I have uploaded one image and set the baseURL for that. https://gateway.pinata.cloud/ipfs/QmQGTQMWRxK33PF4fvnxanyz8aWPPaweYUZeNTVW4gqpQb Now, I am going to upload more images with the same baseURL, ...
0
votes
0answers
13 views

How ERC721 NFT accept payment from ERC20 token instead of ETH [closed]

I have created my own ERC20 token already (1 year ago). Today, i try to deploy the contract of ERC721 token for NFT marketplace. by this git After i deployed above git following by the tutorial ...
1
vote
0answers
12 views

Is there a way to have a smart contract pay for its own invocation? [duplicate]

I want to introduce people to Ethereum (and clones) by way of giving them an NFT related to an event we are organising. I realise most people don't have an Ethereum (or any other EVM compatible ...
0
votes
1answer
19 views

How to get contract address when receiving an ERC-721 token in a contract?

I'm writing an NFT staking contract and I want my contract to accept NFTs only from 3 specific contracts. I have implemented IERC721Receiver and the onERC721Received function successfully fires. What ...
0
votes
0answers
14 views

Randomizing values in mintable NFTs

I've read and written simple smart contracts in the past yet I'm relatively new to getting random data in a transaction, which seems to be harder than I've thought, due to the nature of determinism of ...
1
vote
2answers
37 views

How to force smart contract to accept ether when deployed on Polygon chain

I have written a contract to mint NFT in solidity. I intend to deploy it to Polygon eventually. There’s a slight confusion, I have put the price in my contract as 0.1 ether which works fine on Rinkeby....
1
vote
2answers
32 views

How can blockchain be applied other than cryptocurrencies?

How can blockchain be applied other than cryptocurrencies? May I ask for some diagrams that abstractly explain the system behind the non-monetary application of blockchain? I cannot seem to wrap my ...
0
votes
2answers
23 views

Whom NFTs on an NFT marketplace are issued or minted by?

Talking about an average NFT marketplace, perhaps not only on Ethereum: who or what is it who issues or mints NFTs sold and bought on an NFT marketplace? (1) Is it an NFT marketplace itself mints ...
0
votes
0answers
15 views

Lazy minting tokenId security

When lazy minting we estimate the next tokenId and create a signature with that tokenId assign that signature to the created asset to use it on purchase. On purchasing we mint the token by the seller'...
0
votes
0answers
29 views

Derived contract must override function "totalSupply". Two or more base classes define function with same name and parameter types

This is the code // SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/...
0
votes
0answers
24 views

Hardhat deploy hangs

I'm using hardhat to compile and deploy my contract to ropsten testnet, it worked two times well but now it just hangs. npx hardhat run scripts/deploy.js --network ropsten command doesn't output ...
0
votes
0answers
29 views

Customized Lazy minting NFTs on OpenSea

Is it possible to implement customized lazy minting NFTs from scratch, and list them on OpenSea? I know that there are public smart contracts to lazy mint, but I'm not sure whether they can be listed ...
0
votes
2answers
52 views

Gas Cost for setting whitelist addresses on contract

I know we all have high gas cost problems with whitelist. I noticed that there are two approaches to set whitelist addresses on the contract. I want to know which one costs lower gas. [approach 1] ...
0
votes
0answers
10 views

Why removing royalty info on burn in Openzeppeling ERC721 Royalties extension?

In https://github.com/OpenZeppelin/openzeppelin-contracts/blob/783ac759a902a7b4a218c2d026a77e6a26b6c42d/contracts/token/ERC721/extensions/ERC721Royalty.sol#L34 we have function _burn(uint256 tokenId) ...
0
votes
1answer
42 views

Token id 0 minted by smart contract

i was wondering if someone can help me here. I'm minting an nft by this smart contract, and the problem is that the tokenid count starts with id 0, and that is an error. It must start in id 1. Someone ...
0
votes
1answer
18 views

Why does mining difficulty, gas prices raise, yet some transactions still fail?

I would be grateful if someone was able to clarify this, given my assumptions: Mining difficulty is depending on the amount of computational power invested into verifying transactions on the ...
0
votes
0answers
19 views

Downloading all transactions from an NFT project

I'm looking to get access to a table where each row represents a single NFT transaction for a specific project. Let's use the Bored Apes Yacht Club NFT project as an example. Let's say there are 10,...
0
votes
0answers
18 views

Mint failing on rinkeby with ethers and react. Help troubleshooting?

I've deployed a contract on Rinkeby with Truffle, and connected to it with Ethers.js and React. When I call the minting function defined in the smart contract, passing an address and token metadata ...
0
votes
0answers
21 views

How to verify whether an address has been active on OpenSea?

We do a bunch of validations in our project to ensure real people can claim NFTs and that bots with auto-generated wallets are filtered out. One I'm still figuring out is how to ensure the address is ...
0
votes
0answers
7 views

On EIP-721, how to check if receiver address is capable of receiving?

In the EIP-721 transferFrom states that the caller is responsible to confirm the "to" is capable of receiving NFTs or else they may be permanently lost. Because it throws if "to" ...
0
votes
0answers
30 views

Best way to convert point coordinate (x, y) to unique token Id

I have a map which has width as 100 and height as 100, meaning ​100 * 100 size map. The origin is at the center and its coordinate is (0, 0). So -50 < x < 50 and -50 < y < 50. I want to ...
0
votes
0answers
36 views

Can opensea be used to stage private listing to a whitelist? [closed]

We are an art studio which has been working on a mid-sized NFT collection now that we have the art – we are looking for guidance on how to properly launch the project on open sea. I see the current ...
2
votes
0answers
94 views

Transfer an NFT token from Polygon to Ethereum - Solidity smart contract

I am new to blockchain development, NFT and Solidity and i need your help. I have fount this twit and this Polygon documentation Most of the assets are pre-existing on Ethereum chain. But new assets ...
0
votes
0answers
15 views

Ganache Storage not updated after minting ERC721 token

I am using a standard OpenZeppelin ERC721 token API to mint a NFT. The code looks as below: pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@...
0
votes
2answers
36 views

How to do the payment of royalties for a NFT marketplace transaction?

I have read the EIP-2891, but I don't know what is the correct way to approach the payment when the transaction occurs. Initially I thought of doing something like this: (...) // Transfer ...
0
votes
1answer
26 views

Is there a way to listen to events that involves a specific contract?

I would like to do something when an NFT from my contract gets transferred to another user. Can I listen to events like this? If not, what would be the best way to get around this?
0
votes
0answers
14 views

Does opensea store the price of an nft item on the smart contract?

I was interacting with open-sea on the rinkeby testnet, After deploying some nfts, I listed the price for each of the item, While i was listing them I did not pay any gas fee but provide a signature. ...
0
votes
1answer
42 views

Want to generate non-repeative random number in a particular range

I need to generate a random number in range 1-5000 which are non duplicate. I had found solution to generate random number in particular range using chainlink and without chainlink also but i need to ...
0
votes
1answer
42 views

Difference between creating NFT with Opensea and with solidity code

You can create and list your NFTs without any coding using OpenSea or you can create and put it on OpenSea using solidity code (smart contracts, ERC-721, or ERC-1155). Why would anyone want to deal ...
0
votes
1answer
36 views

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

Can it be done simply using web3.js? Can I do it on both ERC-721 and ERC-1155 NFTs?
1
vote
1answer
34 views

Why does CryptoPunks does not use the Wyvern contract on OpenSea?

Almost all NFT transactions on OpenSea are handled using the wyvern contract which creates an OrdersMatched event for the NFT sale. However, I noticed that on sales for CryptoPunks there is no ...
1
vote
2answers
35 views

While writing a test using dapptools, how do I send a transaction as a specific wallet address?

I'm playing around with dapptools: dapp And I want to write a test that checks the gas for OpenZeppelin's ERC721 implementation of the transferFrom(..) function. Here's my test: // SPDX-License-...
0
votes
1answer
15 views

What Is The Best Way To Retrieve All Transactions of a Certain Token?

I am currently trying to better understand purchasing trends of certain NFTs (ERC-721). Currently, I am doing this using EtherScan's API. Now, the API calls return "up to a maximum of the last ...
0
votes
1answer
21 views

How can I query for smart contracts owned by a wallet address?

I'm playing around with programmatically forming DAOs. Essentially I want to create a frontend users can come to, type in a name, click a button and deploy a smart contract. I'd like to display a list ...
0
votes
0answers
115 views

I get "There was a problem processing your request" when buying or accepting an offer on OpenSea

I made my own collection of NFTs on OpenSea and I'm trying to buy or accept offers. The network I'm using it Polygon (Mumbai). The problem is, that there's no way, or at least I couldn't find a way, ...
0
votes
1answer
67 views

How to get token id from NFT contract

I have created an NFT with the help of openzeppelin wizard. I got the following response on mintable method. token.safeMint('0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', 'http://wplugins.localhost/...
0
votes
0answers
11 views

Getting "ValueError: invalid sender" in brownie and python when sending ERC721, eventhough the scripts does work on test-net

I'm using the following code: from brownie import myContract from brownie.network import max_fee, priority_fee from scripts.scripts import get_account import pandas as pd max_fee("50 gwei") ...
0
votes
1answer
27 views

How to make a physical asset an NFT

I am trying to create an NFT but with physical assets, how can I make this work.
0
votes
0answers
34 views

Can you lazy minting an onchain NFT?

I want to mint my already created SVGs. I know we can encode svg to base64, and currently the gas price making onchain data minting is very expensive. Can we use rarible or opensea api to lazy mint ...
0
votes
2answers
100 views

Different IDs for bulk NFT mint in ERC-1155

I would like to mint bulk NFTs, say 1000. ERC-721 will be costly, therefore, I would like to use ERC-1155 instead. What I want to learn is, is it possible to have different IDs for each NFT? If so, ...
0
votes
0answers
15 views

How to verify polygon smart contract using truffle?

I deployed a simple NFT smart contract on polygon mumbai testnet but when I am trying to verify it then It is showing an error. please guide me how to verify it... This is the error which I am getting ...
0
votes
1answer
29 views

Check if NFT tokenURI is an image or a video

Is there a way to check if the file I'm loading as a URI is an image or a video. so that I can use 'img' tag for the images and 'video' tag for the videos.
0
votes
1answer
25 views

Fetching Nft value from smart contract

So today I got an idea to develop an application where users can mortgage their NFTs in return for ethers with added interest. However, one problem I'm facing is of accessing the value of NFT via #...
0
votes
0answers
28 views

NFT Contract not showing the token value

I am trying to create a NFT token by using the openzeppelin and chainlink. Everything works fine from compile to migrate. But when i try to check my contract https://rinkeby.etherscan.io/address/...

1
2 3 4 5
13