Skip to content

Commit

Permalink
Merge pull request #45 from vespr-wallet/vlad/transactions-api-params…
Browse files Browse the repository at this point in the history
…-update

fix: update query parameters type for Transaction API's txosByTxoRefs()
  • Loading branch information
Vardominator authored Aug 16, 2024
2 parents b79917c + dbe418a commit c747a20
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/transactions/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AxiosRequestConfig } from 'axios';
import { BaseAPI } from '../../base';
import { TransactionsApiFp } from './helpers';
import { TxoByTxoRefQueryParams } from './type';
import { TxoByTxoRefQueryParams, TxosByTxoRefsQueryParams } from './type';

/**
* TransactionsApi - object-oriented interface
Expand Down Expand Up @@ -77,7 +77,7 @@ export class TransactionsApi extends BaseAPI {
*/
public txosByTxoRefs(
requestBody: Array<string>,
queryParams?: TxoByTxoRefQueryParams,
queryParams?: TxosByTxoRefsQueryParams,
options?: AxiosRequestConfig,
) {
return TransactionsApiFp(this.configuration).txosByTxoRefs(requestBody, queryParams, options)();
Expand Down
18 changes: 18 additions & 0 deletions src/api/transactions/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,22 @@ export interface TxosByTxoRefsQueryParams {
* @memberof TxosByTxoRefsQueryParams
*/
with_cbor?: boolean | null;
/**
* Do not return 404 if any transactions are not found (404 will still be returned if you specify an index higher than the number of outputs in a transaction)
* @type {boolean | null}
* @memberof TxosByTxoRefsQueryParams
*/
allow_missing?: boolean | null;
/**
* The max number of results per page
* @type {number | null}
* @memberof TxosByTxoRefsQueryParams
*/
count?: number | null;
/**
* Pagination cursor string, use the cursor included in a page of results to fetch the next page
* @type {string | null}
* @memberof TxosByTxoRefsQueryParams
*/
cursor?: string | null;
}

0 comments on commit c747a20

Please sign in to comment.