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.
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.
Python and pip installed
Clone the repository:
git clone https://github.com/fireblocks/ada_staking.git
Update the following parameters in the staking.py file:
- apiKey - your Fireblocks API key
- 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>