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

fireblocks-sdk

Package Overview
Dependencies
Maintainers
3
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.5.11 to 1.5.12

3

dist/api-client.d.ts
import { IAuthProvider } from "./iauth-provider";
import { RequestOptions } from "./types";
export declare class ApiClient {

@@ -7,5 +8,5 @@ private authProvider;

issueGetRequest(path: string): Promise<any>;
issuePostRequest(path: string, body: any): Promise<any>;
issuePostRequest(path: string, body: any, requestOptions?: RequestOptions): Promise<any>;
issuePutRequest(path: string, body: any): Promise<any>;
issueDeleteRequest(path: string): Promise<any>;
}

@@ -35,5 +35,6 @@ "use strict";

}
issuePostRequest(path, body) {
issuePostRequest(path, body, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
const token = this.authProvider.signJwt(path, body);
const idempotencyKey = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey;
return yield request_promise_native_1.default.post({

@@ -43,3 +44,4 @@ uri: this.apiBaseUrl + path,

"X-API-Key": this.authProvider.getApiKey(),
"Authorization": `Bearer ${token}`
"Authorization": `Bearer ${token}`,
"Idempotency-Key": idempotencyKey
},

@@ -46,0 +48,0 @@ body: body,

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

import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, WalletAssetResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse, CreateTransferTicketArgs, TransferTicketResponse, TermResponse, ExecuteTermArgs, CreateTransferTicketResponse, EstimateTransactionFeeResponse, EstimateFeeResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, GasStationInfo, MaxSpendableAmountResponse, VaultAccountsFilter } from "./types";
import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, WalletAssetResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse, CreateTransferTicketArgs, TransferTicketResponse, TermResponse, ExecuteTermArgs, CreateTransferTicketResponse, EstimateTransactionFeeResponse, EstimateFeeResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, GasStationInfo, MaxSpendableAmountResponse, VaultAccountsFilter, RequestOptions } from "./types";
export * from "./types";

@@ -236,7 +236,7 @@ export declare class FireblocksSDK {

*/
createTransaction(options: TransactionArguments): Promise<CreateTransactionResponse>;
createTransaction(transactionArguments: TransactionArguments, requestOptions?: RequestOptions): Promise<CreateTransactionResponse>;
/**
* Estimates the fee for a transaction request
*/
estimateFeeForTransaction(options: TransactionArguments): Promise<EstimateTransactionFeeResponse>;
estimateFeeForTransaction(transactionArguments: TransactionArguments): Promise<EstimateTransactionFeeResponse>;
/**

@@ -243,0 +243,0 @@ * Gets the estimated fees for an asset

@@ -467,5 +467,5 @@ "use strict";

*/
createTransaction(options) {
createTransaction(transactionArguments, requestOptions) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest("/v1/transactions", options);
return yield this.apiClient.issuePostRequest("/v1/transactions", transactionArguments, requestOptions);
});

@@ -476,5 +476,5 @@ }

*/
estimateFeeForTransaction(options) {
estimateFeeForTransaction(transactionArguments) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.apiClient.issuePostRequest("/v1/transactions/estimate_fee", options);
return yield this.apiClient.issuePostRequest("/v1/transactions/estimate_fee", transactionArguments);
});

@@ -481,0 +481,0 @@ }

@@ -385,2 +385,5 @@ export interface VaultAccountResponse {

}
export interface RequestOptions {
idempotencyKey: string;
}
export {};
{
"name": "fireblocks-sdk",
"version": "1.5.11",
"version": "1.5.12",
"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