@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,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
ManagedBlockchainQueryClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../ManagedBlockchainQueryClient";
|
|
14
|
+
import {
|
|
15
|
+
ListTokenBalancesInput,
|
|
16
|
+
ListTokenBalancesOutput,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface ListTokenBalancesCommandInput extends ListTokenBalancesInput {}
|
|
20
|
+
export interface ListTokenBalancesCommandOutput
|
|
21
|
+
extends ListTokenBalancesOutput,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class ListTokenBalancesCommand extends $Command<
|
|
24
|
+
ListTokenBalancesCommandInput,
|
|
25
|
+
ListTokenBalancesCommandOutput,
|
|
26
|
+
ManagedBlockchainQueryClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: ListTokenBalancesCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ListTokenBalancesCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: ManagedBlockchainQueryClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
ManagedBlockchainQueryClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../ManagedBlockchainQueryClient";
|
|
14
|
+
import {
|
|
15
|
+
ListTransactionEventsInput,
|
|
16
|
+
ListTransactionEventsOutput,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface ListTransactionEventsCommandInput
|
|
20
|
+
extends ListTransactionEventsInput {}
|
|
21
|
+
export interface ListTransactionEventsCommandOutput
|
|
22
|
+
extends ListTransactionEventsOutput,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class ListTransactionEventsCommand extends $Command<
|
|
25
|
+
ListTransactionEventsCommandInput,
|
|
26
|
+
ListTransactionEventsCommandOutput,
|
|
27
|
+
ManagedBlockchainQueryClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: ListTransactionEventsCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: ListTransactionEventsCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: ManagedBlockchainQueryClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
ListTransactionEventsCommandInput,
|
|
38
|
+
ListTransactionEventsCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
ManagedBlockchainQueryClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../ManagedBlockchainQueryClient";
|
|
14
|
+
import {
|
|
15
|
+
ListTransactionsInput,
|
|
16
|
+
ListTransactionsOutput,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface ListTransactionsCommandInput extends ListTransactionsInput {}
|
|
20
|
+
export interface ListTransactionsCommandOutput
|
|
21
|
+
extends ListTransactionsOutput,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class ListTransactionsCommand extends $Command<
|
|
24
|
+
ListTransactionsCommandInput,
|
|
25
|
+
ListTransactionsCommandOutput,
|
|
26
|
+
ManagedBlockchainQueryClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: ListTransactionsCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ListTransactionsCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: ManagedBlockchainQueryClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<ListTransactionsCommandInput, ListTransactionsCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -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,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Endpoint,
|
|
3
|
+
EndpointParameters as __EndpointParameters,
|
|
4
|
+
EndpointV2,
|
|
5
|
+
Provider,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export interface ClientInputEndpointParameters {
|
|
8
|
+
region?: string | Provider<string>;
|
|
9
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
10
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
11
|
+
endpoint?:
|
|
12
|
+
| string
|
|
13
|
+
| Provider<string>
|
|
14
|
+
| Endpoint
|
|
15
|
+
| Provider<Endpoint>
|
|
16
|
+
| EndpointV2
|
|
17
|
+
| Provider<EndpointV2>;
|
|
18
|
+
}
|
|
19
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
20
|
+
defaultSigningName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const resolveClientEndpointParameters: <T>(
|
|
23
|
+
options: T & ClientInputEndpointParameters
|
|
24
|
+
) => T &
|
|
25
|
+
ClientInputEndpointParameters & {
|
|
26
|
+
defaultSigningName: string;
|
|
27
|
+
};
|
|
28
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
29
|
+
Region?: string;
|
|
30
|
+
UseDualStack?: boolean;
|
|
31
|
+
UseFIPS?: boolean;
|
|
32
|
+
Endpoint?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./ManagedBlockchainQueryClient";
|
|
2
|
+
export * from "./ManagedBlockchainQuery";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models";
|
|
6
|
+
export { ManagedBlockchainQueryServiceException } from "./models/ManagedBlockchainQueryServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ServiceException as __ServiceException,
|
|
3
|
+
ServiceExceptionOptions as __ServiceExceptionOptions,
|
|
4
|
+
} from "@smithy/smithy-client";
|
|
5
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
6
|
+
export declare class ManagedBlockchainQueryServiceException extends __ServiceException {
|
|
7
|
+
constructor(options: __ServiceExceptionOptions);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { ManagedBlockchainQueryServiceException as __BaseException } from "./ManagedBlockchainQueryServiceException";
|
|
3
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
4
|
+
readonly name: "AccessDeniedException";
|
|
5
|
+
readonly $fault: "client";
|
|
6
|
+
constructor(
|
|
7
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
export interface BlockchainInstant {
|
|
11
|
+
time?: Date;
|
|
12
|
+
}
|
|
13
|
+
export interface OwnerIdentifier {
|
|
14
|
+
address: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare const QueryNetwork: {
|
|
17
|
+
readonly BITCOIN_MAINNET: "BITCOIN_MAINNET";
|
|
18
|
+
readonly ETHEREUM_MAINNET: "ETHEREUM_MAINNET";
|
|
19
|
+
};
|
|
20
|
+
export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork];
|
|
21
|
+
export interface TokenIdentifier {
|
|
22
|
+
network: QueryNetwork | string | undefined;
|
|
23
|
+
contractAddress?: string;
|
|
24
|
+
tokenId?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface BatchGetTokenBalanceInputItem {
|
|
27
|
+
tokenIdentifier: TokenIdentifier | undefined;
|
|
28
|
+
ownerIdentifier: OwnerIdentifier | undefined;
|
|
29
|
+
atBlockchainInstant?: BlockchainInstant;
|
|
30
|
+
}
|
|
31
|
+
export interface BatchGetTokenBalanceInput {
|
|
32
|
+
getTokenBalanceInputs?: BatchGetTokenBalanceInputItem[];
|
|
33
|
+
}
|
|
34
|
+
export declare const ErrorType: {
|
|
35
|
+
readonly RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION";
|
|
36
|
+
readonly VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION";
|
|
37
|
+
};
|
|
38
|
+
export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
39
|
+
export interface BatchGetTokenBalanceErrorItem {
|
|
40
|
+
tokenIdentifier?: TokenIdentifier;
|
|
41
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
42
|
+
atBlockchainInstant?: BlockchainInstant;
|
|
43
|
+
errorCode: string | undefined;
|
|
44
|
+
errorMessage: string | undefined;
|
|
45
|
+
errorType: ErrorType | string | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface BatchGetTokenBalanceOutputItem {
|
|
48
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
49
|
+
tokenIdentifier?: TokenIdentifier;
|
|
50
|
+
balance: string | undefined;
|
|
51
|
+
atBlockchainInstant: BlockchainInstant | undefined;
|
|
52
|
+
lastUpdatedTime?: BlockchainInstant;
|
|
53
|
+
}
|
|
54
|
+
export interface BatchGetTokenBalanceOutput {
|
|
55
|
+
tokenBalances: BatchGetTokenBalanceOutputItem[] | undefined;
|
|
56
|
+
errors: BatchGetTokenBalanceErrorItem[] | undefined;
|
|
57
|
+
}
|
|
58
|
+
export declare class InternalServerException extends __BaseException {
|
|
59
|
+
readonly name: "InternalServerException";
|
|
60
|
+
readonly $fault: "server";
|
|
61
|
+
$retryable: {};
|
|
62
|
+
retryAfterSeconds?: number;
|
|
63
|
+
constructor(
|
|
64
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
export declare const ResourceType: {
|
|
68
|
+
readonly COLLECTION: "collection";
|
|
69
|
+
};
|
|
70
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
71
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
72
|
+
readonly name: "ResourceNotFoundException";
|
|
73
|
+
readonly $fault: "client";
|
|
74
|
+
resourceId: string | undefined;
|
|
75
|
+
resourceType: ResourceType | string | undefined;
|
|
76
|
+
constructor(
|
|
77
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
81
|
+
readonly name: "ServiceQuotaExceededException";
|
|
82
|
+
readonly $fault: "client";
|
|
83
|
+
resourceId: string | undefined;
|
|
84
|
+
resourceType: ResourceType | string | undefined;
|
|
85
|
+
serviceCode: string | undefined;
|
|
86
|
+
quotaCode: string | undefined;
|
|
87
|
+
constructor(
|
|
88
|
+
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
export declare class ThrottlingException extends __BaseException {
|
|
92
|
+
readonly name: "ThrottlingException";
|
|
93
|
+
readonly $fault: "client";
|
|
94
|
+
$retryable: {
|
|
95
|
+
throttling: boolean;
|
|
96
|
+
};
|
|
97
|
+
serviceCode: string | undefined;
|
|
98
|
+
quotaCode: string | undefined;
|
|
99
|
+
retryAfterSeconds?: number;
|
|
100
|
+
constructor(
|
|
101
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
export interface ValidationExceptionField {
|
|
105
|
+
name: string | undefined;
|
|
106
|
+
message: string | undefined;
|
|
107
|
+
}
|
|
108
|
+
export declare const ValidationExceptionReason: {
|
|
109
|
+
readonly CANNOT_PARSE: "cannotParse";
|
|
110
|
+
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
111
|
+
readonly OTHER: "other";
|
|
112
|
+
readonly UNKNOWN_OPERATION: "unknownOperation";
|
|
113
|
+
};
|
|
114
|
+
export type ValidationExceptionReason =
|
|
115
|
+
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
116
|
+
export declare class ValidationException extends __BaseException {
|
|
117
|
+
readonly name: "ValidationException";
|
|
118
|
+
readonly $fault: "client";
|
|
119
|
+
reason: ValidationExceptionReason | string | undefined;
|
|
120
|
+
fieldList?: ValidationExceptionField[];
|
|
121
|
+
constructor(
|
|
122
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
export interface GetTokenBalanceInput {
|
|
126
|
+
tokenIdentifier: TokenIdentifier | undefined;
|
|
127
|
+
ownerIdentifier: OwnerIdentifier | undefined;
|
|
128
|
+
atBlockchainInstant?: BlockchainInstant;
|
|
129
|
+
}
|
|
130
|
+
export interface GetTokenBalanceOutput {
|
|
131
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
132
|
+
tokenIdentifier?: TokenIdentifier;
|
|
133
|
+
balance: string | undefined;
|
|
134
|
+
atBlockchainInstant: BlockchainInstant | undefined;
|
|
135
|
+
lastUpdatedTime?: BlockchainInstant;
|
|
136
|
+
}
|
|
137
|
+
export interface GetTransactionInput {
|
|
138
|
+
transactionHash: string | undefined;
|
|
139
|
+
network: QueryNetwork | string | undefined;
|
|
140
|
+
}
|
|
141
|
+
export declare const QueryTransactionStatus: {
|
|
142
|
+
readonly FAILED: "FAILED";
|
|
143
|
+
readonly FINAL: "FINAL";
|
|
144
|
+
};
|
|
145
|
+
export type QueryTransactionStatus =
|
|
146
|
+
(typeof QueryTransactionStatus)[keyof typeof QueryTransactionStatus];
|
|
147
|
+
export interface Transaction {
|
|
148
|
+
network: QueryNetwork | string | undefined;
|
|
149
|
+
blockHash?: string;
|
|
150
|
+
transactionHash: string | undefined;
|
|
151
|
+
blockNumber?: string;
|
|
152
|
+
transactionTimestamp: Date | undefined;
|
|
153
|
+
transactionIndex: number | undefined;
|
|
154
|
+
numberOfTransactions: number | undefined;
|
|
155
|
+
status: QueryTransactionStatus | string | undefined;
|
|
156
|
+
to: string | undefined;
|
|
157
|
+
from?: string;
|
|
158
|
+
contractAddress?: string;
|
|
159
|
+
gasUsed?: string;
|
|
160
|
+
cumulativeGasUsed?: string;
|
|
161
|
+
effectiveGasPrice?: string;
|
|
162
|
+
signatureV?: number;
|
|
163
|
+
signatureR?: string;
|
|
164
|
+
signatureS?: string;
|
|
165
|
+
transactionFee?: string;
|
|
166
|
+
transactionId?: string;
|
|
167
|
+
}
|
|
168
|
+
export interface GetTransactionOutput {
|
|
169
|
+
transaction: Transaction | undefined;
|
|
170
|
+
}
|
|
171
|
+
export interface OwnerFilter {
|
|
172
|
+
address: string | undefined;
|
|
173
|
+
}
|
|
174
|
+
export interface TokenFilter {
|
|
175
|
+
network: QueryNetwork | string | undefined;
|
|
176
|
+
contractAddress?: string;
|
|
177
|
+
tokenId?: string;
|
|
178
|
+
}
|
|
179
|
+
export interface ListTokenBalancesInput {
|
|
180
|
+
ownerFilter?: OwnerFilter;
|
|
181
|
+
tokenFilter: TokenFilter | undefined;
|
|
182
|
+
nextToken?: string;
|
|
183
|
+
maxResults?: number;
|
|
184
|
+
}
|
|
185
|
+
export interface TokenBalance {
|
|
186
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
187
|
+
tokenIdentifier?: TokenIdentifier;
|
|
188
|
+
balance: string | undefined;
|
|
189
|
+
atBlockchainInstant: BlockchainInstant | undefined;
|
|
190
|
+
lastUpdatedTime?: BlockchainInstant;
|
|
191
|
+
}
|
|
192
|
+
export interface ListTokenBalancesOutput {
|
|
193
|
+
tokenBalances: TokenBalance[] | undefined;
|
|
194
|
+
nextToken?: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ListTransactionEventsInput {
|
|
197
|
+
transactionHash: string | undefined;
|
|
198
|
+
network: QueryNetwork | string | undefined;
|
|
199
|
+
nextToken?: string;
|
|
200
|
+
maxResults?: number;
|
|
201
|
+
}
|
|
202
|
+
export declare const QueryTransactionEventType: {
|
|
203
|
+
readonly BITCOIN_VIN: "BITCOIN_VIN";
|
|
204
|
+
readonly BITCOIN_VOUT: "BITCOIN_VOUT";
|
|
205
|
+
readonly ERC1155_TRANSFER: "ERC1155_TRANSFER";
|
|
206
|
+
readonly ERC20_BURN: "ERC20_BURN";
|
|
207
|
+
readonly ERC20_DEPOSIT: "ERC20_DEPOSIT";
|
|
208
|
+
readonly ERC20_MINT: "ERC20_MINT";
|
|
209
|
+
readonly ERC20_TRANSFER: "ERC20_TRANSFER";
|
|
210
|
+
readonly ERC20_WITHDRAWAL: "ERC20_WITHDRAWAL";
|
|
211
|
+
readonly ERC721_TRANSFER: "ERC721_TRANSFER";
|
|
212
|
+
readonly ETH_TRANSFER: "ETH_TRANSFER";
|
|
213
|
+
readonly INTERNAL_ETH_TRANSFER: "INTERNAL_ETH_TRANSFER";
|
|
214
|
+
};
|
|
215
|
+
export type QueryTransactionEventType =
|
|
216
|
+
(typeof QueryTransactionEventType)[keyof typeof QueryTransactionEventType];
|
|
217
|
+
export interface TransactionEvent {
|
|
218
|
+
network: QueryNetwork | string | undefined;
|
|
219
|
+
transactionHash: string | undefined;
|
|
220
|
+
eventType: QueryTransactionEventType | string | undefined;
|
|
221
|
+
from?: string;
|
|
222
|
+
to?: string;
|
|
223
|
+
value?: string;
|
|
224
|
+
contractAddress?: string;
|
|
225
|
+
tokenId?: string;
|
|
226
|
+
transactionId?: string;
|
|
227
|
+
voutIndex?: number;
|
|
228
|
+
}
|
|
229
|
+
export interface ListTransactionEventsOutput {
|
|
230
|
+
events: TransactionEvent[] | undefined;
|
|
231
|
+
nextToken?: string;
|
|
232
|
+
}
|
|
233
|
+
export declare const ListTransactionsSortBy: {
|
|
234
|
+
readonly TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP";
|
|
235
|
+
};
|
|
236
|
+
export type ListTransactionsSortBy =
|
|
237
|
+
(typeof ListTransactionsSortBy)[keyof typeof ListTransactionsSortBy];
|
|
238
|
+
export declare const SortOrder: {
|
|
239
|
+
readonly ASCENDING: "ASCENDING";
|
|
240
|
+
readonly DESCENDING: "DESCENDING";
|
|
241
|
+
};
|
|
242
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
243
|
+
export interface ListTransactionsSort {
|
|
244
|
+
sortBy?: ListTransactionsSortBy | string;
|
|
245
|
+
sortOrder?: SortOrder | string;
|
|
246
|
+
}
|
|
247
|
+
export interface ListTransactionsInput {
|
|
248
|
+
address: string | undefined;
|
|
249
|
+
network: QueryNetwork | string | undefined;
|
|
250
|
+
fromBlockchainInstant?: BlockchainInstant;
|
|
251
|
+
toBlockchainInstant?: BlockchainInstant;
|
|
252
|
+
sort?: ListTransactionsSort;
|
|
253
|
+
nextToken?: string;
|
|
254
|
+
maxResults?: number;
|
|
255
|
+
}
|
|
256
|
+
export interface TransactionOutputItem {
|
|
257
|
+
transactionHash: string | undefined;
|
|
258
|
+
network: QueryNetwork | string | undefined;
|
|
259
|
+
transactionTimestamp: Date | undefined;
|
|
260
|
+
}
|
|
261
|
+
export interface ListTransactionsOutput {
|
|
262
|
+
transactions: TransactionOutputItem[] | undefined;
|
|
263
|
+
nextToken?: string;
|
|
264
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@smithy/types";
|
|
2
|
+
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
|
|
3
|
+
export interface ManagedBlockchainQueryPaginationConfiguration
|
|
4
|
+
extends PaginationConfiguration {
|
|
5
|
+
client: ManagedBlockchainQueryClient;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListTokenBalancesCommandInput,
|
|
4
|
+
ListTokenBalancesCommandOutput,
|
|
5
|
+
} from "../commands/ListTokenBalancesCommand";
|
|
6
|
+
import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateListTokenBalances(
|
|
8
|
+
config: ManagedBlockchainQueryPaginationConfiguration,
|
|
9
|
+
input: ListTokenBalancesCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<ListTokenBalancesCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListTransactionEventsCommandInput,
|
|
4
|
+
ListTransactionEventsCommandOutput,
|
|
5
|
+
} from "../commands/ListTransactionEventsCommand";
|
|
6
|
+
import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateListTransactionEvents(
|
|
8
|
+
config: ManagedBlockchainQueryPaginationConfiguration,
|
|
9
|
+
input: ListTransactionEventsCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<ListTransactionEventsCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListTransactionsCommandInput,
|
|
4
|
+
ListTransactionsCommandOutput,
|
|
5
|
+
} from "../commands/ListTransactionsCommand";
|
|
6
|
+
import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateListTransactions(
|
|
8
|
+
config: ManagedBlockchainQueryPaginationConfiguration,
|
|
9
|
+
input: ListTransactionsCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<ListTransactionsCommandOutput>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpRequest as __HttpRequest,
|
|
3
|
+
HttpResponse as __HttpResponse,
|
|
4
|
+
} from "@smithy/protocol-http";
|
|
5
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
+
import {
|
|
7
|
+
BatchGetTokenBalanceCommandInput,
|
|
8
|
+
BatchGetTokenBalanceCommandOutput,
|
|
9
|
+
} from "../commands/BatchGetTokenBalanceCommand";
|
|
10
|
+
import {
|
|
11
|
+
GetTokenBalanceCommandInput,
|
|
12
|
+
GetTokenBalanceCommandOutput,
|
|
13
|
+
} from "../commands/GetTokenBalanceCommand";
|
|
14
|
+
import {
|
|
15
|
+
GetTransactionCommandInput,
|
|
16
|
+
GetTransactionCommandOutput,
|
|
17
|
+
} from "../commands/GetTransactionCommand";
|
|
18
|
+
import {
|
|
19
|
+
ListTokenBalancesCommandInput,
|
|
20
|
+
ListTokenBalancesCommandOutput,
|
|
21
|
+
} from "../commands/ListTokenBalancesCommand";
|
|
22
|
+
import {
|
|
23
|
+
ListTransactionEventsCommandInput,
|
|
24
|
+
ListTransactionEventsCommandOutput,
|
|
25
|
+
} from "../commands/ListTransactionEventsCommand";
|
|
26
|
+
import {
|
|
27
|
+
ListTransactionsCommandInput,
|
|
28
|
+
ListTransactionsCommandOutput,
|
|
29
|
+
} from "../commands/ListTransactionsCommand";
|
|
30
|
+
export declare const se_BatchGetTokenBalanceCommand: (
|
|
31
|
+
input: BatchGetTokenBalanceCommandInput,
|
|
32
|
+
context: __SerdeContext
|
|
33
|
+
) => Promise<__HttpRequest>;
|
|
34
|
+
export declare const se_GetTokenBalanceCommand: (
|
|
35
|
+
input: GetTokenBalanceCommandInput,
|
|
36
|
+
context: __SerdeContext
|
|
37
|
+
) => Promise<__HttpRequest>;
|
|
38
|
+
export declare const se_GetTransactionCommand: (
|
|
39
|
+
input: GetTransactionCommandInput,
|
|
40
|
+
context: __SerdeContext
|
|
41
|
+
) => Promise<__HttpRequest>;
|
|
42
|
+
export declare const se_ListTokenBalancesCommand: (
|
|
43
|
+
input: ListTokenBalancesCommandInput,
|
|
44
|
+
context: __SerdeContext
|
|
45
|
+
) => Promise<__HttpRequest>;
|
|
46
|
+
export declare const se_ListTransactionEventsCommand: (
|
|
47
|
+
input: ListTransactionEventsCommandInput,
|
|
48
|
+
context: __SerdeContext
|
|
49
|
+
) => Promise<__HttpRequest>;
|
|
50
|
+
export declare const se_ListTransactionsCommand: (
|
|
51
|
+
input: ListTransactionsCommandInput,
|
|
52
|
+
context: __SerdeContext
|
|
53
|
+
) => Promise<__HttpRequest>;
|
|
54
|
+
export declare const de_BatchGetTokenBalanceCommand: (
|
|
55
|
+
output: __HttpResponse,
|
|
56
|
+
context: __SerdeContext
|
|
57
|
+
) => Promise<BatchGetTokenBalanceCommandOutput>;
|
|
58
|
+
export declare const de_GetTokenBalanceCommand: (
|
|
59
|
+
output: __HttpResponse,
|
|
60
|
+
context: __SerdeContext
|
|
61
|
+
) => Promise<GetTokenBalanceCommandOutput>;
|
|
62
|
+
export declare const de_GetTransactionCommand: (
|
|
63
|
+
output: __HttpResponse,
|
|
64
|
+
context: __SerdeContext
|
|
65
|
+
) => Promise<GetTransactionCommandOutput>;
|
|
66
|
+
export declare const de_ListTokenBalancesCommand: (
|
|
67
|
+
output: __HttpResponse,
|
|
68
|
+
context: __SerdeContext
|
|
69
|
+
) => Promise<ListTokenBalancesCommandOutput>;
|
|
70
|
+
export declare const de_ListTransactionEventsCommand: (
|
|
71
|
+
output: __HttpResponse,
|
|
72
|
+
context: __SerdeContext
|
|
73
|
+
) => Promise<ListTransactionEventsCommandOutput>;
|
|
74
|
+
export declare const de_ListTransactionsCommand: (
|
|
75
|
+
output: __HttpResponse,
|
|
76
|
+
context: __SerdeContext
|
|
77
|
+
) => Promise<ListTransactionsCommandOutput>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { ManagedBlockchainQueryClientConfig } from "./ManagedBlockchainQueryClient";
|
|
3
|
+
export declare const getRuntimeConfig: (
|
|
4
|
+
config: ManagedBlockchainQueryClientConfig
|
|
5
|
+
) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
8
|
+
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
9
|
+
>;
|
|
10
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
+
credentialDefaultProvider: (
|
|
12
|
+
input: any
|
|
13
|
+
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
14
|
+
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
15
|
+
import("@smithy/types").UserAgent
|
|
16
|
+
>;
|
|
17
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
18
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
19
|
+
requestHandler:
|
|
20
|
+
| (import("@smithy/types").RequestHandler<
|
|
21
|
+
any,
|
|
22
|
+
any,
|
|
23
|
+
import("@smithy/types").HttpHandlerOptions
|
|
24
|
+
> &
|
|
25
|
+
import("@smithy/protocol-http").HttpHandler)
|
|
26
|
+
| RequestHandler;
|
|
27
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
29
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
30
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
31
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
32
|
+
apiVersion: string;
|
|
33
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
34
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
35
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
36
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
37
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
38
|
+
disableHostPrefix: boolean;
|
|
39
|
+
serviceId: string;
|
|
40
|
+
logger: import("@smithy/types").Logger;
|
|
41
|
+
endpoint?:
|
|
42
|
+
| ((
|
|
43
|
+
| string
|
|
44
|
+
| import("@smithy/types").Endpoint
|
|
45
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
46
|
+
| import("@smithy/types").EndpointV2
|
|
47
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
48
|
+
) &
|
|
49
|
+
(
|
|
50
|
+
| string
|
|
51
|
+
| import("@smithy/types").Provider<string>
|
|
52
|
+
| import("@smithy/types").Endpoint
|
|
53
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
54
|
+
| import("@smithy/types").EndpointV2
|
|
55
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
56
|
+
))
|
|
57
|
+
| undefined;
|
|
58
|
+
endpointProvider: (
|
|
59
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
60
|
+
context?: {
|
|
61
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
62
|
+
}
|
|
63
|
+
) => import("@smithy/types").EndpointV2;
|
|
64
|
+
tls?: boolean | undefined;
|
|
65
|
+
retryStrategy?:
|
|
66
|
+
| import("@smithy/types").RetryStrategy
|
|
67
|
+
| import("@smithy/types").RetryStrategyV2
|
|
68
|
+
| undefined;
|
|
69
|
+
credentials?:
|
|
70
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
71
|
+
| import("@smithy/types").Provider<
|
|
72
|
+
import("@smithy/types").AwsCredentialIdentity
|
|
73
|
+
>
|
|
74
|
+
| undefined;
|
|
75
|
+
signer?:
|
|
76
|
+
| import("@smithy/types").RequestSigner
|
|
77
|
+
| ((
|
|
78
|
+
authScheme?: import("@smithy/types").AuthScheme | undefined
|
|
79
|
+
) => Promise<import("@smithy/types").RequestSigner>)
|
|
80
|
+
| undefined;
|
|
81
|
+
signingEscapePath?: boolean | undefined;
|
|
82
|
+
systemClockOffset?: number | undefined;
|
|
83
|
+
signingRegion?: string | undefined;
|
|
84
|
+
signerConstructor?:
|
|
85
|
+
| (new (
|
|
86
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
87
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
88
|
+
) => import("@smithy/types").RequestSigner)
|
|
89
|
+
| undefined;
|
|
90
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
91
|
+
};
|