Skip to content

xiaojia21190/viem-evm-inscription-mint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

🛠 使用说明

Step 1: 修改src目录下的 config.ts 配置文件

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 2: 安装依赖包

npm i

or

pnpm install

Step 3: 运行 Mint 脚本程序

pnpm start

or

npm run start

About

兼容 evm 的铭文 Mint 工具 viem实现

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published