Socket
Book a DemoInstallSign in
Socket

@fireblocks/embedded-wallet-sdk

Package Overview
Dependencies
Maintainers
10
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fireblocks/embedded-wallet-sdk

Fireblocks embedded wallet sdk

0.0.24
latest
npmnpm
Version published
Weekly downloads
5.2K
-15.77%
Maintainers
10
Weekly downloads
 
Created
Source

Embedded Wallet JS SDK

The Embedded Wallet JS SDK allows you to integrate wallet functionalities into your application seamlessly.

Installation

To install the SDK, use npm or yarn:

npm install @fireblocks/embedded-wallet-js-sdk

or

yarn add @fireblocks/embedded-wallet-js-sdk

Usage

Importing the SDK

First, import the SDK into your project:

import { EmbeddedWallet } from "@fireblocks/embedded-wallet-sdk";

Initializing the Wallet

Initialize the wallet with your configuration:

const ew = new EmbeddedWallet({
	env: "production",
	authClientId: process.env.AUTH_CLIENT_ID,
	authTokenRetriever: {
		getAuthToken: () => authManager.getAccessToken(),
	},
});

Creating New Account

const { accountId } = await ew.createAccount();

Adding New Asset

To add a new asset

const { address } = await ew.addAsset(accountId, "BTC");

Making a Transaction

To make a transaction:

import { getFireblocksNCWInstance } from "@fireblocks/ncw-js-sdk";

const { id } = await ew.createTransaction({
	assetId: "BTC",
	source: {
		id: "0",
	},
	destination: {
		type: "VAULT_ACCOUNT",
		id: "0",
	},
	amount: "8",
});

const core = getFireblocksNCWInstance(deviceId);
await core.signTransaction(id);

FAQs

Package last updated on 18 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.