Giter VIP home page Giter VIP logo

nft's Introduction

Hello Anon I'm Neha, Working as a Backend Engineer

Languages and Technologies:

Go, NodeJS, MongoDB, Postgres, MySQL, Redis, RabbitMQ, Kafka, Docker, Kubernetes, GCP, Cassandra

Find me on web:

Instagram youtube youtube twitter

nft's People

Contributors

neha01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nft's Issues

Cannot read properties of undefined (reading 'config') error

When I tried to run "bulk_mint_nfts.js" file followed by youtube, it shows me this error.
how do I install dotenv package in remix or how do I resolve this issue?

Cannot read properties of undefined (reading 'config')
requirrequire('dotenv').config();
const Web3 = require('web3');
const HDWalletProvider = require('@truffle/hdwallet-provider');

const data = require('../build/contracts/ArtCollectible.json');
const { getTokenIds, getAmounts } = require('./helpers.js');

const abiArray = data.abi;
const contract_address = process.env.CONTRACT_ADDRESS;
const mnemonic = process.env.MNEMONIC;
const clientURL = process.env.CLIENT_URL;
const provider = new HDWalletProvider(mnemonic, clientURL);
const web3 = new Web3(provider);

async function estimateGas() {
    try {
        const accounts = await web3.eth.getAccounts();
        console.log('accounts:', accounts);
        console.log('contract_address', contract_address);
        const artCollectible = new web3.eth.Contract(
            abiArray,
            contract_address,
            {
                from: accounts[0]
            }
        );
        const ids = getTokenIds(1, 20);
        const amounts = getAmounts(20);
        console.log('Token ids => ', ids);
        console.log('Amounts => ', amounts);
        const gas = await artCollectible.methods
            .mintBatch(ids, amounts)
            .estimateGas();
        console.log('Gas required for batch minting: ', gas);
        // const estimatedGasPrice = await web3.eth.getGasPrice();
        // console.log('estimated network gas price:', estimatedGasPrice);
        const gasPrice = web3.utils.toWei('37', 'gwei');
        console.log('gas cost estimation = ' + gas * gasPrice + ' wei');
        console.log(
            'gas cost estimation = ' +
                web3.utils.fromWei((gas * gasPrice).toString(), 'ether') +
                ' ether'
        );
        const block = await web3.eth.getBlock('latest');
        console.log('block gasLimit:', block.gasLimit);
    } catch (err) {
        console.log('error occurred while estimating gas fees:', err);
    }
}

estimateGas();


Lazy Minting

Hi,
I have my own NFT collection and I have used nft.storage to store the data on ipfs. I wanted to know if the ERC1155 contract can upload my entire collection. Also, want to know if I have to pay the gas fees for minting I mean the contract does support lazy minting, right?

How to set the NFTs fro sale at once while we're minting

Right now, we can mint a batch of NFTs but, how we could set the price as well? In another word, how we could set them for sale after minting?
It is not easy or rational to use the OpenSea frontend to set each NFT one by one for sale!

ERC1155 contract with creator fees

Hi there,

I'd like to thank you for providing this amazing repo. Would it be possible to add the code for enabling the Creator Fees in the smart contract?

Many thanks for your work and efforts!

SP30

I have an Issue with the numbers in the metadata folder

Hi there I've recently tried to created the metadata from images folder which works pretty well, but on the first line I have an issue with the number, it doesn't correspond to the actual json file number.
image
Do you know how to fix it ?

Error while trying to create json metadata

Hello,
I am stuck at trying to run the javascript script that creates the metadata file. Here is my error.

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'C:\Users\Giorg\CODING\RedNFT\utils\create-metadata.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)       
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []

Does anyone have a fix ?

Issue with gif nfts

First of all thanks a million for the wonderful repo.

I have two issues:

  1. I tried deploying my GIF nfts following your steps. Everything works fine but the images are not showing up on testnets.opensea. May I know if there is any way I can make this work? I deployed this contract on my other png image collections and it works all fine.

  2. I just want to know if you can send me the code for "complete metadata including properties, etc." The code in create-metadata.js file is limited only to file namee, uri and description. I tried doing it myself but only the description is displayed on the testnets.

thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.