fireblocks-sdk
Advanced tools
Comparing version 1.5.9 to 1.5.10
@@ -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 } 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 } from "./types"; | ||
export * from "./types"; | ||
@@ -359,2 +359,6 @@ export declare class FireblocksSDK { | ||
dropTransaction(txId: string, feeLevel?: string, requestedFee?: string): Promise<any>; | ||
/** | ||
* Get max spendable amount per asset and vault. | ||
*/ | ||
getMaxSpendableAmount(vaultAccountId: string, assetId: string, manualSigning?: Boolean): Promise<MaxSpendableAmountResponse>; | ||
} |
@@ -708,4 +708,16 @@ "use strict"; | ||
} | ||
/** | ||
* Get max spendable amount per asset and vault. | ||
*/ | ||
getMaxSpendableAmount(vaultAccountId, assetId, manualSigning) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let url = `/v1/vault/accounts/${vaultAccountId}/${assetId}/max_spendable_amount`; | ||
if (manualSigning) { | ||
url += `?manualSigning=${manualSigning}`; | ||
} | ||
return yield this.apiClient.issueGetRequest(url); | ||
}); | ||
} | ||
} | ||
exports.FireblocksSDK = FireblocksSDK; | ||
//# sourceMappingURL=fireblocks-sdk.js.map |
@@ -26,2 +26,5 @@ export interface VaultAccountResponse { | ||
} | ||
export interface UnfreezeTransactionResponse { | ||
success: boolean; | ||
} | ||
export interface CreateVaultAssetResponse { | ||
@@ -70,2 +73,3 @@ id: string; | ||
id?: string; | ||
address?: string; | ||
} | ||
@@ -110,2 +114,6 @@ interface DestinationTransferPeerPath { | ||
} | ||
export interface TransactionDestination { | ||
amount: string | number; | ||
destination: DestinationTransferPeerPath; | ||
} | ||
export interface TransactionArguments { | ||
@@ -129,2 +137,3 @@ assetId?: string; | ||
extraParameters?: object; | ||
destinations?: TransactionDestination[]; | ||
replaceTxByHash?: string; | ||
@@ -372,2 +381,5 @@ } | ||
} | ||
export interface MaxSpendableAmountResponse { | ||
maxSpendableAmount: string; | ||
} | ||
export {}; |
{ | ||
"name": "fireblocks-sdk", | ||
"version": "1.5.9", | ||
"version": "1.5.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80963
1678