Pet*_*ich 5 metadata node.js express ipfs nft
我将文件上传到 NFT 存储,我可以在https://nft.storage/files/中看到文件列表,但如果我单击 CID 链接,则会收到错误消息ipfs cat /ipfs/bafyreiayui2us6fpowl42vqwmjrntpewhqpfkbgcak6pt4gkpz55z2o3se/: unknown node type
我的代码如下
const { NFTStorage, File } = require('nft.storage')
const apiKey ='eyJ........CJ9'
const client = new NFTStorage({ token: apiKey })
const metadata = await client.store({
name: artworkName,
description: description,
artistName: artistName,
image: new File(data, fileName, { type: artfile.mimetype }),
})
console.log(metadata.url)
Run Code Online (Sandbox Code Playgroud)
我可以在NFT存储nft存储上看到metadata.json和文件
我认为,文件大小存在问题。
请帮我
| 归档时间: |
|
| 查看次数: |
1310 次 |
| 最近记录: |