> ## Documentation Index
> Fetch the complete documentation index at: https://developers.fireblocks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started

> Install the Fireblocks Documentation MCP, then use an SDK or the Fireblocks CLI to make your first Fireblocks API calls.

By the end of this guide, you will have:

* Connected your agent to the Fireblocks docs
* Created and approved an API user
* Initialized the Fireblocks SDK or CLI
* Created a vault account
* Sent your first transaction

## Step 0: Connect your AI agent to Fireblocks docs

Before you start, install the **Fireblocks Documentation MCP** so your agent (Cursor, Claude Code, Codex, or other) can access docs in real time to ensure up to date, accurate implementation context.

> [tab] Cursor
>
> [Click here to add the Fireblocks Documentation MCP to Cursor.](https://cursor.com/en/install-mcp?name=fireblocks-docs\&config=eyJ1cmwiOiJodHRwczovL2RldmVsb3BlcnMuZmlyZWJsb2Nrcy5jb20vbWNwIn0=)
>
> > [!TIP]
> >
> > If the install link doesn't open in your environment, open Cursor's MCP installer manually and point it at `https://developers.fireblocks.com/mcp`.

> [tab] Claude Code
>
> ```bash theme={"system"}
> claude mcp add --transport http fireblocks-docs https://developers.fireblocks.com/mcp
> ```

> [tab] Codex
>
> ```bash theme={"system"}
> codex mcp add fireblocks-docs --url https://developers.fireblocks.com/mcp
> ```

> [tab] Other
>
> Use the Fireblocks Documentation MCP endpoint:
>
> `https://developers.fireblocks.com/mcp`

## Step 1: Set up API authentication

Fireblocks authenticates API requests with **JWT signatures**. Each request is signed with an **API secret key** (RSA private key) that stays in your environment. Fireblocks stores only the matching **public key**, which you register when you create the API user by uploading a **Certificate Signing Request (CSR)**.

### How signing works

| Component | Location | Purpose |
| - | - | - |
| **API secret key** (private key) | Your environment only | Signs every API request to prove it came from you |
| **Public key** | Fireblocks | Verifies that requests were signed by your secret key |

Your API secret **never** leaves your environment. Fireblocks only receives your public key. We cannot sign requests on your behalf, and a compromised Fireblocks system would not expose your credentials.

### Generate a CSR and secret key

You will create:

* A **secret key** file that stays in your environment and signs requests
* A **CSR** file containing the corresponding public key, which you upload in the Console

1. (Windows users) Install **Win32OpenSSL** using the default settings.
2. (Windows users) Open OpenSSL Command Prompt.
3. In your CLI, run:

```bash Shell theme={"system"}
openssl req -new -newkey rsa:4096 -nodes -keyout fireblocks_secret.key -out fireblocks.csr -subj '/O=<your_organization>'
```

This command creates:

* **fireblocks\_secret.key** — your RSA 4096 private key (API secret)
* **fireblocks.csr** — the CSR you upload when creating the API user

Both files are written to the current working directory. Replace `<your_organization>` with any string that identifies your organization (for example, `/O=Acme Corp`). The value is only used as the CSR's Organization field and does not need to match anything in the Fireblocks Console.

4. Store the secret key file securely.

### Create an API user (API key)

> [!NOTE]
>
> If you’re using a Sandbox environment, you can skip this subsection. Sandboxes come with an API user already created and access to the [Communal Test Co-signer](https://developers.fireblocks.com/cosigners/overview/use-communal-cosigner.md).

To create an API key with a signing role:

1. In the Fireblocks Console, go to **Developer Center** > **API Users**.
2. Select **Add API user**.
3. Name the API user, select the appropriate workspace role for it (e.g., Signer if you want it to sign transactions), and upload the `fireblocks.csr` file you generated above.
4. Select **Add user**.

After the request to add the API user is approved, it will appear in the API users list. You'll receive an **API Key** (API User ID), a unique identifier for the API user that you'll use alongside your secret key.

## Choose your path: SDK or CLI

From **Step 2** onward, the guide splits into two tracks that share the same API credentials. Pick the one that matches what you're building:

* **SDK** — for application code (apps, services, backends) where you ship typed, maintainable Fireblocks integrations. **Recommended for production.**
* **Fireblocks CLI** — for fast workspace operations, exploration, scripts, CI, and operator/agent workflows. Lets your AI agent propose exact commands you can review and run.

Steps **3 through 5** each use two synced tabs. Pick **SDK** or **CLI** once and the choice carries through the rest of the guide. The SDK and CLI are not mutually exclusive; you can use both in the same workspace.

## Step 2: Initialize the SDK or CLI

Pick the tab that matches your track. The same choice will apply to Steps 3–5.

> [tab] SDK
>
> Fireblocks provides official SDKs for multiple languages:
>
> * [TypeScript SDK](https://github.com/fireblocks/ts-sdk)
> * [Python SDK](https://github.com/fireblocks/py-sdk)
> * [Java SDK](https://developers.fireblocks.com/reference/java-sdk.md)
>
> Install the appropriate SDK for your environment:
>
> ```bash npm theme={"system"}
> npm install @fireblocks/ts-sdk
> ```
>
> ```bash pip theme={"system"}
> pip install fireblocks-sdk
> ```
>
> ```xml Maven theme={"system"}
> <dependency>
>   <groupId>com.fireblocks.sdk</groupId>
>   <artifactId>fireblocks-sdk</artifactId>
>   <version>33.0.0</version>
> </dependency>
> ```
>
> ```groovy Gradle theme={"system"}
> implementation 'com.fireblocks.sdk:fireblocks-sdk:33.0.0'
> ```
>
> After installing the SDK, initialize the client with:
>
> * Your **API Key** (obtained from the Fireblocks Console after creating the API user)
> * Your **API secret key** (the `fireblocks_secret.key` file from Step 1)
>
> The SDK uses your secret key to sign each API request automatically.
>
> ```typescript TypeScript theme={"system"}
> import { readFileSync } from "fs";
> import { Fireblocks, BasePath, TransferPeerPathType } from "@fireblocks/ts-sdk";
>
> const fireblocks = new Fireblocks({
>   apiKey: "<YOUR_API_KEY>",
>   secretKey: readFileSync("fireblocks_secret.key", "utf8"),
>   basePath: BasePath.Sandbox, // or BasePath.US, BasePath.EU, BasePath.EU2
> });
> ```
>
> ```python Python theme={"system"}
> from fireblocks_sdk import FireblocksSDK
>
> api_key = "<YOUR_API_KEY>"
> with open("fireblocks_secret.key", "r") as f:
>     private_key = f.read()
>
> fireblocks = FireblocksSDK(private_key, api_key)
> ```
>
> ```java Java theme={"system"}
> import com.fireblocks.sdk.BasePath;
> import com.fireblocks.sdk.ConfigurationOptions;
> import com.fireblocks.sdk.Fireblocks;
> import java.nio.file.Files;
> import java.nio.file.Paths;
>
> String apiKey = "<YOUR_API_KEY>";
> String secretKey = Files.readString(Paths.get("fireblocks_secret.key"));
>
> ConfigurationOptions configurationOptions = new ConfigurationOptions()
>     .basePath(BasePath.Sandbox)
>     .apiKey(apiKey)
>     .secretKey(secretKey);
> Fireblocks fireblocks = new Fireblocks(configurationOptions);
> ```
>
> Replace `<YOUR_API_KEY>` with your API Key from the Fireblocks Console. In the TypeScript example, set `basePath` to the environment your workspace is in: `BasePath.Sandbox` for a Sandbox workspace, or `BasePath.US`, `BasePath.EU` or `BasePath.EU2` for a production workspace in that region. Alternatively, leave `basePath` out and set the `FIREBLOCKS_BASE_PATH` environment variable to one of those URLs.

> [tab] CLI
>
> Install the Fireblocks CLI (Node.js 18+ required), then connect it to your workspace:
>
> ```bash theme={"system"}
> npm install -g @fireblocks/fireblocks-cli
> fireblocks --version
>
> fireblocks configure        # paste API key + path to fireblocks_secret.key
> fireblocks whoami           # verify credentials resolve and authenticate
> ```
>
> Other installers (Homebrew, standalone binaries, yarn/pnpm) are documented on the [Fireblocks CLI](https://developers.fireblocks.com/docs/fireblocks-cli.md) page.
>
> > [!TIP]
> >
> > For agent workflows, your agent should run `fireblocks help-index` once to discover commands, and use `--dry-run` on writes. For idempotency, set `externalTxId` in the body when creating transactions and pass `--idempotency-key` on other writes.

## Step 3: Create a Vault Account

A Vault Account is where your assets are securely stored.

> [tab] SDK
>
> ```typescript TypeScript theme={"system"}
> const vaultResponse = await fireblocks.vaults.createVaultAccount({
>   createVaultAccountRequest: { name: "My First Vault" },
> });
> const vault = vaultResponse.data;
> if (!vault.id) throw new Error("Vault account id missing from response");
> console.log(vault);
> ```
>
> ```python Python theme={"system"}
> vault = fireblocks.create_vault_account("My First Vault")
> print(vault)
> ```
>
> ```java Java theme={"system"}
> CreateVaultAccountRequest request = new CreateVaultAccountRequest().name("My First Vault");
> VaultAccount vault = fireblocks.vaults()
>     .createVaultAccount(request, UUID.randomUUID().toString())
>     .get()
>     .getData();
> System.out.println(vault);
> ```

> [tab] CLI
>
> ```bash theme={"system"}
> fireblocks vaults create-vault-account \
>   --data '{"name":"My First Vault"}' \
>   --no-confirm
> ```

You can view the new Vault account in the Console under **Accounts** > **Vault**.

> [!TIP]
>
> If you’re using a Sandbox, your account should come pre-funded. If you need additional funds, see [Receiving funds into your Fireblocks account](https://support.fireblocks.io/hc/en-us/articles/4414266562450-Receiving-funds-into-your-Fireblocks-accounts) for more information.

## Step 4: Create a Transaction

Now that your vault has funds, you can create your first transaction.

> [tab] SDK
>
> ```typescript TypeScript theme={"system"}
> const transactionResponse = await fireblocks.transactions.createTransaction({
>   transactionRequest: {
>     assetId: "ETH_TEST",
>     source: { type: TransferPeerPathType.VaultAccount, id: vault.id },
>     destination: { type: TransferPeerPathType.ExternalWallet, id: "<YOUR_WALLET_ID>" },
>     amount: "0.01",
>     externalTxId: "<YOUR_UNIQUE_ID>", // Optional - Your unique ID; Fireblocks rejects later requests with the same value
>   },
> });
> const transaction = transactionResponse.data;
> console.log(transaction);
> ```
>
> ```python Python theme={"system"}
> transaction = fireblocks.create_transaction({
>     "assetId": "ETH_TEST",
>     "source": { "type": "VAULT_ACCOUNT", "id": vault["id"] },
>     "destination": { "type": "EXTERNAL_WALLET", "id": "<YOUR_WALLET_ID>" },
>     "amount": "0.01",
>     "externalTxId": "<YOUR_UNIQUE_ID>"  # Optional - Your unique ID; Fireblocks rejects later requests with the same value
> })
> print(transaction)
> ```
>
> ```java Java theme={"system"}
> TransactionRequest transactionRequest = new TransactionRequest()
>     .assetId("ETH_TEST")
>     .source(new SourceTransferPeerPath()
>         .type(TransferPeerPathType.VAULT_ACCOUNT)
>         .id(vault.getId()))
>     .destination(new DestinationTransferPeerPath()
>         .type(TransferPeerPathType.EXTERNAL_WALLET)
>         .id("<YOUR_WALLET_ID>"))
>     .amount(new TransactionRequestAmount("0.01"))
>     .externalTxId("<YOUR_UNIQUE_ID>"); // Optional - Your unique ID; Fireblocks rejects later requests with the same value
>
> CreateTransactionResponse transaction = fireblocks.transactions()
>     .createTransaction(transactionRequest, null, null) // Use externalTxId, not an idempotency key, for transactions
>     .get()
>     .getData();
> System.out.println(transaction);
> ```

> [tab] CLI
>
> Preview the request first with `--dry-run`, then execute it. The unique `externalTxId` in the body makes retries safe, because Fireblocks rejects any later transaction with the same value:
>
> ```bash theme={"system"}
> # Preview
> fireblocks transactions create-transaction \
>   --data '{"assetId":"ETH_TEST","amount":"0.01","externalTxId":"<YOUR_UNIQUE_ID>","source":{"type":"VAULT_ACCOUNT","id":"0"},"destination":{"type":"EXTERNAL_WALLET","id":"<YOUR_WALLET_ID>"}}' \
>   --dry-run
>
> # Execute
> fireblocks transactions create-transaction \
>   --data '{"assetId":"ETH_TEST","amount":"0.01","externalTxId":"<YOUR_UNIQUE_ID>","source":{"type":"VAULT_ACCOUNT","id":"0"},"destination":{"type":"EXTERNAL_WALLET","id":"<YOUR_WALLET_ID>"}}' \
>   --no-confirm
> ```

## Step 5: Verify Transactions

To verify your transaction status, use the following.

> [tab] SDK
>
> For Fireblocks transactions:
>
> ```typescript TypeScript theme={"system"}
> const tx = (await fireblocks.transactions.getTransaction({ txId })).data;
> ```
>
> ```python Python theme={"system"}
> tx = fireblocks.get_transaction_by_id(txId)
> ```
>
> ```java Java theme={"system"}
> TransactionResponse tx = fireblocks.transactions().getTransaction(txId).get().getData();
> ```
>
> For external transactions:
>
> ```typescript TypeScript theme={"system"}
> const tx = (await fireblocks.transactions.getTransactionByExternalId({ externalTxId })).data;
> ```
>
> ```python Python theme={"system"}
> tx = fireblocks.get_transaction_by_external_tx_id(externalTxId)
> ```
>
> ```java Java theme={"system"}
> TransactionResponse tx = fireblocks.transactions().getTransactionByExternalId(externalTxId).get().getData();
> ```

> [tab] CLI
>
> ```bash theme={"system"}
> # By Fireblocks transaction ID
> fireblocks transactions get-transaction --tx-id <TX_ID> --json
>
> # By external transaction ID
> fireblocks transactions get-transaction-by-external-id \
>   --external-tx-id <EXTERNAL_TX_ID> --json
> ```

## Next Steps

**CLI**

* [Fireblocks CLI](https://developers.fireblocks.com/docs/fireblocks-cli.md) — install, overview, and quick start
* [CLI Authentication](https://developers.fireblocks.com/docs/cli-authentication.md) — credentials, profiles, and environment variables
* [CLI Usage](https://developers.fireblocks.com/docs/cli-usage.md) — commands, flags, exit codes, and examples

**SDKs**

* [TypeScript SDK](https://developers.fireblocks.com/reference/typescript-sdk.md)
* [Python SDK](https://developers.fireblocks.com/reference/new-python-sdk.md)
* [Java SDK](https://developers.fireblocks.com/reference/java-sdk.md)

**API and platform**

* [API Reference](https://developers.fireblocks.com/reference/api-overview.md) — REST endpoints and request bodies
* [Manage API keys](https://developers.fireblocks.com/docs/manage-api-keys.md) — CSR flow, roles, and rotation
* Automate transaction signing with [API co-signers](https://developers.fireblocks.com/cosigners/overview/cosigner-architecture-overview.md)
* Real-time updates with [webhooks](https://developers.fireblocks.com/reference/webhooks-gettingstarted-configuringwebhooks.md)
