Hello, I am working on adding the metadata of a token, should I use setTokenURI function from the contract? I tried several times of putting json data using it, but it does not work, it seems that I need to put a url in stead of actual json data. May I know if I need to host a website that shows the json data and then use the function in the format of setTokenURI(ID, "http://xxx.com/") please? If it works like this, what happened if the website is down? Thanks!
Posted by Jack 2 years ago
I'm testing my NFT at your platform, but there is on issue - unicode symbol not showing correctly. for example the name of the contract: https://rinkeby.opensea.io/assets/0x85e3dcfa057acfc072234de9a33c15194304c37b/1 your system shows: "â CRYPTOHEROES GAME â" but it should be "⚔ CRYPTOHEROES GAME ⚔" Can you fix it?
Posted by Mikhail Semenkin 2 years ago
Hi, this is the error that shows the Pragma Editor with the Deploy option after paste the codeof CryptoPuff Sample Contract= :2:1: ParserError: Source "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol" not found: File not supplied initially. import 'openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol'; ^--------------------------------------------------------------------^ How can solve this? Thanks
Posted by capir 2 years ago
Hi, I looked at your FAQ page, and have a couple of questions. 1. What do you typically suggest for creating meta data file automatically when minting? Do we need to handle this inside the solidity contract (I assume not?) or make a hook to an external script that writes the metadata to a file while minting (and thus creating a new collectible image)? 2. For contract redeployment from v1 to v2, for instance, how can we easily move all v1's minted token data to v2? Moving all these v1 transactions to v2 causes additional gas, correct? Is it suggested to just read the token data from v1 and just import to v2 or?!? Any suggestions are welcome! Thank you for previous responses!
Posted by Mark 2 years ago
Hi, I was reading through your page here: https://docs.opensea.io/docs/4-auctioning-an-item Is it possible to auction an item using the sample contract you have on this page? https://docs.opensea.io/docs/1-structuring-your-smart-contract I initially thought I would have to have the solidity code to take care of "auctioning" piece, but the above sample code doesn't appear to have the auctioning details in the solidity code. Is this auctioning automatically taken care of by the Opensea platform itself? Ultimately, I am asking if I can just take your sample code, deploy it on testnet, pull it into opensea, and make auctioning work with the sample code without me coding the auctioning piece. Thank you!
Posted by Mark 2 years ago
Hello, I am currently developing a smart contract that will create ERC721 tokens. I am interested in using your auction features in the future and currently adding a metadata contract. I looked up your documentation on adding metadata at https://docs.opensea.io/docs/2-adding-metadata. Everything in the documentation is pretty clear but I don't understand this portion "external_url": "https://cryptopuff.io/3". We are building a single page application (SPA) that by nature does not have unique URLs. If my metadata wont include an external URL would that be an issue? My metadata will include a link to the image of the token. Thank you for your time, Oleg Mitrakhovich
Posted by Oleg Mitrakhovich 2 years ago
I am a bit confused on the actual image creation. In the guide to add metadata, the reference to an image was: https://storage.googleapis.com/opensea-prod.appspot.com/puffs/3.png Does this mean we need to have the images stored somewhere else to point to in advance, and then create a metadata pointing to it? This would also mean I would need to have a separate mechanism to create images and upload to the image host location prior to creating metadata? Or is this automated as part of the Opensea implementation? Thank you.
Posted by Mark 2 years ago
Hi - I'm trying to deploy the crypto puff tutorial using pragma. Is there full implementation (including the inheritance of 10 sub contracts ; basic.sol/safemath.sol erc165 etc etc) or am I missing something? Not finding open zeppelin easy here!... Thanks
Posted by tom alcott 2 years ago
Once a test contract is deployed with Truffle on Rinkeby, how do you run this scripts/mint.js to actually mint? Is this run under truffle with truffle exec with proper environmental variable set (like one for CONTRACT_ADDRESS, etc) or just run it in command prompt with node? I get this error: truffle exec ./scripts/mint.js --network rinkeby Using network 'rinkeby'. TypeError: fn is not a function at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-require/require.js:128:1 at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-require/require.js:101:1 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:3)
Posted by M 2 years ago
Hi, I asked same question here for the rinkeby test net token. I deployed same in main net, but it still does not get listed automatically. https://opensea.io/category/digitalartchain Can you please fix this as well? Also can you tell me what is the right path to fix this? I guess every time asking here is not good solution for you. Thank you in advance!
Posted by Maki Ooki 2 years ago
Hi I'm Maki, ethereum based dApps developer in Japan. I want to put my Dapp on Open Sea My Dapp enable user upload image and create ERC721 token which can be used in Dapp I tested in rinkby network: https://rinkeby.opensea.io/assets/digitalartchaintoken DigitalArtChainToken | OpenSea But this is not getting updated when user create new token. Is it possible to have page which is updated frequently? One more question , can I use my contract auction logic? I have logic to make benefit for publisher of digital Art.
Posted by Maki Ooki 2 years ago