Code Monkey home page Code Monkey logo

nftweb3's Introduction

安装项目依赖

npm install

本地创建ipfs服务用于上传电影信息

npm install -g ipfs
jsipfs init
jsipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '[\"*\"]'
jsipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials true
jsipfs daemon

运行项目

npm start

开发流程

  • 编写合约脚本/src/contracts/Czy.sol
  • 部署合约到Goerli test net
//部署合约到Goerli脚本
npx hardhat run scripts/deploy.js --network 
  • 查看是否创建成功登录 Goerli Testnet Network 输入ERC721 contract
    0xe5aAD39C3C73a3254c232Ed6F6Fb4eAA10c93943 进行查询合约
  • 使用@web3-react/core,@web3-react/injected-connector插件连接钱包地址,获取钱包信息
  • 使用@ethersproject/contracts,@ethersproject/providers获取NFT信息,铸币
  • 使用ipfs-http-client连接ipfs存储NFT相关信息

nftweb3's People

Contributors

609067409 avatar

Watchers

 avatar

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.