Skip to content

Commit

Permalink
Merge pull request #27 from fireblocks/COR-6703-list-unstpent-txo
Browse files Browse the repository at this point in the history
Cor 6703 list unstpent txo
  • Loading branch information
amirlevygit authored May 10, 2021
2 parents 5dbc17c + 97ccd8e commit b09bf25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ export class FireblocksSDK {
return await this.apiClient.issueGetRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}/addresses`);
}

/**
* Gets utxo list 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 utxo list
*/
public async getUnspentInputs(vaultAccountId: string, assetId: string): Promise<DepositAddressResponse[]> {
return await this.apiClient.issueGetRequest(`/v1/vault/accounts/${vaultAccountId}/${assetId}/unspent_inputs`);
}

/**
* Generates a new address for an asset in a vault account
* @param vaultAccountId The vault account ID
Expand Down

0 comments on commit b09bf25

Please sign in to comment.