-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using the CreatorContract in a Next JS / Typescript project #462
Comments
We strongly recommend using an IPFS service to upload your image before posting and incorporate that url in the make contract and token metadata fields. There are a number of IPFS services that will handle standard NFT metadata and docs on the spec here: https://docs.zora.co/contracts/Metadata Let us know if we can help clarify this information further :). |
thanks for the message... was curious, does the writeContract function return anything? const txResult = await writeContract( Thanks |
have another question... I am now using 'ipfs-http-client' to pin image to ipfs... //Pin ImageBuffer to IPFS thanks |
You need to pass in the cid using `ipfs://${cid}` for the urls. You can use
the same url if you want the same metadata for the contract and token or
different metadata.
…On Fri, Oct 25, 2024 at 16:51 Booker ***@***.***> wrote:
have another question... I am now using 'ipfs-http-client' to pin image to
ipfs...
//Pin ImageBuffer to IPFS
const { cid } = await ipfs.add(imageBuffer);
console.log('Image pinned to IPFS with CID:', cid.toString());
what do I do with makeImageTokenMetadata & makeContractMetadata functions
(zoralabs sdk)... do I need to pass them both the cid, since the image is
pinned to ipfs do I need to change part of the makeImageTokenMetadata
function?
thanks
—
Reply to this email directly, view it on GitHub
<#462 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGMCOABFXDI7DGXG5QDHBTZ5KVO5AVCNFSM6AAAAABQSKO6KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZYG44DENJVGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello... I am having trouble implementing the creatorClient contract in NextJS w/ Typescript..
Here are my 2 function.
I am passing in an imagebuffer which is an AI generated image.
How do I use it inside the creatorClient.create1155 function?
Do I first need to do something w/ makeImageTokenMetadata, makeContractMetadata first to get the token and contract uri's? -- but then what do I do?
Also how would I call them correctly (makeImageTokenMetadata, makeContractMetadata)
thanks
The text was updated successfully, but these errors were encountered: