Questions tagged [nft]

Questions about NFTs, non-fungible tokens.

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

external smart contract call not returning proper data due to address not passing properly

I'm trying to call walletOfOwner function from NftContract in a new smart contract. My maxSupply function works as expected but I cant seem to get the address to pass correctly with the walletOfOwner ...
  • 1
0 votes
1 answer
16 views

How much gas should cost for minting an NFT?

I am writing an ERC-721 smart contract on Ethereum, and the current gas for minting an NFT is around 5 USD. Some of my users think it is a little bit too high. Can anyone give me an idea that what a ...
0 votes
0 answers
19 views

How to setup metadata on IPFS for newly generated metadata?

I've been studying on how devs usually go about handling the metadata for NFT collections and from what I've seen, this reply on this post sums up the whole process: Best way to set metadata in ERC721 ...
  • 1
0 votes
1 answer
45 views

reverting direct transfer with onERC721Received

Working on a NFT marketplace I want to disallow direct transfers, to only allow transfering through this contract's custom function createSale() Here is the way I came about: function ...
  • 145
0 votes
0 answers
8 views

NFT Marketplace Tutorial - Alchemy Youtube big problem

When i upload any nft it shows me as buyer not as owner and when i switch to new account it shows that account as owner. So, basically it is vice-versa. Please help me.
0 votes
1 answer
15 views

Adding ERC2981 Royalties to an ERC721 Contract

I just added the ERC2981 Royalties Contract to my ERC721 Contract but while doing so noticed there's no way to actually retrieve the Royalty % for any specific Token. The ERC2981 contract simply doesn'...
  • 887
0 votes
0 answers
9 views

Choosing the best tool to upload NFT metadata on IPFS

I am working on an NFT creation user interface. I have recently encountered a crucial situation where I need to choose between the available tools to utilize the most efficient one to host my NFT ...
-1 votes
1 answer
16 views

NFT with custom data structure

I want to mint nft with a custom structure : 1 ipfs link to a png image 1 ipfs link to a xml file 1 ipfs link to binary file 10 key/value pair How can i do that ? can i use erc721 or use other one ? ...
0 votes
0 answers
2 views

I am facing issues with pinata upload, please could anyone help me?

