Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fireblocks-sdk

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fireblocks-sdk - npm Package Compare versions

Comparing version 1.0.8 to 1.0.10

24

dist/fireblocks-sdk.d.ts

@@ -1,2 +0,2 @@

import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, WalletAssetResponse, DepositAddressResponse } from "./types";
import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, WalletAssetResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse } from "./types";
export declare class FireblocksSDK {

@@ -39,2 +39,8 @@ private authProvider;

/**
* Generates a new address for an asset in a vault account.
* @param vaultAccountId The vault account ID.
* @param assetId The ID of the asset for which to get the deposit address.
*/
generateNewAddress(vaultAccountId: string, assetId: string, description?: string): Promise<GenerateAddressResponse>;
/**
* Gets all exchange accounts for your tenant.

@@ -49,2 +55,18 @@ */

/**
* Transfer from a main exchange account to a subaccount.
* @param exchangeAccountId The exchange ID in Fireblocks.
* @param subaccountId The ID of the subaccount in the exchange.
* @param assetId The asset to transfer.
* @param amount The amount to transfer.
*/
transferToSubaccount(exchangeAccountId: string, subaccountId: string, assetId: string, amount: number): Promise<OperationSuccessResponse>;
/**
* Transfer from a subaccount to a main exchange account.
* @param exchangeAccountId The exchange ID in Fireblocks.
* @param subaccountId The ID of the subaccount in the exchange.
* @param assetId The asset to transfer.
* @param amount The amount to transfer.
*/
transferFromSubaccount(exchangeAccountId: string, subaccountId: string, assetId: string, amount: number): Promise<OperationSuccessResponse>;
/**
* Gets a list of transactions matching the given filter.

@@ -51,0 +73,0 @@ * @param filter.before Only gets transactions created before a given timestamp (in seconds).

@@ -78,2 +78,12 @@ "use strict";

/**
* Generates a new address for an asset in a vault account.
* @param vaultAccountId The vault account ID.
* @param assetId The ID of the asset for which to get the deposit address.
*/
generateNewAddress(vaultAccountId, assetId, description) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}/addresses`, { description });
});
}
/**
* Gets all exchange accounts for your tenant.

@@ -96,2 +106,34 @@ */

/**
* Transfer from a main exchange account to a subaccount.
* @param exchangeAccountId The exchange ID in Fireblocks.
* @param subaccountId The ID of the subaccount in the exchange.
* @param assetId The asset to transfer.
* @param amount The amount to transfer.
*/
transferToSubaccount(exchangeAccountId, subaccountId, assetId, amount) {
return __awaiter(this, void 0, void 0, function* () {
const body = {
subaccountId,
amount
};
return yield this.apiClient.issuePostRequest(`/v1/exchange_accounts/${exchangeAccountId}/${assetId}/transfer_to_subaccount`, body);
});
}
/**
* Transfer from a subaccount to a main exchange account.
* @param exchangeAccountId The exchange ID in Fireblocks.
* @param subaccountId The ID of the subaccount in the exchange.
* @param assetId The asset to transfer.
* @param amount The amount to transfer.
*/
transferFromSubaccount(exchangeAccountId, subaccountId, assetId, amount) {
return __awaiter(this, void 0, void 0, function* () {
const body = {
subaccountId,
amount
};
return yield this.apiClient.issuePostRequest(`/v1/exchange_accounts/${exchangeAccountId}/${assetId}/transfer_from_subaccount`, body);
});
}
/**
* Gets a list of transactions matching the given filter.

@@ -98,0 +140,0 @@ * @param filter.before Only gets transactions created before a given timestamp (in seconds).

@@ -45,2 +45,6 @@ export interface VaultAccountResponse {

}
export interface GenerateAddressResponse {
address: string;
tag?: string;
}
export interface TransactionArguments {

@@ -98,2 +102,5 @@ assetId: string;

}
export interface OperationSuccessResponse {
success: boolean;
}
export interface TransactionFilter {

@@ -100,0 +107,0 @@ before?: number;

2

package.json
{
"name": "fireblocks-sdk",
"version": "1.0.8",
"version": "1.0.10",
"main": "dist/fireblocks-sdk.js",

@@ -5,0 +5,0 @@ "types": "dist/fireblocks-sdk.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc