@aws-sdk/client-managedblockchain-query 3.535.0 → 3.538.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/README.md +8 -0
- package/dist-cjs/index.js +121 -15
- package/dist-es/ManagedBlockchainQuery.js +2 -0
- package/dist-es/commands/ListFilteredTransactionEventsCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +7 -4
- package/dist-es/pagination/ListFilteredTransactionEventsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +74 -2
- package/dist-types/ManagedBlockchainQuery.d.ts +7 -0
- package/dist-types/ManagedBlockchainQueryClient.d.ts +3 -2
- package/dist-types/commands/GetTransactionCommand.d.ts +2 -1
- package/dist-types/commands/ListFilteredTransactionEventsCommand.d.ts +129 -0
- package/dist-types/commands/ListTransactionEventsCommand.d.ts +11 -3
- package/dist-types/commands/ListTransactionsCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +341 -130
- package/dist-types/pagination/ListFilteredTransactionEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/ManagedBlockchainQuery.d.ts +17 -0
- package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListFilteredTransactionEventsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +73 -31
- package/dist-types/ts3.4/pagination/ListFilteredTransactionEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
|
|
4
|
+
import { ListFilteredTransactionEventsInput, ListFilteredTransactionEventsOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ListFilteredTransactionEventsCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListFilteredTransactionEventsCommandInput extends ListFilteredTransactionEventsInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ListFilteredTransactionEventsCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListFilteredTransactionEventsCommandOutput extends ListFilteredTransactionEventsOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const ListFilteredTransactionEventsCommand_base: {
|
|
24
|
+
new (input: ListFilteredTransactionEventsCommandInput): import("@smithy/smithy-client").CommandImpl<ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ListFilteredTransactionEventsCommandInput): import("@smithy/smithy-client").CommandImpl<ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Lists all the transaction events for an address on the blockchain.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>This operation is only supported on the Bitcoin networks.</p>
|
|
32
|
+
* </note>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { ManagedBlockchainQueryClient, ListFilteredTransactionEventsCommand } from "@aws-sdk/client-managedblockchain-query"; // ES Modules import
|
|
37
|
+
* // const { ManagedBlockchainQueryClient, ListFilteredTransactionEventsCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import
|
|
38
|
+
* const client = new ManagedBlockchainQueryClient(config);
|
|
39
|
+
* const input = { // ListFilteredTransactionEventsInput
|
|
40
|
+
* network: "STRING_VALUE", // required
|
|
41
|
+
* addressIdentifierFilter: { // AddressIdentifierFilter
|
|
42
|
+
* transactionEventToAddress: [ // ChainAddresses // required
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* timeFilter: { // TimeFilter
|
|
47
|
+
* from: { // BlockchainInstant
|
|
48
|
+
* time: new Date("TIMESTAMP"),
|
|
49
|
+
* },
|
|
50
|
+
* to: {
|
|
51
|
+
* time: new Date("TIMESTAMP"),
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* voutFilter: { // VoutFilter
|
|
55
|
+
* voutSpent: true || false, // required
|
|
56
|
+
* },
|
|
57
|
+
* confirmationStatusFilter: { // ConfirmationStatusFilter
|
|
58
|
+
* include: [ // ConfirmationStatusIncludeList // required
|
|
59
|
+
* "STRING_VALUE",
|
|
60
|
+
* ],
|
|
61
|
+
* },
|
|
62
|
+
* sort: { // ListFilteredTransactionEventsSort
|
|
63
|
+
* sortBy: "STRING_VALUE",
|
|
64
|
+
* sortOrder: "STRING_VALUE",
|
|
65
|
+
* },
|
|
66
|
+
* nextToken: "STRING_VALUE",
|
|
67
|
+
* maxResults: Number("int"),
|
|
68
|
+
* };
|
|
69
|
+
* const command = new ListFilteredTransactionEventsCommand(input);
|
|
70
|
+
* const response = await client.send(command);
|
|
71
|
+
* // { // ListFilteredTransactionEventsOutput
|
|
72
|
+
* // events: [ // TransactionEventList // required
|
|
73
|
+
* // { // TransactionEvent
|
|
74
|
+
* // network: "STRING_VALUE", // required
|
|
75
|
+
* // transactionHash: "STRING_VALUE", // required
|
|
76
|
+
* // eventType: "STRING_VALUE", // required
|
|
77
|
+
* // from: "STRING_VALUE",
|
|
78
|
+
* // to: "STRING_VALUE",
|
|
79
|
+
* // value: "STRING_VALUE",
|
|
80
|
+
* // contractAddress: "STRING_VALUE",
|
|
81
|
+
* // tokenId: "STRING_VALUE",
|
|
82
|
+
* // transactionId: "STRING_VALUE",
|
|
83
|
+
* // voutIndex: Number("int"),
|
|
84
|
+
* // voutSpent: true || false,
|
|
85
|
+
* // spentVoutTransactionId: "STRING_VALUE",
|
|
86
|
+
* // spentVoutTransactionHash: "STRING_VALUE",
|
|
87
|
+
* // spentVoutIndex: Number("int"),
|
|
88
|
+
* // blockchainInstant: { // BlockchainInstant
|
|
89
|
+
* // time: new Date("TIMESTAMP"),
|
|
90
|
+
* // },
|
|
91
|
+
* // confirmationStatus: "STRING_VALUE",
|
|
92
|
+
* // },
|
|
93
|
+
* // ],
|
|
94
|
+
* // nextToken: "STRING_VALUE",
|
|
95
|
+
* // };
|
|
96
|
+
*
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* @param ListFilteredTransactionEventsCommandInput - {@link ListFilteredTransactionEventsCommandInput}
|
|
100
|
+
* @returns {@link ListFilteredTransactionEventsCommandOutput}
|
|
101
|
+
* @see {@link ListFilteredTransactionEventsCommandInput} for command's `input` shape.
|
|
102
|
+
* @see {@link ListFilteredTransactionEventsCommandOutput} for command's `response` shape.
|
|
103
|
+
* @see {@link ManagedBlockchainQueryClientResolvedConfig | config} for ManagedBlockchainQueryClient's `config` shape.
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
106
|
+
* <p>The Amazon Web Services account doesn’t have access to this resource. </p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link InternalServerException} (server fault)
|
|
109
|
+
* <p>The request processing has failed because of an internal error in the service.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
112
|
+
* <p>The service quota has been exceeded for this resource.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
115
|
+
* <p>The request or operation couldn't be performed because a service is throttling
|
|
116
|
+
* requests. The most common source of throttling errors is when you create resources
|
|
117
|
+
* that exceed your service limit for this resource type. Request a limit increase or
|
|
118
|
+
* delete unused resources, if possible.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link ValidationException} (client fault)
|
|
121
|
+
* <p>The resource passed is invalid.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link ManagedBlockchainQueryServiceException}
|
|
124
|
+
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p>
|
|
125
|
+
*
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
export declare class ListFilteredTransactionEventsCommand extends ListFilteredTransactionEventsCommand_base {
|
|
129
|
+
}
|
|
@@ -26,8 +26,7 @@ declare const ListTransactionEventsCommand_base: {
|
|
|
26
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* <p>
|
|
30
|
-
* about the transaction event.</p>
|
|
29
|
+
* <p>Lists all the transaction events for a transaction </p>
|
|
31
30
|
* <note>
|
|
32
31
|
* <p>This action will return transaction details for all transactions
|
|
33
32
|
* that are <i>confirmed</i> on the blockchain, even if they have not reached
|
|
@@ -41,7 +40,8 @@ declare const ListTransactionEventsCommand_base: {
|
|
|
41
40
|
* // const { ManagedBlockchainQueryClient, ListTransactionEventsCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import
|
|
42
41
|
* const client = new ManagedBlockchainQueryClient(config);
|
|
43
42
|
* const input = { // ListTransactionEventsInput
|
|
44
|
-
* transactionHash: "STRING_VALUE",
|
|
43
|
+
* transactionHash: "STRING_VALUE",
|
|
44
|
+
* transactionId: "STRING_VALUE",
|
|
45
45
|
* network: "STRING_VALUE", // required
|
|
46
46
|
* nextToken: "STRING_VALUE",
|
|
47
47
|
* maxResults: Number("int"),
|
|
@@ -61,6 +61,14 @@ declare const ListTransactionEventsCommand_base: {
|
|
|
61
61
|
* // tokenId: "STRING_VALUE",
|
|
62
62
|
* // transactionId: "STRING_VALUE",
|
|
63
63
|
* // voutIndex: Number("int"),
|
|
64
|
+
* // voutSpent: true || false,
|
|
65
|
+
* // spentVoutTransactionId: "STRING_VALUE",
|
|
66
|
+
* // spentVoutTransactionHash: "STRING_VALUE",
|
|
67
|
+
* // spentVoutIndex: Number("int"),
|
|
68
|
+
* // blockchainInstant: { // BlockchainInstant
|
|
69
|
+
* // time: new Date("TIMESTAMP"),
|
|
70
|
+
* // },
|
|
71
|
+
* // confirmationStatus: "STRING_VALUE",
|
|
64
72
|
* // },
|
|
65
73
|
* // ],
|
|
66
74
|
* // nextToken: "STRING_VALUE",
|
|
@@ -26,7 +26,7 @@ declare const ListTransactionsCommand_base: {
|
|
|
26
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* <p>Lists all
|
|
29
|
+
* <p>Lists all the transaction events for a transaction.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
32
|
* ```javascript
|
|
@@ -60,6 +60,7 @@ declare const ListTransactionsCommand_base: {
|
|
|
60
60
|
* // transactions: [ // TransactionOutputList // required
|
|
61
61
|
* // { // TransactionOutputItem
|
|
62
62
|
* // transactionHash: "STRING_VALUE", // required
|
|
63
|
+
* // transactionId: "STRING_VALUE",
|
|
63
64
|
* // network: "STRING_VALUE", // required
|
|
64
65
|
* // transactionTimestamp: new Date("TIMESTAMP"), // required
|
|
65
66
|
* // confirmationStatus: "STRING_VALUE",
|
|
@@ -3,6 +3,7 @@ export * from "./GetAssetContractCommand";
|
|
|
3
3
|
export * from "./GetTokenBalanceCommand";
|
|
4
4
|
export * from "./GetTransactionCommand";
|
|
5
5
|
export * from "./ListAssetContractsCommand";
|
|
6
|
+
export * from "./ListFilteredTransactionEventsCommand";
|
|
6
7
|
export * from "./ListTokenBalancesCommand";
|
|
7
8
|
export * from "./ListTransactionEventsCommand";
|
|
8
9
|
export * from "./ListTransactionsCommand";
|