Giter Club home page Giter Club logo

cardano-skepsis-toolbox's Introduction

cardano-skepsis-toolbox

A cardano-cli based toolbox written in Python. Cardano-node must be running and environment paths exported.

Toolbox for various cardano related operations.

  1. Send native tokens/nfts to a number of addresses or staking addresses
  2. Monitor a payment address for incoming payments and return tokens or refunds
  3. Withdraw rewards from pool
  4. Send ADA simple transaction
  5. Send ADA and native tokens to one destination
  6. Generate SPO certificates and register on blockchain
  7. Rotate KES keys

Installation:

  1. Install Python3: sudo apt install python3
  2. Install pip for python3: sudo apt-get install build-essential libssl-dev libffi-dev python-dev / sudo apt install python3-pip
  3. Optional: Install venv for python3: sudo pip3 install virtualenv
  4. Optional: python3 -m venv venv
  5. Optional: source venv/bin/activate
  6. pip install --upgrade pip
  7. pip install -r requirements.txt

Testing: In a terminal (Optional: with the virtual environment venv activated (Step 2 of installation)): python -m unittest

USAGE: To withdraw all pool rewards to a payment address: python3 withdraw_rewards.py --payment-addr-file --payment-skey-file --stake-addr-file --stake-skey-file --sign / --submit < Signing has to be done without internet connection, submitting with internet connection > < Also stake skey has to be removed before submitting >

To send only ADA from payment address to destination: python3 sendADA.py --payment-addr-file --payment-skey-file --destination --amount-lovelace

To send multiple assets and ada to multiple recipients: Edit config.json Create recipient list with Objects from Class cardano_cli_helper/Recipient Run send_assets_to_recipients.py

To monitor an address for incoming payments so that tokens are returned (run as a service): Edit config.json Run monitor_addr_service.py

To get_delegators_stake.py (Run as a crontab job every epoch): Edit config.json Run get_delegators_stake.py

To send multiple tokens to a destination: python3 sendTokens.py --payment-addr-file --payment-skey-file --destination --amount-lovelace --token-policy-id [Space separated list of token policies] --token-amount [Space separated list of amounts per token policy ID] --network

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.