Is there a problem with this code? const axios = require('axios'); const FormData = require('form-data'); export const uploadJSONToIPFS = async(JSONBody) => { const url = `https://api.pinata....
1 vote
2 answers
21 views

What is the right way to create multiple NFT collections?

I'm creating a platform where users can mint their own NFT collections, can you tell me the best way to do this? Do I create a contract just to store the collections and tokens, or whenever the user ...
0 votes
1 answer
29 views

What does pinning mean in Pinata and how is it different from Filecoin?

I recently came across pinata that is used for pinning the nfts and uses IPFS in the backend. My question is: what does that pinning actually mean? And if it is keeping pieces of the data in multiple ...
0 votes
1 answer
23 views

What is NFT token metadata or URI?

I want to develop a user interface which accepts an image file from the user, and a ERC1155 smart contract capable of minting tokens backed by the uploaded image. In other words, I need my ERC1155 ...
0 votes
2 answers
30 views

Hardhat - how to Verify a Contract

I've successfully deployed an ERC721 contract to GOERLI using Hardhat - and the contract is working perfectly, but when I try to verify the contract, I keep getting errors. I'm wondering if it has ...
  • 887
1 vote
1 answer
21 views

How does opensea exactly picks up the base URIs and what happens if I update it?

I was trying to create an ERC721 contract with an upgradeable URI method (to help the inclusion of extra NFTs in the future). I created the contract and minted an NFT. After that, I updated the ...
1 vote
2 answers
44 views

How do NFT marketplaces get NFTs collections to show in the tab 'explore'?

I'm beginner at solidity development, and I have a question: How they get NFT collections of various smart contracts to show in the explorer-collection page? https://opensea.io/explore-collections
0 votes
0 answers
25 views

How do I test a bool value?

I'm stuck on my last test for the NftMarketPlace unit tests. I want it to revert if the withdrawal is not successful. I have searched how to write tests for boolean values but I didn't find anything ...
0 votes
1 answer
20 views

Confusion around ERC1155 nft ownership

I came across an ERC1155 nft token which is at the same time owned by two wallet addresses. I asked a friend how is that possible and they told me that ERC1155 tokens can be owned by multiple accounts ...
0 votes
0 answers
13 views

Staking contract that uses NFTs in pairs for bonus but not locking them in contract can the coins being stacked be wiped from one if one is bought?

Basically if a contract is using two different NFTs to pair them together without actually locking them into the contract but using a coin with both of them as the staking mechanism to earn more of ...
0 votes
1 answer
22 views

How can we allow an NFT to only be be traded on OpenSea and make direct transfer not possible?

How to Stop Direct Transfer of NFT only Trade of NFT on opensea should be available ?
0 votes
0 answers
12 views

(argument="_VRFCoordinator", value=undefined, code=INVALID_ARGUMENT, version=abi/5.5.0)

I`m making a dynamic NFT collection using Chainlink and VRF and got this error when I tried to deploy the contract to mumbai. Full error: Error: invalid address (argument="address", value=...
  • 27
0 votes
0 answers
6 views

Seaport cannot estimate gas; transaction may fail or may require manual gas limit

I have tried all means to troubleshoot this seaport error. I know this gas estimation error is an ambiguous one. So I find it difficult to troubleshoot my code. If anyone is familiar with seaport and ...
0 votes
0 answers
9 views

Why is it free to list NFT on Opensea, but there is a gas fee to cancel the listing?

I know that there is a one-time gas fee for the first listing of each collection, and subsequent listings are free, but why do I need to pay every time to cancel listing? Also, if my listing exceeds ...
0 votes
0 answers
8 views

Random string in end of my NFT collection

I am new to NFT development. I have deployed a NFT contract to mumbai testnet and minted an NFT but I don't know what is this random string in the end of my Collection name Does anyone know what is ...
0 votes
1 answer
22 views

Cannot update mapping value and read it

I'm developing zero fee NFT trading contract. After I canceled a listing of NFT, my smart contract's varuable is not updated. write approve() function of the NFT contract write list() function of my ...
0 votes
0 answers
13 views

Resolve Wallet Address To Domain Like .eth?

Hey I am building an app in react that is very very similar to ENS Domains, just on the Theta blockchain. A user can buy a domain, and once they buy it it gets connected to their wallet hash so it ...
0 votes
0 answers
22 views

High max cost using VRF V2

I'm recreating the nft smart contract following freecodecamp's tutorial on YouTube with VRF V2, and the max cost for the fulfillments are strangely high recently. Every fulfillment costs around 2-3 ...
0 votes
0 answers
49 views

How to correctly mint a NFT with any ERC20 token using react app & smart contract? Code w/ explanation provided below

Problem/Clarification: I have a NFT minting DApp that mints with multiple ERC20 tokens. I'm having an issue with the react code which calls the smart contract minting function multiple times. When a ...
0 votes
0 answers
7 views

ecrecover not returning expected public address in a solidity contract

so am trying to access an NFT contract using web3.js to automate the Mint process, and while testing on multiple projects, i came across this project KPR , after checking its a public mint function ...
0 votes
1 answer
65 views

How to correctly mint a NFT with any ERC20 token? Code w/ explanation provided below

Problem/Clarification: I have a NFT minting DApp that mints with multiple ERC20 tokens. I'm having an issue with the react code which calls the smart contract minting function multiple times. When a ...
0 votes
0 answers
26 views

Issues with Alchemy getContractMetadata endpoint

I have created a new ERC-1155 NFT collection for my project but for some reason Alchemy's getContractMetadata endpoint does not recognizes it at all. I'm filtering by contractAddress: ...
0 votes
0 answers
12 views

Alchemy NFT tutorial Help

The how to airdrop NFTs guide (https://docs.alchemy.com/docs/how-to-airdrop-nfts#step-3-write-the-smart-contract) does not specify how to add IPFS/metadata to the NFT like in the how to create an NFT ...
  • 1
0 votes
1 answer
34 views

How to send an NFT to another wallet and sing the transaction in Metamask?

I'm a beginner and trying to learn web3 and want to implement a transfer-button for NFTs (same as you have on Opensea, where you can transfer your NFT to another address). I have started of by having ...
  • 1
0 votes
2 answers
22 views

search NFT collection by name

i am new to this world of web3. I scrapped opensea.io TOP NFT collections in mongo and now I want to know is there any web3 method that takes NFT name only and returns metadata. My collection in ...
0 votes
1 answer
16 views

In an ERC721 contract how to create a status variable that saves -1 to indicate that an nft owner decided to transfer it to another address

In an ERC721 contract how to create a status variable that saves -1 to indicate that an nft owner address no longer owns it because it has decided to transfer it to another address. In order to ...
0 votes
0 answers
4 views

Seaport-js contract

If anyone has tutorials/relevant resources for seaport-js kindly refer me. I am trying to execute this but I don't know where to start - I am familiar with the original github seaport-js doc
1 vote
0 answers
16 views

how to Mint a NFT to a PDA account directly on Solana?

I'm a Ethereum dev, started solana development recently finding it bit confuse due to my previous Eth concepts. I'm developing a NFT marketplace on solana and its a type of P2E model. In Ethereum you ...
0 votes
0 answers
11 views

Function not approving the NFT through interface

// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; ...
0 votes
1 answer
27 views

How to get wallet address who own certain NFT with certain traits?

The requirement is like this: Request: Get all the wallet address who own the NFT with a trait of 'monkey holding banana'. Response: 0x123...9056 ; 0xabc...4320 ; ... ; 0x034...afe1 All the wallet ...
  • 115
0 votes
1 answer
21 views

What is this error code?

I am running code to mint an NFT, after the contract deploys, I am getting this error message but I dont really know what to take from it. Is there something specific that could tell me the reason I ...
1 vote
3 answers
62 views

Inconsistent NFT transfers?

I am fairly new to the blockchain. My understanding of an ERC-721 NFT is that it should be passed atomically between addresses. In particular, if I track the "from" and "to" ...
1 vote
0 answers
11 views

Safety of writing fund transfer and NFT transfer code in an externally linked library

If suppose there is a main contract A that is linked to an external library L, would it be safe to move all the fund transfer and NFT transfer calls from the main contract into the library to reduce ...
0 votes
0 answers
13 views

Contract Deploy is Pending and Set Max amount of NFT per wallet

I am testing my first smart contract and minting NFTs. I would like to set a number of MAX NFTs that can be minted per Wallet. When removing the comments from the function mapping and the related ...
  • 1
0 votes
0 answers
8 views

RPCRequestError: Accessing `TransactionReceipt.revert_msg` on a reverted trar Ethereum

im watching patrickAlphaC's tutorial and im having an error in implementing an ERC721 token. I can compile the solidity code and deploy the contract on goerli testnet but when i want to fund the ...
0 votes
0 answers
11 views

Updating Metadata in Opensea

I am trying with updating the metadata listed in opensea. WHen I tried from their UI, metadata is updating succesfully. But when I used https://testnets-api.opensea.io/api/v1/asset/...
0 votes
1 answer
23 views

Why Soul Bound Tokens (SBT) are Non Transferable?

I'm aware that Soul Bound Tokens (SBT) are Non Transferable to ensure that certain attributes are linked to a wallet address. That makes sense, but comes with lots of limitations. I have multiple ...
  • 815
0 votes
1 answer
17 views

If a call to contract B depends on some state in contract A, can I send both transactions in the same block?

Here's the general interaction: I have a dApp that allows a user to mint a VolcanoNFT in two ways: either by sending 0.001 ETH, or by "sending" an ERC-20 token called LAVACOIN. For payment ...
  • 101
0 votes
0 answers
26 views

Match ERC721 Transfer event using Foundry

I'm using Foundry for testing my ERC721 contract. The full code can be found on this repo. I don't understand why the test testMintEmitsEvent fails when matching the Transfer event. Contract contract ...
  • 5
0 votes
0 answers
19 views

Cannot Estimate Gas | Why am I getting this error?

I am trying to set up a marketplace where I will sell with my own erc20 token. But whenever the following function works, it returns this error to me on the client side. Error: cannot estimate gas; ...
  • 3
0 votes
0 answers
10 views

Transferring NFT from two different websites showing different gas fees

I want to transfer an NFT from an address to another. However, the gas fee in my website is very high while the gas fee to transfer the same NFT through opensea is normal. Please I want to understand ...
0 votes
0 answers
7 views

erc-721 : calling 2 smart contracts for a single action

I have created an NFT market, based on multiple tutorials I found on the internet. Most follow the same approach: 1 smart contract for the market, and 1 for the NFT that extends the ERC721URIStorage ...
  • 101

1
2 3 4 5
24