- The Fireblocks Python SDK.
- A standard HTTP library such as http.client or Requests.
Using the Fireblocks SDK
Install Python 3.6 or newer
The Fireblocks Python SDK requires Python 3.6 or newer. You can check which version of Python you already have installed with the following command.python --version or python3 --version
Learn how to install or update Python to a newer version.
Install fireblocks-sdk
The Fireblocks Python SDK is open-source and hosted on both GitHub and PIP, the official package repository.- Source code: https://github.com/fireblocks/fireblocks-sdk-py
- Python Package: https://pypi.org/project/fireblocks-sdk/
pip:
pip install fireblocks-sdk
Your First Fireblocks Python script!
Now that you’re set up, run a quick check for the API. The script will query existing vaults, create a new vault and then query again to see that the vaults were created. The requests-based implementation will require some library dependencies:Use the correct API Base URLDepending on the script, make sure you’re using the correct value for
base_url for your environment:- For Sandbox workspaces:
https://sandbox-api.fireblocks.io - For Mainnet or Testnet workspaces:
https://api.fireblocks.io