/ada_staking

Cardano Staking on Fireblocks

Primary LanguagePythonMIT LicenseMIT

Ada Staking

About

This repository contains the SDK for staking Cardano in Fireblocks by using one of Fireblocks' supported staking providers.

NOTE: This SDK uses Fireblocks RAW signing. Kindly note that running this SDK is on your own responsibility. Fireblocks team is here for any assistance and guidance.

Usage

Before You Begin

Make sure you have the credentials for Fireblocks API Services. Otherwise, please contact Fireblocks support for further instructions on how to obtain your API credentials.

Requirements

Python and pip installed

Installation

Clone the repository:

git clone https://github.com/fireblocks/ada_staking.git

Update the following parameters in the staking.py file:

  1. apiKey - your Fireblocks API key
  2. apiSecret - the path to your API secret key file

Run: pip3 install -r requirements.txt

Usage: staking.py -v <VAULT_ACCOUNT_ID> -k <BLOCKFROST_API_KEY> -n {testnet, mainnet} {register,deregister,query-rewards,withdraw-rewards,delegate}

If the operation is delegate, please make sure to add -p <STAKING_POOL_ID>