Giter Site home page Giter Site logo

fortafastdeposit's Introduction

forta合约批量交互


使用说明

  • 请自行检阅与构建代码

  • 目前提供 质押 与 解除质押 的操作

config.conf 下输入填入需要签名的私钥 ( 执行合约操作的私钥 ) 与 Polygon的RPC地址

addr.txt 中输入要质押的地址,每行一个

使用 go build main.go编译成可执行程序 main.go

使用 main.exe -a 需要执行的操作 -f 地址文件路径 -c 配置文件路径 执行

  • -a 操作类型,stake 为质押,unStake 为解除质押
  • -f 地址文件路径
  • -c 配置文件路径

配置文件示例:

contractOwnerPriKey = "=="
rpcClient           = "https://polygon-mainnet.infura.io/v3/=="
gasLimit            = 450000

第一行为私钥

第二行为RPC地址

第三行为gasLimit

为防止网络拥堵,默认1s提交一个!!!

运行结果示例

image

fortafastdeposit's People

Contributors

ty01528 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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