@aws-sdk/client-managedblockchain-query 3.378.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/LICENSE +201 -0
- package/README.md +262 -0
- package/dist-cjs/ManagedBlockchainQuery.js +23 -0
- package/dist-cjs/ManagedBlockchainQueryClient.js +41 -0
- package/dist-cjs/commands/BatchGetTokenBalanceCommand.js +46 -0
- package/dist-cjs/commands/GetTokenBalanceCommand.js +46 -0
- package/dist-cjs/commands/GetTransactionCommand.js +46 -0
- package/dist-cjs/commands/ListTokenBalancesCommand.js +46 -0
- package/dist-cjs/commands/ListTransactionEventsCommand.js +46 -0
- package/dist-cjs/commands/ListTransactionsCommand.js +46 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ManagedBlockchainQueryServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +139 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListTokenBalancesPaginator.js +29 -0
- package/dist-cjs/pagination/ListTransactionEventsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTransactionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +706 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/ManagedBlockchainQuery.js +19 -0
- package/dist-es/ManagedBlockchainQueryClient.js +37 -0
- package/dist-es/commands/BatchGetTokenBalanceCommand.js +42 -0
- package/dist-es/commands/GetTokenBalanceCommand.js +42 -0
- package/dist-es/commands/GetTransactionCommand.js +42 -0
- package/dist-es/commands/ListTokenBalancesCommand.js +42 -0
- package/dist-es/commands/ListTransactionEventsCommand.js +42 -0
- package/dist-es/commands/ListTransactionsCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ManagedBlockchainQueryServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +130 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListTokenBalancesPaginator.js +25 -0
- package/dist-es/pagination/ListTransactionEventsPaginator.js +25 -0
- package/dist-es/pagination/ListTransactionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +691 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/ManagedBlockchainQuery.d.ts +58 -0
- package/dist-types/ManagedBlockchainQueryClient.d.ts +174 -0
- package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +149 -0
- package/dist-types/commands/GetTokenBalanceCommand.d.ts +122 -0
- package/dist-types/commands/GetTransactionCommand.d.ts +115 -0
- package/dist-types/commands/ListTokenBalancesCommand.d.ts +135 -0
- package/dist-types/commands/ListTransactionEventsCommand.d.ts +109 -0
- package/dist-types/commands/ListTransactionsCommand.d.ts +111 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/ManagedBlockchainQueryServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +917 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListTokenBalancesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTransactionEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTransactionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +56 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/ManagedBlockchainQuery.d.ts +109 -0
- package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +149 -0
- package/dist-types/ts3.4/commands/BatchGetTokenBalanceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTokenBalanceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetTransactionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTokenBalancesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTransactionEventsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ManagedBlockchainQueryServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +264 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListTokenBalancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTransactionEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +82 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +99 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
|
|
5
|
+
import { GetTransactionInput, GetTransactionOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetTransactionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetTransactionCommandInput extends GetTransactionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetTransactionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetTransactionCommandOutput extends GetTransactionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Get the details of a transaction.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { ManagedBlockchainQueryClient, GetTransactionCommand } from "@aws-sdk/client-managedblockchain-query"; // ES Modules import
|
|
31
|
+
* // const { ManagedBlockchainQueryClient, GetTransactionCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import
|
|
32
|
+
* const client = new ManagedBlockchainQueryClient(config);
|
|
33
|
+
* const input = { // GetTransactionInput
|
|
34
|
+
* transactionHash: "STRING_VALUE", // required
|
|
35
|
+
* network: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetTransactionCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetTransactionOutput
|
|
40
|
+
* // transaction: { // Transaction
|
|
41
|
+
* // network: "STRING_VALUE", // required
|
|
42
|
+
* // blockHash: "STRING_VALUE",
|
|
43
|
+
* // transactionHash: "STRING_VALUE", // required
|
|
44
|
+
* // blockNumber: "STRING_VALUE",
|
|
45
|
+
* // transactionTimestamp: new Date("TIMESTAMP"), // required
|
|
46
|
+
* // transactionIndex: Number("long"), // required
|
|
47
|
+
* // numberOfTransactions: Number("long"), // required
|
|
48
|
+
* // status: "STRING_VALUE", // required
|
|
49
|
+
* // to: "STRING_VALUE", // required
|
|
50
|
+
* // from: "STRING_VALUE",
|
|
51
|
+
* // contractAddress: "STRING_VALUE",
|
|
52
|
+
* // gasUsed: "STRING_VALUE",
|
|
53
|
+
* // cumulativeGasUsed: "STRING_VALUE",
|
|
54
|
+
* // effectiveGasPrice: "STRING_VALUE",
|
|
55
|
+
* // signatureV: Number("int"),
|
|
56
|
+
* // signatureR: "STRING_VALUE",
|
|
57
|
+
* // signatureS: "STRING_VALUE",
|
|
58
|
+
* // transactionFee: "STRING_VALUE",
|
|
59
|
+
* // transactionId: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param GetTransactionCommandInput - {@link GetTransactionCommandInput}
|
|
66
|
+
* @returns {@link GetTransactionCommandOutput}
|
|
67
|
+
* @see {@link GetTransactionCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link GetTransactionCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link ManagedBlockchainQueryClientResolvedConfig | config} for ManagedBlockchainQueryClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>The Amazon Web Services account doesn’t have access to this resource. </p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>The request processing has failed because of an internal error in the service.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The resource was not found.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
81
|
+
* <p>The service quota has been exceeded for this resource.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
84
|
+
* <p>The request or operation couldn't be performed because a service is throttling
|
|
85
|
+
* requests. The most common source of throttling errors is when you create resources
|
|
86
|
+
* that exceed your service limit for this resource type. Request a limit increase or
|
|
87
|
+
* delete unused resources, if possible.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ValidationException} (client fault)
|
|
90
|
+
* <p>The resource passed is invalid.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ManagedBlockchainQueryServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p>
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export declare class GetTransactionCommand extends $Command<GetTransactionCommandInput, GetTransactionCommandOutput, ManagedBlockchainQueryClientResolvedConfig> {
|
|
97
|
+
readonly input: GetTransactionCommandInput;
|
|
98
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
constructor(input: GetTransactionCommandInput);
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainQueryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetTransactionCommandInput, GetTransactionCommandOutput>;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
private serialize;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
private deserialize;
|
|
115
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
|
|
5
|
+
import { ListTokenBalancesInput, ListTokenBalancesOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListTokenBalancesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTokenBalancesCommandInput extends ListTokenBalancesInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTokenBalancesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTokenBalancesCommandOutput extends ListTokenBalancesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>This action returns the following for a given a blockchain network:</p>
|
|
27
|
+
* <ul>
|
|
28
|
+
* <li>
|
|
29
|
+
* <p>Lists all token balances owned by an address (either a contact
|
|
30
|
+
* address or a wallet address).</p>
|
|
31
|
+
* </li>
|
|
32
|
+
* <li>
|
|
33
|
+
* <p>Lists all token balances for all tokens created by a contract.</p>
|
|
34
|
+
* </li>
|
|
35
|
+
* <li>
|
|
36
|
+
* <p>Lists all token balances for a given token.</p>
|
|
37
|
+
* </li>
|
|
38
|
+
* </ul>
|
|
39
|
+
* <note>
|
|
40
|
+
* <p>You must always specify the network property of
|
|
41
|
+
* the <code>tokenFilter</code> when using this operation.</p>
|
|
42
|
+
* </note>
|
|
43
|
+
* @example
|
|
44
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
+
* ```javascript
|
|
46
|
+
* import { ManagedBlockchainQueryClient, ListTokenBalancesCommand } from "@aws-sdk/client-managedblockchain-query"; // ES Modules import
|
|
47
|
+
* // const { ManagedBlockchainQueryClient, ListTokenBalancesCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import
|
|
48
|
+
* const client = new ManagedBlockchainQueryClient(config);
|
|
49
|
+
* const input = { // ListTokenBalancesInput
|
|
50
|
+
* ownerFilter: { // OwnerFilter
|
|
51
|
+
* address: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* tokenFilter: { // TokenFilter
|
|
54
|
+
* network: "STRING_VALUE", // required
|
|
55
|
+
* contractAddress: "STRING_VALUE",
|
|
56
|
+
* tokenId: "STRING_VALUE",
|
|
57
|
+
* },
|
|
58
|
+
* nextToken: "STRING_VALUE",
|
|
59
|
+
* maxResults: Number("int"),
|
|
60
|
+
* };
|
|
61
|
+
* const command = new ListTokenBalancesCommand(input);
|
|
62
|
+
* const response = await client.send(command);
|
|
63
|
+
* // { // ListTokenBalancesOutput
|
|
64
|
+
* // tokenBalances: [ // TokenBalanceList // required
|
|
65
|
+
* // { // TokenBalance
|
|
66
|
+
* // ownerIdentifier: { // OwnerIdentifier
|
|
67
|
+
* // address: "STRING_VALUE", // required
|
|
68
|
+
* // },
|
|
69
|
+
* // tokenIdentifier: { // TokenIdentifier
|
|
70
|
+
* // network: "STRING_VALUE", // required
|
|
71
|
+
* // contractAddress: "STRING_VALUE",
|
|
72
|
+
* // tokenId: "STRING_VALUE",
|
|
73
|
+
* // },
|
|
74
|
+
* // balance: "STRING_VALUE", // required
|
|
75
|
+
* // atBlockchainInstant: { // BlockchainInstant
|
|
76
|
+
* // time: new Date("TIMESTAMP"),
|
|
77
|
+
* // },
|
|
78
|
+
* // lastUpdatedTime: {
|
|
79
|
+
* // time: new Date("TIMESTAMP"),
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // nextToken: "STRING_VALUE",
|
|
84
|
+
* // };
|
|
85
|
+
*
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @param ListTokenBalancesCommandInput - {@link ListTokenBalancesCommandInput}
|
|
89
|
+
* @returns {@link ListTokenBalancesCommandOutput}
|
|
90
|
+
* @see {@link ListTokenBalancesCommandInput} for command's `input` shape.
|
|
91
|
+
* @see {@link ListTokenBalancesCommandOutput} for command's `response` shape.
|
|
92
|
+
* @see {@link ManagedBlockchainQueryClientResolvedConfig | config} for ManagedBlockchainQueryClient's `config` shape.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
95
|
+
* <p>The Amazon Web Services account doesn’t have access to this resource. </p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link InternalServerException} (server fault)
|
|
98
|
+
* <p>The request processing has failed because of an internal error in the service.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
101
|
+
* <p>The service quota has been exceeded for this resource.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
104
|
+
* <p>The request or operation couldn't be performed because a service is throttling
|
|
105
|
+
* requests. The most common source of throttling errors is when you create resources
|
|
106
|
+
* that exceed your service limit for this resource type. Request a limit increase or
|
|
107
|
+
* delete unused resources, if possible.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ValidationException} (client fault)
|
|
110
|
+
* <p>The resource passed is invalid.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ManagedBlockchainQueryServiceException}
|
|
113
|
+
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p>
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
export declare class ListTokenBalancesCommand extends $Command<ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput, ManagedBlockchainQueryClientResolvedConfig> {
|
|
117
|
+
readonly input: ListTokenBalancesCommandInput;
|
|
118
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
constructor(input: ListTokenBalancesCommandInput);
|
|
123
|
+
/**
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainQueryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput>;
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
private serialize;
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
private deserialize;
|
|
135
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
|
|
5
|
+
import { ListTransactionEventsInput, ListTransactionEventsOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListTransactionEventsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTransactionEventsCommandInput extends ListTransactionEventsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTransactionEventsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTransactionEventsCommandOutput extends ListTransactionEventsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>An array of <code>TransactionEvent</code> objects. Each object contains details
|
|
27
|
+
* about the transaction event.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { ManagedBlockchainQueryClient, ListTransactionEventsCommand } from "@aws-sdk/client-managedblockchain-query"; // ES Modules import
|
|
32
|
+
* // const { ManagedBlockchainQueryClient, ListTransactionEventsCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import
|
|
33
|
+
* const client = new ManagedBlockchainQueryClient(config);
|
|
34
|
+
* const input = { // ListTransactionEventsInput
|
|
35
|
+
* transactionHash: "STRING_VALUE", // required
|
|
36
|
+
* network: "STRING_VALUE", // required
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListTransactionEventsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListTransactionEventsOutput
|
|
43
|
+
* // events: [ // TransactionEventList // required
|
|
44
|
+
* // { // TransactionEvent
|
|
45
|
+
* // network: "STRING_VALUE", // required
|
|
46
|
+
* // transactionHash: "STRING_VALUE", // required
|
|
47
|
+
* // eventType: "STRING_VALUE", // required
|
|
48
|
+
* // from: "STRING_VALUE",
|
|
49
|
+
* // to: "STRING_VALUE",
|
|
50
|
+
* // value: "STRING_VALUE",
|
|
51
|
+
* // contractAddress: "STRING_VALUE",
|
|
52
|
+
* // tokenId: "STRING_VALUE",
|
|
53
|
+
* // transactionId: "STRING_VALUE",
|
|
54
|
+
* // voutIndex: Number("int"),
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // nextToken: "STRING_VALUE",
|
|
58
|
+
* // };
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param ListTransactionEventsCommandInput - {@link ListTransactionEventsCommandInput}
|
|
63
|
+
* @returns {@link ListTransactionEventsCommandOutput}
|
|
64
|
+
* @see {@link ListTransactionEventsCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link ListTransactionEventsCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link ManagedBlockchainQueryClientResolvedConfig | config} for ManagedBlockchainQueryClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
69
|
+
* <p>The Amazon Web Services account doesn’t have access to this resource. </p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalServerException} (server fault)
|
|
72
|
+
* <p>The request processing has failed because of an internal error in the service.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
75
|
+
* <p>The service quota has been exceeded for this resource.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
78
|
+
* <p>The request or operation couldn't be performed because a service is throttling
|
|
79
|
+
* requests. The most common source of throttling errors is when you create resources
|
|
80
|
+
* that exceed your service limit for this resource type. Request a limit increase or
|
|
81
|
+
* delete unused resources, if possible.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
* <p>The resource passed is invalid.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ManagedBlockchainQueryServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p>
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
export declare class ListTransactionEventsCommand extends $Command<ListTransactionEventsCommandInput, ListTransactionEventsCommandOutput, ManagedBlockchainQueryClientResolvedConfig> {
|
|
91
|
+
readonly input: ListTransactionEventsCommandInput;
|
|
92
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
93
|
+
/**
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
constructor(input: ListTransactionEventsCommandInput);
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainQueryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTransactionEventsCommandInput, ListTransactionEventsCommandOutput>;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
private serialize;
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
private deserialize;
|
|
109
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
|
|
5
|
+
import { ListTransactionsInput, ListTransactionsOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListTransactionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTransactionsCommandInput extends ListTransactionsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTransactionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTransactionsCommandOutput extends ListTransactionsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Lists all of the transactions on a given wallet address or to a specific contract.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { ManagedBlockchainQueryClient, ListTransactionsCommand } from "@aws-sdk/client-managedblockchain-query"; // ES Modules import
|
|
31
|
+
* // const { ManagedBlockchainQueryClient, ListTransactionsCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import
|
|
32
|
+
* const client = new ManagedBlockchainQueryClient(config);
|
|
33
|
+
* const input = { // ListTransactionsInput
|
|
34
|
+
* address: "STRING_VALUE", // required
|
|
35
|
+
* network: "STRING_VALUE", // required
|
|
36
|
+
* fromBlockchainInstant: { // BlockchainInstant
|
|
37
|
+
* time: new Date("TIMESTAMP"),
|
|
38
|
+
* },
|
|
39
|
+
* toBlockchainInstant: {
|
|
40
|
+
* time: new Date("TIMESTAMP"),
|
|
41
|
+
* },
|
|
42
|
+
* sort: { // ListTransactionsSort
|
|
43
|
+
* sortBy: "STRING_VALUE",
|
|
44
|
+
* sortOrder: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* nextToken: "STRING_VALUE",
|
|
47
|
+
* maxResults: Number("int"),
|
|
48
|
+
* };
|
|
49
|
+
* const command = new ListTransactionsCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // ListTransactionsOutput
|
|
52
|
+
* // transactions: [ // TransactionOutputList // required
|
|
53
|
+
* // { // TransactionOutputItem
|
|
54
|
+
* // transactionHash: "STRING_VALUE", // required
|
|
55
|
+
* // network: "STRING_VALUE", // required
|
|
56
|
+
* // transactionTimestamp: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // nextToken: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param ListTransactionsCommandInput - {@link ListTransactionsCommandInput}
|
|
65
|
+
* @returns {@link ListTransactionsCommandOutput}
|
|
66
|
+
* @see {@link ListTransactionsCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link ListTransactionsCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link ManagedBlockchainQueryClientResolvedConfig | config} for ManagedBlockchainQueryClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
71
|
+
* <p>The Amazon Web Services account doesn’t have access to this resource. </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link InternalServerException} (server fault)
|
|
74
|
+
* <p>The request processing has failed because of an internal error in the service.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
77
|
+
* <p>The service quota has been exceeded for this resource.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
80
|
+
* <p>The request or operation couldn't be performed because a service is throttling
|
|
81
|
+
* requests. The most common source of throttling errors is when you create resources
|
|
82
|
+
* that exceed your service limit for this resource type. Request a limit increase or
|
|
83
|
+
* delete unused resources, if possible.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ValidationException} (client fault)
|
|
86
|
+
* <p>The resource passed is invalid.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ManagedBlockchainQueryServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from ManagedBlockchainQuery service.</p>
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
export declare class ListTransactionsCommand extends $Command<ListTransactionsCommandInput, ListTransactionsCommandOutput, ManagedBlockchainQueryClientResolvedConfig> {
|
|
93
|
+
readonly input: ListTransactionsCommandInput;
|
|
94
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
constructor(input: ListTransactionsCommandInput);
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainQueryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTransactionsCommandInput, ListTransactionsCommandOutput>;
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
private serialize;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
private deserialize;
|
|
111
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./BatchGetTokenBalanceCommand";
|
|
2
|
+
export * from "./GetTokenBalanceCommand";
|
|
3
|
+
export * from "./GetTransactionCommand";
|
|
4
|
+
export * from "./ListTokenBalancesCommand";
|
|
5
|
+
export * from "./ListTransactionEventsCommand";
|
|
6
|
+
export * from "./ListTransactionsCommand";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
export interface ClientInputEndpointParameters {
|
|
3
|
+
region?: string | Provider<string>;
|
|
4
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
5
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
6
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
7
|
+
}
|
|
8
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
9
|
+
defaultSigningName: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
+
Region?: string;
|
|
16
|
+
UseDualStack?: boolean;
|
|
17
|
+
UseFIPS?: boolean;
|
|
18
|
+
Endpoint?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes
|
|
3
|
+
* it easier for you to extract contextual data related to blockchain activity. You can use AMB Query to
|
|
4
|
+
* read data from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can
|
|
5
|
+
* also get information such as the current and historical balances of addresses, or you can get a
|
|
6
|
+
* list of blockchain transactions for a given time period. Additionally, you can get details of a
|
|
7
|
+
* given transaction, such as transaction events, which you can further analyze or use in business
|
|
8
|
+
* logic for your applications.</p>
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
export * from "./ManagedBlockchainQueryClient";
|
|
13
|
+
export * from "./ManagedBlockchainQuery";
|
|
14
|
+
export * from "./commands";
|
|
15
|
+
export * from "./pagination";
|
|
16
|
+
export * from "./models";
|
|
17
|
+
export { ManagedBlockchainQueryServiceException } from "./models/ManagedBlockchainQueryServiceException";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* Base exception class for all service exceptions from ManagedBlockchainQuery service.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ManagedBlockchainQueryServiceException extends __ServiceException {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(options: __ServiceExceptionOptions);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|