Git Product home page Git Product logo

propmacboorsp / lido-withdrawals-automation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from status-im/lido-withdrawals-automation

0.0 0.0 0.0 100 KB

Lido Withdrawals Automation is a command-line tool that assists with the LIDO validators withdrawal process. The tool streamlines the procedure by fetching validators data, generating withdrawal messages, signing them with a remote signer, encrypting the signed messages, and saving them to the output folder.

Home Page: https://stakely.io

License: MIT License

JavaScript 100.00%

lido-withdrawals-automation's Introduction

License: MIT GitHub package.json version GitHub issues GitHub stars

Lido Withdrawals Automation by Stakely.io

Lido Withdrawals Automation is a command-line tool that assists with the LIDO validators withdrawal process. The tool streamlines the procedure by fetching validators data, generating withdrawal messages, signing them with a remote signer or keymanagerAPI, encrypting the signed messages, and saving them to the output folder.

lido_withdrawals_automation

Features

  • Fetches validator data from the Kapi endpoint
  • Creates withdrawal messages and signs them using the remote signer or the Keymanager API
  • Encrypts the signed messages using the specified password
  • Saves the encrypted messages to a specified output folder

Prerequisites

  • Node.js >= v18.x
  • Access to a local kAPI endpoint
  • Access to a web3 remote signer endpoint or Keymanager API endpoint
  • Access to a beacon node endpoint

Installation

  1. Clone the repository:
git clone https://github.com/Stakely/lido-withdrawals-automation.git
  1. Change to the project directory:
cd lido-withdrawals-automation
  1. Install the dependencies:
npm install

Configuration

Create a .env file in the project root folder and set the following environment variables:

PERCENTAGE=<percentage_of_validators_to_withdraw>
KAPI_URL=<kapi_endpoint_url>
REMOTE_SIGNER_URL=<remote_signer_url>
KEYMANAGER_URLS=<keymanagerapi_url>
PASSWORD=<password_to_encrypt_signed_messages>
OUTPUT_FOLDER=<path_to_output_folder>
OPERATOR_ID=<operator_id>
BEACON_NODE_URL=<beacon_node_url>
MODULE_ID=<module_id>
KEYMANAGER_TOKEN_FILE=<keymanager_token_file>
OVERWRITE=<always | never | prompt> (default is `prompt`)

Replace the placeholders with your actual values. For example:

PERCENTAGE=10
KAPI_URL=https://example.com/kapi
REMOTE_SIGNER_URL=https://remotesigner.local:8080
KEYMANAGER_URLS="https://example.com/, https://example2.com/"
PASSWORD=mysecretpassword
OUTPUT_FOLDER=/path/to/your/output-folder
OPERATOR_ID=123
BEACON_NODE_URL=http://localhost:5052
MODULE_ID=1
KEYMANAGER_TOKEN_FILE="./token"
OVERWRITE="always"

Usage

Run the script using the following command:

npm start

The script will check the environment variables and prompt you for any missing values. After providing the required information, the script will fetch validator data, create withdrawal messages, sign them, encrypt the signed messages, and save them to the output folder.

Contributing

Feel free to submit issues, feature requests, or pull requests to contribute to this project.

About Stakely

Stakely is a professional Staking-as-a-Service company based in Spain, specializing in Proof-of-Stake blockchains. Since our launch in 2018, we have enhanced our infrastructure, monitoring, and automation systems to provide optimal performance and security measures for over 40 blockchains.

To learn more about Stakely and our services, visit our website.

License

This project is released under the MIT License.

MIT License

Copyright (c) 2023 Stakely

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

lido-withdrawals-automation's People

Contributors

antotg avatar zah avatar martinnikov avatar iicc1 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.