@aws-sdk/client-managedblockchain-query 3.533.0 → 3.537.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 +118 -14
- 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 +72 -2
- package/dist-types/ManagedBlockchainQuery.d.ts +9 -1
- package/dist-types/ManagedBlockchainQueryClient.d.ts +4 -3
- package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +2 -1
- package/dist-types/commands/GetAssetContractCommand.d.ts +2 -1
- package/dist-types/commands/GetTokenBalanceCommand.d.ts +2 -1
- package/dist-types/commands/GetTransactionCommand.d.ts +2 -1
- package/dist-types/commands/ListAssetContractsCommand.d.ts +2 -1
- package/dist-types/commands/ListFilteredTransactionEventsCommand.d.ts +129 -0
- package/dist-types/commands/ListTokenBalancesCommand.d.ts +2 -1
- package/dist-types/commands/ListTransactionEventsCommand.d.ts +13 -4
- package/dist-types/commands/ListTransactionsCommand.d.ts +3 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +450 -253
- 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 +18 -0
- package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/BatchGetTokenBalanceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetAssetContractCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetTokenBalanceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetTransactionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListAssetContractsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListFilteredTransactionEventsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTokenBalancesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListTransactionEventsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +70 -30
- 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 +40 -40
|
@@ -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
|
+
}
|
|
@@ -22,10 +22,10 @@ export interface ListTokenBalancesCommandOutput extends ListTokenBalancesOutput,
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListTokenBalancesCommand_base: {
|
|
24
24
|
new (input: ListTokenBalancesCommandInput): import("@smithy/smithy-client").CommandImpl<ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ListTokenBalancesCommandInput): import("@smithy/smithy-client").CommandImpl<ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>This action returns the following for a given blockchain network:</p>
|
|
30
30
|
* <ul>
|
|
31
31
|
* <li>
|
|
@@ -115,6 +115,7 @@ declare const ListTokenBalancesCommand_base: {
|
|
|
115
115
|
* @throws {@link ManagedBlockchainQueryServiceException}
|
|
116
116
|
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p>
|
|
117
117
|
*
|
|
118
|
+
* @public
|
|
118
119
|
*/
|
|
119
120
|
export declare class ListTokenBalancesCommand extends ListTokenBalancesCommand_base {
|
|
120
121
|
}
|
|
@@ -22,12 +22,11 @@ export interface ListTransactionEventsCommandOutput extends ListTransactionEvent
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListTransactionEventsCommand_base: {
|
|
24
24
|
new (input: ListTransactionEventsCommandInput): import("@smithy/smithy-client").CommandImpl<ListTransactionEventsCommandInput, ListTransactionEventsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ListTransactionEventsCommandInput): import("@smithy/smithy-client").CommandImpl<ListTransactionEventsCommandInput, ListTransactionEventsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
*
|
|
29
|
-
* <p>An array of <code>TransactionEvent</code> objects. Each object contains details
|
|
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",
|
|
@@ -95,6 +103,7 @@ declare const ListTransactionEventsCommand_base: {
|
|
|
95
103
|
* @throws {@link ManagedBlockchainQueryServiceException}
|
|
96
104
|
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p>
|
|
97
105
|
*
|
|
106
|
+
* @public
|
|
98
107
|
*/
|
|
99
108
|
export declare class ListTransactionEventsCommand extends ListTransactionEventsCommand_base {
|
|
100
109
|
}
|
|
@@ -22,11 +22,11 @@ export interface ListTransactionsCommandOutput extends ListTransactionsOutput, _
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListTransactionsCommand_base: {
|
|
24
24
|
new (input: ListTransactionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListTransactionsCommandInput, ListTransactionsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ListTransactionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListTransactionsCommandInput, ListTransactionsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
*
|
|
29
|
-
* <p>Lists all of the transactions on a given wallet address or to a specific contract.</p>
|
|
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
|
|
@@ -97,6 +97,7 @@ declare const ListTransactionsCommand_base: {
|
|
|
97
97
|
* @throws {@link ManagedBlockchainQueryServiceException}
|
|
98
98
|
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p>
|
|
99
99
|
*
|
|
100
|
+
* @public
|
|
100
101
|
*/
|
|
101
102
|
export declare class ListTransactionsCommand extends ListTransactionsCommand_base {
|
|
102
103
|
}
|
|
@@ -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";
|