Skip to main content
Install the Fireblocks Documentation MCP first. Whether you’re using an AI assistant or not, this makes it easy to search, reference, and keep your Fireblocks work grounded in the official docs. The setup steps are in Getting Started.
A Python developer can use the Fireblocks API easily with the official Python SDK: In this guide, you’ll set up the Fireblocks Python SDK and see an example of a basic API script to create a vault and print its data. Additionally if you are developing on EVM chains - you might be using some of the familiar library, such as web3.py - Fireblocks is well integrated into these libraries as described in the Local JSON RPC guide.

Using the Fireblocks SDK

Install Python 3.8 or newer

The Fireblocks Python SDK requires Python 3.8 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 py-sdk

The Fireblocks Python SDK is open-source and hosted on both GitHub and PIP, the official package repository. Installing the latest SDK is easy with pip: pip install fireblocks

Your First Fireblocks Python script!

Use the correct API Base URLMake sure you’re using the correct value for the API base URL for your environment:
  • For Sandbox workspaces: BasePath.Sandbox
  • For US Mainnet or Testnet workspaces: BasePath.US
  • For EU Mainnet or Testnet workspaces: BasePath.EU
  • For EU2 Mainnet or Testnet workspaces: BasePath.EU2

Import

For this basic example, we should import the following from the fireblocks module:

Load your API Secret and API key

Build the configuration

Create a new vault account