Перейти к содержанию

jadeadam

Пользователь
  • Публикаций

    1
  • Зарегистрирован

  • Посещение

Репутация

0 Нейтральный
  1. jadeadam

    Where to Find NFT developer for NFT's project?

    Hello to all my community members. I have been stuck in this problem when I was uploading image to my NFT library. Being a developer I have been working in respectable company for many years. While uploading image of NFT's on client website i just recieved an error below is my code attached you can check it. Do suggest me some custom application developer who can help me with it. Thanks const { NFTStorage, File } = require("nft.storage") const mime = require("mime") const fs = require("fs") const path = require("path") require("dotenv").config() const NFT_STORAGE_KEY = process.env.NFT_STORAGE_KEY async function storeNFTs(imagesPath) { const fullImagesPath = path.resolve(imagesPath) const files = fs.readdirSync(fullImagesPath) let responses = [] for (fileIndex in files) { const image = await fileFromPath(`${fullImagesPath}/${files[fileIndex]}`) const nftstorage = new NFTStorage({ token: NFT_STORAGE_KEY }) console.log("Entered 1...."); const dogName = files[fileIndex].replace(".png", "") console.log("Entered 2...."); const response = await nftstorage.store({ image, name: dogName, description: `An adorable ${dogName}`, }) console.log("Entered 3...."); responses.push(response) } return responses }
×