Skip to content

NJOK/evm-inscription-mint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

兼容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

About

兼容 evm 的铭文 Mint 工具

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%