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.
Java developers can use the official Fireblocks Java SDK to interact with the Fireblocks API. Instructions for setup and usage can be found in the repo’s README.md file.

Using the Fireblocks Java SDK

Building the API client library requires:
  1. Java 11+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, execute:
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project’s POM:

Gradle users

Add this dependency to your project’s build file:

Others

At first, generate the JAR by executing:
Then manually install the following JARs:
  • target/fireblocks-sdk-0.0.0.jar
  • target/lib/*.jar

Getting Started

Initiate Fireblocks Client

You can initialize the Fireblocks SDK in two ways: either by setting environment variables or by providing the parameters directly: Using Environment Variables You can initialize the SDK using environment variables from your .env file or by setting them programmatically.
Use the correct API Base URLIn the following script, make sure you’re using the correct value for FIREBLOCKS_BASE_PATH for your environment:
  • For Sandbox workspaces: https://sandbox-api.fireblocks.io
  • For US Mainnet or Testnet workspaces: https://api.fireblocks.io
  • For EU Mainnet or Testnet workspaces: https://eu-api.fireblocks.io
  • For EU2 Mainnet or Testnet workspaces: https://eu2-api.fireblocks.io
Learn more about workspace differences.
Use bash commands to set environment variables:
Execute the following Java code:
Providing Local Variables Alternatively, you can directly pass the required parameters when initializing the Fireblocks API instance:

Examples

Creating a Vault Account

Retrieving Vault Accounts

Creating a Transaction