AI prompts
base on Celestia(tia) 公链铭文 cias mint 脚本 # Celestia(tia) 公链铭文 cias mint 脚本
## 代码参考 [qzz0518/coss](https://github.com/qzz0518/coss)
### Step 1: 安装
```
git clone https://github.com/sfter/cias-mint
yarn install
cp .env.example .env
```
### Step 2: 配置环境变量
在脚本源代码目录下修改 .env 文件
```bash
# rpc配置, 可以从 https://atomscan.com/directory/celestia 找到自己喜欢的节点服务器
NODE_URL=https://public-celestia-rpc.numia.xyz
# NODE_URL=https://celestia-rpc.mesa.newmetric.xyz
# 主钱包(资金钱包)私钥, 用于转账给其它真正用来 Mint 的钱包
PRIVATE_KEY=
# 生成钱包配置,按需配置
# 生成多少个 Mint 钱包
NUM_OF_WALLETS=5
# 真正 Mint 的钱包文件,所有生成的钱包都在这个文件里
WALLET_JSON_FILE=wallets.json
# celestia配置(可以不用动)
CHAIN_SYMBOL=celestia
TOKEN_DENOM=utia
TOKEN_DECIMAL=1000000
# 从主钱包(资金钱包)转多少个 TIA 到 每个真正 Mint 的钱包
TOKEN_TRANSFER_AMOUNT=2
# gas 配置, 按需修改
GAS_PRICE=10000
GAS_LIMIT=100000
# mint配置, 一定要根据官方参数配置
MINT_AMOUNT=10000
# 铭文代币名称
TICK=cias
# 协议类型
PROTOCOL=cia-20
# 每个钱包 mint 次数
MINT_TIMES=10
```
### Step 3: 批量生成 Mint 钱包
```bash
node wallet_gen.js
```
### Step 4: 从主钱包(资金钱包)批量转帐到 Mint 钱包
```bash
node transfer.js
```
### Step 5: 运行 Mint 程序开始 Mint
```bash
node mint.js
```
### 特别说明
如果 keplr 钱包导不出私钥,可以通过如下方法来做
> - 先把 .env 文件配置好,PRIVATE_KEY 留空。
>
>
> - 使用 node wallet_gen.js 生成钱包
>
>
> - 打开当前目录下的 wallet.json 文件
>
>
> - 选择其中任意一个钱包做为主钱包。
>
>
> - 打开 keplr 钱包,向你在上面第4步选择的钱包地址转一些 $TIA 进去。
>
>
> - 将上面第4步选择的钱包地址配置到 .env 文件里的 PRIVATE_KEY 字段里。
>
>
> - 执行 node transfer.js 将会从上面第4步选择的钱包向其它 Mint 的钱包批量转帐。
>
>
> - 执行 node mint.js 开始批量 Mint,完成 OK。
", Assign "at most 3 tags" to the expected json: {"id":"6105","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"