Coder Social home page Coder Social logo

cosmos-inscriptions-mint's Introduction

$injs 铭文自动化 Mint 脚本

本脚本是参考 alfar0x 修改而来,根据 $injs 新版规则进行适当的调整并做了一些简单的修改和优化。

🛠 使用说明

特别注意:这个脚本我还没有经过正式测试过,所以大家使用的时候一定要先小资金Mint几个,然后对比一下链上交易数据,是否符合预期,确定没问题后再继续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/cosmos-inscriptions-mint.git

cd cosmos-inscriptions-mint

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

https://gitforwindows.org

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

cp config.injs.example.js config.js

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

主要配置以下几个参数,其它的参数不需要修改,大多数时候其实你只修改 RPC 这个参数,最好使用私人节点。

// 这下面的配置根据当前网络情况进行调整
// injective RPC 结点服务器地址
// 可以从 https://cointool.app/rpcServer/cosmos?name=injective 获取
// 节点如果报错,就打开上面网址选择一个可用的 RPC 服务器地址替换
export const RPC = "https://injective-rpc.lavenderfive.com";

// GAS 费修改,根据当前网络情况视频情况调整
export const GAS = 150000;

// 铸造原生代币的交易费用
export const FEE_NATIVE = 0.0003;

// 自己给自己的转帐金额(原来是 0.03,现在免费了,只要转任意金额就行)
export const MINT_AMOUNT_NATIVE = 0.0000000001;

// mint 参数配置
// injs 铭文的 base64 编号,注意一定要保持跟官方一致,具体到 https://docs.injs.ink/mint-injs 查看。
// data:,{"p":"injrc-20","op":"mint","tick":"INJS","amt":"1000"}
// 先前是1张2000个,现在改成了 1000个
export const MEMO =
    "ZGF0YToseyJwIjoiaW5qcmMtMjAiLCJvcCI6Im1pbnQiLCJ0aWNrIjoiSU5KUyIsImFtdCI6IjEwMDAifQ==";

// MINT 次数,如果为 0 则会一直 Mint(但最大Mint最大次数由下面的 MAX_MINT_MINT 设置
export const MINT_COUNT = 0

// 最大 Mint 次数(默认为 10000)
export const MAX_MINT_COUNT = 10000

Step 5: 安装依赖包

npm i

or

yarn install

Step 6: 准备好 injective 钱包

  • 先安装好 keplr 钱包,从如下地址安装 injective 钱包扩展插件
  • https://chrome.google.com/webstore/detail/dmkamcknogkgcdfhhbddcghachkejeap
  • 通过 keplr 钱包创建好 injective 钱包,最好创建多个钱包 Mint,提升效率
  • 从交易所或者其它钱包向新钱包地址充值一定数量的 $inj
  • 从 keplr 钱包导出助记词和钱包地址
  • 在 cosmos-inscriptions-mint 源代码目录创建一个 input 目录
  • 在 input 目录下创建一个 accounts.txt 文件
  • 在 accounts.txt 文件里输入你的助记词钱包和钱包地址,一定要对应好
  • accounts.txt 文件内容格式如下,助记词,钱包地址
steak young choice camera between typical tackle draft chat orient domain kitten,inj1nefwcgld34r3p4r5ztc67smfjfp8qqrfk44ecf
steak young choice camera between typical tackle draft chat orient domain kitten,inj1nefwcgld34r3p4r5ztc67smfjfp8qqrfk44ecf
steak young choice camera between typical tackle draft chat orient domain kitten,inj1nefwcgld34r3p4r5ztc67smfjfp8qqrfk44ecf
steak young choice camera between typical tackle draft chat orient domain kitten,inj1nefwcgld34r3p4r5ztc67smfjfp8qqrfk44ecf
steak young choice camera between typical tackle draft chat orient domain kitten,inj1nefwcgld34r3p4r5ztc67smfjfp8qqrfk44ecf

Step 7: 运行 Mint 脚本程序

node scripts/mint.js

or

npm run mint

or

yarn mint

cosmos-inscriptions-mint's People

Contributors

sfter 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.