irisnet / faucet

Faucet service for Irishub Testnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Faucet

Faucet service for Irishub Testnet

Captcha

使用阿里云云盾·数据风控,详细信息参考https://help.aliyun.com/product/28308.html?spm=a2c4g.11186623.3.1.RaHrKG

生成appkey替换templates/index.html第20行appkey的值

ENV Variables

环境变量如下,ACCESS_KEY、ACCESS_SECRET、APP_KEY、SCENE为Captcha配置。其余参数如下:

  1. NAME,faucet账户名
  2. CHAIN_ID,测试网络chain id
  3. ACCOUNT,faucet account address
  4. PASSWORD,faucet账户密码
  5. NODE,测试网络节点
  6. AMOUNT,转币数量
  7. FEE,网络费用

RUN

python3 main.py

Docker

docker build -t faucet ./
docker run -p 4000:4000 -e ${ENV Variables} faucet

进入docker container或通过docker exec -it执行如下命令新建或恢复faucet账户,

iriscli keys add faucet (--recover)

并给faucet账号转入一定数量的token。

About

Faucet service for Irishub Testnet


Languages

Language:Python 48.3%Language:HTML 31.5%Language:Shell 15.5%Language:Dockerfile 4.7%