@stacks/blockchain-api-client 7.12.0-beta.1 → 7.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/generated/apis/TransactionsApi.d.ts +14 -0
- package/lib/generated/apis/TransactionsApi.js +21 -0
- package/lib/generated/apis/TransactionsApi.js.map +1 -1
- package/lib/index.umd.js +28 -0
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/apis/TransactionsApi.ts +42 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacks/blockchain-api-client",
|
|
3
|
-
"version": "7.12.0
|
|
3
|
+
"version": "7.12.0",
|
|
4
4
|
"access": "public",
|
|
5
5
|
"description": "Client for the Stacks Blockchain API",
|
|
6
6
|
"homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
|
|
@@ -100,7 +100,14 @@ export interface GetTransactionListRequest {
|
|
|
100
100
|
limit?: number;
|
|
101
101
|
offset?: number;
|
|
102
102
|
type?: Array<GetTransactionListTypeEnum>;
|
|
103
|
+
fromAddress?: string;
|
|
104
|
+
toAddress?: string;
|
|
103
105
|
sortBy?: GetTransactionListSortByEnum;
|
|
106
|
+
startTime?: number;
|
|
107
|
+
endTime?: number;
|
|
108
|
+
contractId?: string;
|
|
109
|
+
functionName?: string;
|
|
110
|
+
nonce?: number;
|
|
104
111
|
order?: GetTransactionListOrderEnum;
|
|
105
112
|
unanchored?: boolean;
|
|
106
113
|
}
|
|
@@ -312,7 +319,14 @@ export interface TransactionsApiInterface {
|
|
|
312
319
|
* @param {number} [limit] max number of transactions to fetch
|
|
313
320
|
* @param {number} [offset] index of first transaction to fetch
|
|
314
321
|
* @param {Array<'coinbase' | 'token_transfer' | 'smart_contract' | 'contract_call' | 'poison_microblock' | 'tenure_change'>} [type] Filter by transaction type
|
|
322
|
+
* @param {string} [fromAddress] Option to filter results by sender address
|
|
323
|
+
* @param {string} [toAddress] Option to filter results by recipient address
|
|
315
324
|
* @param {'block_height' | 'burn_block_time' | 'fee'} [sortBy] Option to sort results by block height, timestamp, or fee
|
|
325
|
+
* @param {number} [startTime] Filter by transactions after this timestamp (unix timestamp in seconds)
|
|
326
|
+
* @param {number} [endTime] Filter by transactions before this timestamp (unix timestamp in seconds)
|
|
327
|
+
* @param {string} [contractId] Filter by contract call transactions involving this contract ID
|
|
328
|
+
* @param {string} [functionName] Filter by contract call transactions involving this function name
|
|
329
|
+
* @param {number} [nonce] Filter by transactions with this nonce
|
|
316
330
|
* @param {'asc' | 'desc'} [order] Option to sort results in ascending or descending order
|
|
317
331
|
* @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
|
|
318
332
|
* @param {*} [options] Override http request option.
|
|
@@ -817,10 +831,38 @@ export class TransactionsApi extends runtime.BaseAPI implements TransactionsApiI
|
|
|
817
831
|
queryParameters['type'] = requestParameters.type;
|
|
818
832
|
}
|
|
819
833
|
|
|
834
|
+
if (requestParameters.fromAddress !== undefined) {
|
|
835
|
+
queryParameters['from_address'] = requestParameters.fromAddress;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
if (requestParameters.toAddress !== undefined) {
|
|
839
|
+
queryParameters['to_address'] = requestParameters.toAddress;
|
|
840
|
+
}
|
|
841
|
+
|
|
820
842
|
if (requestParameters.sortBy !== undefined) {
|
|
821
843
|
queryParameters['sort_by'] = requestParameters.sortBy;
|
|
822
844
|
}
|
|
823
845
|
|
|
846
|
+
if (requestParameters.startTime !== undefined) {
|
|
847
|
+
queryParameters['start_time'] = requestParameters.startTime;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
if (requestParameters.endTime !== undefined) {
|
|
851
|
+
queryParameters['end_time'] = requestParameters.endTime;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
if (requestParameters.contractId !== undefined) {
|
|
855
|
+
queryParameters['contract_id'] = requestParameters.contractId;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
if (requestParameters.functionName !== undefined) {
|
|
859
|
+
queryParameters['function_name'] = requestParameters.functionName;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
if (requestParameters.nonce !== undefined) {
|
|
863
|
+
queryParameters['nonce'] = requestParameters.nonce;
|
|
864
|
+
}
|
|
865
|
+
|
|
824
866
|
if (requestParameters.order !== undefined) {
|
|
825
867
|
queryParameters['order'] = requestParameters.order;
|
|
826
868
|
}
|