npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@solana/keychain-fireblocks

v1.2.0

Published

Fireblocks-based signer for Solana transactions

Downloads

5,477

Readme

@solana/keychain-fireblocks

Fireblocks-based signer for Solana transactions using Fireblocks' institutional custody API.

Installation

pnpm add @solana/keychain-fireblocks

Prerequisites

  1. A Fireblocks account with API access
  2. A vault account with Solana (SOL) asset configured
  3. An API user with signing permissions and RSA 4096 private key

Follow the Fireblocks documentation to get started.

Usage

Basic Setup

import { createFireblocksSigner } from '@solana/keychain-fireblocks';

const signer = await createFireblocksSigner({
    apiKey: 'your-fireblocks-api-key',
    privateKeyPem: `-----BEGIN PRIVATE KEY-----
...your RSA 4096 private key...
-----END PRIVATE KEY-----`,
    vaultAccountId: '0',
});

console.log('Signer address:', signer.address);

Signing Transactions

import { pipe, signTransaction, createTransaction } from '@solana/kit';

// Create your transaction
const transaction = pipe(
    createTransaction({ version: 0 }),
    // ... add instructions
);

// Sign the transaction
const signedTransaction = await signTransaction([signer], transaction);

Signing Messages

import { signMessage } from '@solana/signers';

const message = new TextEncoder().encode('Hello, Solana!');
const signature = await signMessage([signer], message);

With Program Call Mode

By default, the signer uses RAW signing (signs bytes, you broadcast). Enable useProgramCall to have Fireblocks broadcast the transaction:

const signer = await createFireblocksSigner({
    apiKey: 'your-fireblocks-api-key',
    privateKeyPem: '...',
    vaultAccountId: '0',
    useProgramCall: true, // Fireblocks signs and broadcasts the transaction to Solana
});

With Devnet

const signer = await createFireblocksSigner({
    apiKey: 'your-fireblocks-api-key',
    privateKeyPem: '...',
    vaultAccountId: '0',
    assetId: 'SOL_TEST', // Use devnet asset
});

Configuration

FireblocksSignerConfig

| Field | Type | Required | Default | Description | |-------|------|----------|---------|-------------| | apiKey | string | Yes | - | Fireblocks API key (X-API-Key header) | | privateKeyPem | string | Yes | - | RSA 4096 private key in PEM format for JWT signing | | vaultAccountId | string | Yes | - | Fireblocks vault account ID | | apiBaseUrl | string | No | https://api.fireblocks.io | Custom API base URL | | assetId | string | No | SOL | Asset ID (SOL for mainnet, SOL_TEST for devnet) | | pollIntervalMs | number | No | 1000 | Polling interval in ms when waiting for transaction completion | | maxPollAttempts | number | No | 60 | Maximum polling attempts before timeout | | requestDelayMs | number | No | 0 | Delay in ms between concurrent signing requests | | useProgramCall | boolean | No | false | When true, Fireblocks broadcasts the transaction |

How It Works

  1. Initialization: Fetches the vault account's Solana address from Fireblocks API
  2. JWT Authentication: Signs API requests with RS256 JWT using your RSA private key
  3. Transaction Creation: Creates a signing transaction in Fireblocks (RAW or PROGRAM_CALL operation)
  4. Signature Extraction: Extracts the Ed25519 signature from the completed transaction/message

Signing Modes

  • RAW (default): Signs the message bytes only. You receive the signature and broadcast the transaction yourself.
  • PROGRAM_CALL: Fireblocks signs and broadcasts the transaction to Solana. The txHash is returned in the response.

Security Considerations

  1. Private Key Security: The RSA private key should never be committed to source control. Use environment variables or secure secret management.
  2. API Key Rotation: Rotate API keys periodically according to your security policy.
  3. Policy Engine: Configure Fireblocks Transaction Authorization Policy (TAP) to enforce signing rules.

License

MIT