Code Monkey home page Code Monkey logo

nft-demo'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-demo'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

Watchers

 avatar  avatar  avatar  avatar

nft-demo's Issues

When is metadata.json read ?

Hi Neha,

I found your project on youtube and was not able to see where and how the metadata.json file was read by your application.

Is the api of pinata accept either an image file or a json file ? Could make sense

Thanks

Pinning to IPFS failing

Hi Neha,

I get a similar error to the one mentioned earlier -
Error occured while storing data to file Error: Configuration property "ipfsFile.location" is not defined
at Config.get (D:\GitHub\yoriverse\node_modules\config\lib\config.js:182:11)
at storeDataToFile (D:\GitHub\yoriverse\scripts\ipfsHelper.js:10:50)
at pinFileToIPFS (D:\GitHub\yoriverse\scripts\pinFileToIPFS.js:29:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Successfully added IPFS response to json file

Prior to this error I also get the output
data: {
IpfsHash: 'QmbAVkKcEiLSjXUYpYuTKipJYZmoVgeV85PahG6Fp1D5Sc',
PinSize: 224676,
Timestamp: '2022-05-22T12:00:50.187Z',
isDuplicate: true
}

But no data folder is being created.

I tried setting the NODE_ENV to dev. Anything else I am missing?

Migrate does not work due to the transaction not mined within 750 seconds

Hello Neha,

The following command does not work on the mainnet :

npx truffle migrate --network matic

Here is my .env file :

PINATA_API_KEY="*"
PINATA_API_SECRET="*"
PINATA_ENDPOINT="https://api.pinata.cloud/pinning/pinFileToIPFS"
MNEMONIC="*"
CLIENT_URL="https://polygon-rpc.com/"
CONTRACT_ADDRESS="YOUR_DEPLOYED_CONTRACT_ADDRESS"

The transaction are visible on polygonscan but I get an error when I reach 750 seconds with the following error :

Error:  *** Deployment Failed ***
"Migrations" -- Transaction was not mined within 750 seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!.

    at /home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:365:1
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at Migration._deploy (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:70:1)
    at Migration._load (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:56:1)
    at Migration.run (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:217:1)
    at Object.runMigrations (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/migrate/index.js:150:1)
    at Object.runFrom (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/migrate/index.js:110:1)
    at Object.run (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/migrate/index.js:87:1)
    at runMigrations (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:258:1)
    at Object.run (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:223:1)
    at Command.run (/home/robin/Documents/backup/nft-demo/node_modules/truffle/build/webpack:/packages/core/lib/command.js:172:1)
Truffle v5.4.8 (core: 5.4.8)
Node v12.18.2

Here is a transaction example https://polygonscan.com/tx/0x9fdb1d9418ed6b430f3e54255f05b92801e80cf28dc2612dcaa44c53b19ddbe5

Don't we need to set gasPrice or gas in the matic provider ?

Thanks,

i ma getting an error after i run 'node scripts/runScript.js'

i ma getting an error after i run 'node scripts/runScript.js'
Error occured while storing data to file Error: Configuration property "ipfsFile.location" is not defined
at Config.get (C:\Windows\System32\nft-demo\node_modules\config\lib\config.js:182:11)
at storeDataToFile (C:\Windows\System32\nft-demo\scripts\ipfsHelper.js:10:50)
at pinFileToIPFS (C:\Windows\System32\nft-demo\scripts\pinFileToIPFS.js:29:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Successfully added IPFS response to json file
it dose not create in data folder ipfsHash.json file

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.