Coder Social home page Coder Social logo

evm-inscription-mint's Introduction

兼容EVM链的铭文自动化Mint脚本

🛠 使用说明

Step 1: 首先安装 nodejs

先去 Nodejs 官网下载安装自己电脑操作系统对应的版本

https://nodejs.org/en

然后看一下安装的版本,是否安装成功

node -v
npm -v

如果你更喜欢使用 yarn 则安装 yarn

npm i -g yarn

Step 2: 下载脚本源代码

先用 git clone 源代码到本地

git clone https://github.com/sfter/evm-inscription-mint.git

cd evm-inscription-mint

如果是 Windows 电脑没有安装 git,先去下面网站下载安装 git 软件

https://gitforwindows.org

Step 3: 重命名当前目录下的 config.js.example 为 config.js 文件

cp config.js.example config.js

Step 4: 修改当前目录下的 config.js 配置文件

const config = {
    // 你想要打多少张,这里就设置多少,建议单次别超过 50,不然容易不上链
    repeatCount: 1,

    // 在当前的 gas 基础上增加多少倍
    increaseGas: 1.2,

    // 你钱包的私钥
    privateKey: "",

    // 铭文json数据(替换成你想打的铭文json格式数据)
    tokenJson: 'data:,{"p":"fair-20","op":"mint","tick":"fair","amt":"1000"}',

    // RPC结点(兼容 evm 链都行)打哪条链就用哪条链的节点地址
    // eth =>  https://mainnet.infura.io/v3
    // arb => https://arb1.arbitrum.io/rpc
    // polygon => https://polygon-rpc.com
    // op => https://mainnet.optimism.io
    // linea => https://mainnet.infura.io/v3
    // scroll => https://rpc.scroll.io
    // zks => https://mainnet.era.zksync.io
    rpcUrl: "https://arb1.arbitrum.io/rpc"
}

Step 5: 安装依赖包

npm i

or

yarn install

Step 6: 运行 Mint 脚本程序

node index.js

or

yarn start

or

npm run start

evm-inscription-mint's People

Contributors

sfter avatar bling666-huang 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.