Hot answers tagged

7 votes
Accepted

How to properly implement a ContractURI for on-chain NFTs

It seems like my setContractURI function had one encodepacket too much. it looks like it is working now on OpenSea. function setContractURI(string memory contractURI_) public onlyOwner() { ...
6 votes
Accepted

What is Project Wyvern Protocol?

Their documentation is at their website https://wyvernprotocol.com/. In order to understand the fundamentals of Wyvern Protocol you'll need a deep understanding of blockchain and smart contracts. If ...
  • 323
5 votes

Make offer to opensea asset through opensea-js

Few things You cannot use HttpProvider as the opensea-js library should be able to sign the transaction on your behalf. Try using HDWalletProvider or something similar with your mnemonic or private ...
4 votes
Accepted

Updated token metadata not refreshing on OpenSea

I kind of encountered probably the same metadata update problem. In my case it was because I rushed through the opensea docs didn't use the correct api endpoint for force updating the metadata. ...
  • 156
3 votes
Accepted

How can I register my NFTs on opensea

Opensea did not supports the BSC network. But you can mint the NFTs on Polygon for cheaper fees. Polygon is supported by Opensea platform. Reference: Which blockchains does OpenSea support?
3 votes
Accepted

Can an NFT be owned by multiple people?

There are two broad standards of tokens trading on OpenSea - ERC721s and ERC1155s ERC721 implements the ownerOf method: function ownerOf(uint256 _tokenId) external view returns (address); This ...
  • 309
3 votes
Accepted

Burn ERC721 without externally exposed burn function

ERC20 and ERC721 have the same concepts for burning. There are two options: Explicit burn by calling some sort of burn functionality. This has to be included in the code before deployment. Sending ...
3 votes

What are the risk with creating a collection that does not implement ERC721 Enumerable extension?

Your risk in using a non-ERC721Enumerable contract is as follows: If you only use websites like Twitter, OpenSea and MetaMask to access your NFTs and OpenSea and other commercially available ...
2 votes

ERC721 Metadata - TokenURI - Return the full JSON String Instead of URL Pointer?

Yes, it's possible using Data URLs. OpenSea requires the tokenURI method to return a URI of a JSON containing properties such as image (which themselves can also have data URLs as values). Here's a ...
  • 790
2 votes
Accepted

What does msgSender() this code do in the OpenSea repository's example ERC721?

I think it's supposed to be used for meta-transactions. You can find similar examples that OpenZeppelin implemented that was also designed to be used this way. To support native meta transaction, ...
2 votes

Scam where unsolicited airdrop NFTs, if sold, empties victim's wallet

Looks like you have been following Twitter today. The user in question actually had their private keys compromised by a fake OpenSea email spam. However attack vectors can be launched on smart ...
2 votes

Random String Appears After Token Symbol on Opensea

This is taken from the token's metadata. You need to call tokenURI on your token, and see what the metadata that is being returned. OpenSea grabs the collection name and token name from there. So the ...
  • 1,081
2 votes
Accepted

where to find the address of the NFT contract I created on opensea

If you are trying to use the browser extension of Metamask you wont be able to visualise your NFTs according to a Metamask article released 7 days ago. You can however view them if you have the ...
2 votes

Rinkeby testnet with Opensea metadata not showing

I was having a problem with my metadata and this article really helped. https://docs.opensea.io/docs/4-debugging-your-metadata It includes an api endpoint for the testnet that will show you your token-...
2 votes
Accepted

How to access the price nft asset is being sold for in your NFT contract?

The order matching information -- buy order, sell order -- is not saved or accessible on chain in a way that your contract can be read during transfers. There is some way to do what you are saying, ...
2 votes
Accepted

How does OpenSea get Town Star ERC1155 token image?

Interesting question! Town Star token is an ERC1155 token. The tokenURI property is part of the ERC20 token specification. Hence, you won't find it in Town Star's contract. According to the docs, ...
  • 1,960
2 votes
Accepted

My transaction is 2 blocks earlier than the competitor, but mine is failed and his successful. Why?

The transaction reverts with the following error 0x6f7eac26 From the 4bytes.directory that value corresponds to InvalidTime(). It is likely the offer wasn't within the time allowed.
  • 30.2k
1 vote

HTML NFT (ERC721) Not displaying correctly from data url

Opensea's Content Security Policy does not allow inline javascript. Try inspecting your "image display" on opensea with your browser dev tools and copy the src url of the respective iframe ...
1 vote

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

Neither of them were popular enough at the time they were released. This is why they were not built to be compatible. Also there were no standards available at the time, so nobody had a specific ...
1 vote

Why is OpenSea (Wyvern) using proxy registry?

OpenSea creates a shadow account for all users in order to provide zero-fee listing and minting. The proxy registry supports this feature in that it marries your shadow account to your Ethereum wallet ...
1 vote

Can I list my own smart contract NFT items on other platforms?

Yes, when you deploy the contract and mint your NFTs you will be able to visit the contract address on i.e. OpenSea and all the minted NFTs will be displayed. There is a testnet version of opensea ...
  • 131
1 vote

How to query my Polygon NFTs created on Opensea?

To find items on Polygon, make sure to check "Polygon" under the "Chains" section on the left panel. If you want to access through opensea-js API, unfortunately it is not supported ...
  • 176
1 vote

I minted an NFT using an interface I created but the media (image) is not showing up on opensea

Reading through OpenSea Metadata standards, you'll find that your json data field with the image link needs to be called "image" instead of "imageCID".
  • 1,279
1 vote
Accepted

Can't See NFT on OpenSea Testnet

I realized that I needed to put .json at the end of the Token URI. Also, I used this debbuger to validate the metadata: https://api.opensea.io/asset/<your_contract_address>/<your_token_id>/...
  • 428
1 vote

Updated token metadata not refreshing on OpenSea

The polygon version of this endpoint should be https://api.opensea.io/api/v1/asset/matic/<your_contract_address>/<token_id>/?force_update=true
  • 11
1 vote

Is it possible to take an existing ERC-1155 collection on Open Sea, and include it in a newly deployed ERC-1155 contract?

It's not possible. NFTs aren't like wallet addresses which are unique globally. NFTs only make sense in the context of the contract that created them. Inside the contract, each token has an id that ...
1 vote

Where is my WETH?

Your transaction succeeded. To make sure of it , you can check your address balance on the WETH contract. Maybe you simply didn't add the WETH token view to your myetherwallet (I don't use ...
  • 6,074
1 vote
Accepted

Edit Collection on Opensea

Opensea is a front end for the blockchain, and doesn't actually (currently) offer "no-code" ways to change what is on-chain. When you change your elements and create collections through the ...
1 vote
Accepted

What are the pros and cons selling NFT using the ETH on Polygon?

Pros cheaper transaction costs faster transactions. Cons your assets are less secure. Do you trust polygon to not lose your funds?
1 vote

ERC-721 token metadata not displayed on NFT marketplaces when using IPFS

I was looking for an answer but with no luck. So I came up with my own answer why is this happening. When I deployed smart contract with wrong URI had same responses and no image or info showed up on ...
  • 61

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