Questions tagged [nft]

Non-fungible token - snippet of data (on a blockchain), used to certify properties of digital assets, e.g. creator or owner of an image.

A non-fungible token is a unit of data stored on a digital ledger, called a blockchain, that certifies a digital asset to be unique and therefore not interchangeable. NFTs can be used to represent items such as photos, videos, audio and other types of digital files. (from Wikipedia)

701 questions
140
votes
8 answers

Instead change the require of index.js, to a dynamic import() which is available in all CommonJS modules

Trying to work with node/javascript/nfts, I am a noob and followed along a tutorial, but I get this error: error [ERR_REQUIRE_ESM]: require() of ES Module [...] is not supported. Instead change the require of index.js [ in my file...] to a dynamic…
Basse Nord
  • 1,443
  • 2
  • 3
  • 4
11
votes
1 answer

This version of µWS is not compatible with your Node.js build: Error: node-loader. while running "truffle console"

I'm working on a Blockchain project where I use Truffle. when I run the Truffle Console command I face this issue. Complete Log: This version of µWS is not compatible with your Node.js build: Error: node-loader: Error: The specified module could not…
Abdur Rahman
  • 153
  • 2
  • 7
11
votes
1 answer

Verify user is owner of an NFT via MetaMask connection? Make sure connected users public eth address is the same as of the NFT?

I need to verify on my own domain/server the user which has connected his MetaMask wallet is the owner of a specific NFT in order to allow him special functions? Basically, I want to give the user access to an area that only the owner of this NFS…
Oliver
  • 647
  • 4
  • 20
10
votes
2 answers

why and when is setApprovalForAll called?

I'm having a hard time understanding why and when SetApprovalForAll is called on NFT generating contracts. Take Cool Cats, for example. And for convenience there's a screen shot of relevant transactions, below. I've noticed that for this contract…
Doug P
  • 361
  • 1
  • 4
  • 15
10
votes
2 answers

Add Meta Data To Solana Token with @solana/web3.js

I am trying to create an NFT using web3.js and spl-token.js. However, i need to add meta data (like the name of the token or other attributes), otherwise it just shows up as "Unknown Token" in my wallet. This is the relevant part of the code where I…
Ood
  • 1,445
  • 4
  • 23
  • 43
9
votes
2 answers

How get all the NFTs in a collection in Solana?

Hello to fetch all the NFTs in a collection using the symbol of the collection. Is any API available that provides the data?
9
votes
1 answer

How to find all NFTs minted from a v2 candy machine

I'm minting Solana NFTs. Candy machine v2 was recently released and v1 is deprecated. If I create a v2 candy machine and mint some NFTs, how can I later find the hashes from all the tokens that were minted?
emersonthis
  • 32,822
  • 59
  • 210
  • 375
9
votes
6 answers

Invalid address or ENS name

I can't understand what the problem is. When I am run the app I am getting this error: Unhandled Runtime Error Error: invalid address or ENS name (argument="name", value=5.050201689117535e+47, code=INVALID_ARGUMENT, version=contracts/5.5.0) My code…
Ishtiaq Mahmood
  • 154
  • 1
  • 2
  • 8
8
votes
0 answers

create two nft collections from one smart contract (erc1155) in OpenSea

I want to list two collections on Opensea but instead of creating two smart contracts for that, I want to create only one (to save gas fees of uploading a contract). the only two ways I found to create a collection on OpenSea are: import an…
Ben
  • 97
  • 4
8
votes
1 answer

Is there any way to force to update metadata on Opensea?

I tried to change token base URL to display the new images of NFTs on opensea.io. But it is not updated immediately. There is a way to update by specifying force_update=true on Rikeby testnet. But I don't know how to update it on mainnet. Will it be…
Liki Crus
  • 1,901
  • 5
  • 16
  • 27
8
votes
3 answers

How to transfer a NFT from one account to another using ERC721?

I'm writing an NFT smart contract using the OpenZeppelin ERC721Full contract. I'm able to mint NFTs, but I want to have a button that enables them to be bought. I'm trying writing this function: function buyNFT(uint _id) public payable{ //Get…
acampana
  • 461
  • 1
  • 3
  • 17
7
votes
1 answer

Opensea not generating preview for 3d model glb

Hope you're doing well. I am a developer and have a query regarding my 3d model preview on opensea testnet. I have created a metadata file https://pattirose.growwithsabrina.org/nft/1.json using pinanta server for hosting the glb file. Opensea failed…
Ali Raza
  • 83
  • 5
7
votes
1 answer

ERC721: transfer caller is not owner nor approved

I have a nftToken Contract that mints token to msg.sender, then I have a function in a market contract that transfers the nft from owner to market contract. However, I am getting an error that says: ERC721: transfer caller is not owner nor…
sonika
  • 239
  • 1
  • 2
  • 9
6
votes
1 answer

How to get over the limit of OpenSea Api?

I am trying to use OpenSea API and I noticed that I need to set a limit before retrieving assets https://docs.opensea.io/reference/getting-assets I figured I can use the offset to navigate through all the items, even though that's tedious. But the…
Mohamed Rady
  • 118
  • 1
  • 6
5
votes
1 answer

Anchor test transaction failed with "An account required by the instruction is missing"

I am trying to code an anchor code where I can mint a new edition nft from a master edition ntf. I looked into the metaplex documentation and rust api documentation to come up with the code below, and am not sure why I am getting this "Error: failed…
1
2 3
46 47