@aws-sdk/client-managedblockchain-query 3.535.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 +7 -0
- package/dist-types/ManagedBlockchainQueryClient.d.ts +3 -2
- 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 +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +326 -129
- 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 +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 +1 -1
|
@@ -12,6 +12,17 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
12
12
|
*/
|
|
13
13
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* <p>This is the container for the unique public address on the blockchain.</p>
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface AddressIdentifierFilter {
|
|
20
|
+
/**
|
|
21
|
+
* <p>The container for the recipient address of the transaction. </p>
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
transactionEventToAddress: string[] | undefined;
|
|
25
|
+
}
|
|
15
26
|
/**
|
|
16
27
|
* @public
|
|
17
28
|
* @enum
|
|
@@ -105,7 +116,7 @@ export interface BlockchainInstant {
|
|
|
105
116
|
time?: Date;
|
|
106
117
|
}
|
|
107
118
|
/**
|
|
108
|
-
* <p>The container for the identifier
|
|
119
|
+
* <p>The container for the owner identifier.</p>
|
|
109
120
|
* @public
|
|
110
121
|
*/
|
|
111
122
|
export interface OwnerIdentifier {
|
|
@@ -160,7 +171,7 @@ export interface BatchGetTokenBalanceInputItem {
|
|
|
160
171
|
*/
|
|
161
172
|
tokenIdentifier: TokenIdentifier | undefined;
|
|
162
173
|
/**
|
|
163
|
-
* <p>The container for the identifier
|
|
174
|
+
* <p>The container for the owner identifier.</p>
|
|
164
175
|
* @public
|
|
165
176
|
*/
|
|
166
177
|
ownerIdentifier: OwnerIdentifier | undefined;
|
|
@@ -213,7 +224,7 @@ export interface BatchGetTokenBalanceErrorItem {
|
|
|
213
224
|
*/
|
|
214
225
|
tokenIdentifier?: TokenIdentifier;
|
|
215
226
|
/**
|
|
216
|
-
* <p>The container for the identifier
|
|
227
|
+
* <p>The container for the owner identifier.</p>
|
|
217
228
|
* @public
|
|
218
229
|
*/
|
|
219
230
|
ownerIdentifier?: OwnerIdentifier;
|
|
@@ -244,7 +255,7 @@ export interface BatchGetTokenBalanceErrorItem {
|
|
|
244
255
|
*/
|
|
245
256
|
export interface BatchGetTokenBalanceOutputItem {
|
|
246
257
|
/**
|
|
247
|
-
* <p>The container for the identifier
|
|
258
|
+
* <p>The container for the owner identifier.</p>
|
|
248
259
|
* @public
|
|
249
260
|
*/
|
|
250
261
|
ownerIdentifier?: OwnerIdentifier;
|
|
@@ -297,7 +308,7 @@ export declare class InternalServerException extends __BaseException {
|
|
|
297
308
|
readonly $fault: "server";
|
|
298
309
|
$retryable: {};
|
|
299
310
|
/**
|
|
300
|
-
* <p>
|
|
311
|
+
* <p>Specifies the <code>retryAfterSeconds</code> value.</p>
|
|
301
312
|
* @public
|
|
302
313
|
*/
|
|
303
314
|
retryAfterSeconds?: number;
|
|
@@ -603,7 +614,7 @@ export interface GetTokenBalanceInput {
|
|
|
603
614
|
*/
|
|
604
615
|
export interface GetTokenBalanceOutput {
|
|
605
616
|
/**
|
|
606
|
-
* <p>The container for the identifier
|
|
617
|
+
* <p>The container for the owner identifier.</p>
|
|
607
618
|
* @public
|
|
608
619
|
*/
|
|
609
620
|
ownerIdentifier?: OwnerIdentifier;
|
|
@@ -637,7 +648,7 @@ export interface GetTokenBalanceOutput {
|
|
|
637
648
|
*/
|
|
638
649
|
export interface GetTransactionInput {
|
|
639
650
|
/**
|
|
640
|
-
* <p>The hash of
|
|
651
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
641
652
|
* @public
|
|
642
653
|
*/
|
|
643
654
|
transactionHash: string | undefined;
|
|
@@ -677,7 +688,7 @@ export interface Transaction {
|
|
|
677
688
|
*/
|
|
678
689
|
blockHash?: string;
|
|
679
690
|
/**
|
|
680
|
-
* <p>The hash of
|
|
691
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
681
692
|
* @public
|
|
682
693
|
*/
|
|
683
694
|
transactionHash: string | undefined;
|
|
@@ -753,7 +764,7 @@ export interface Transaction {
|
|
|
753
764
|
*/
|
|
754
765
|
transactionFee?: string;
|
|
755
766
|
/**
|
|
756
|
-
* <p>The
|
|
767
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
757
768
|
* @public
|
|
758
769
|
*/
|
|
759
770
|
transactionId?: string;
|
|
@@ -794,7 +805,7 @@ export interface ListAssetContractsInput {
|
|
|
794
805
|
nextToken?: string;
|
|
795
806
|
/**
|
|
796
807
|
* <p>The maximum number of contracts to list.</p>
|
|
797
|
-
* <p>Default
|
|
808
|
+
* <p>Default: <code>100</code>
|
|
798
809
|
* </p>
|
|
799
810
|
* <note>
|
|
800
811
|
* <p>Even if additional results can be retrieved, the request can return less
|
|
@@ -823,150 +834,124 @@ export interface ListAssetContractsOutput {
|
|
|
823
834
|
nextToken?: string;
|
|
824
835
|
}
|
|
825
836
|
/**
|
|
826
|
-
* <p>The container for the owner information to filter by.</p>
|
|
827
837
|
* @public
|
|
838
|
+
* @enum
|
|
828
839
|
*/
|
|
829
|
-
export
|
|
840
|
+
export declare const ListFilteredTransactionEventsSortBy: {
|
|
830
841
|
/**
|
|
831
|
-
*
|
|
832
|
-
* @public
|
|
842
|
+
* Timestamp of a transaction
|
|
833
843
|
*/
|
|
834
|
-
|
|
835
|
-
}
|
|
844
|
+
readonly blockchainInstant: "blockchainInstant";
|
|
845
|
+
};
|
|
836
846
|
/**
|
|
837
|
-
* <p>The container of the token filter like the contract address
|
|
838
|
-
* on a given blockchain network or a unique token identifier on a given
|
|
839
|
-
* blockchain network.</p>
|
|
840
|
-
* <note>
|
|
841
|
-
* <p>You must always specify the network property of this
|
|
842
|
-
* container when using this operation.</p>
|
|
843
|
-
* </note>
|
|
844
847
|
* @public
|
|
845
848
|
*/
|
|
846
|
-
export
|
|
847
|
-
/**
|
|
848
|
-
* <p>The blockchain network of the token.</p>
|
|
849
|
-
* @public
|
|
850
|
-
*/
|
|
851
|
-
network: QueryNetwork | undefined;
|
|
852
|
-
/**
|
|
853
|
-
* <p>This is the address of the contract.</p>
|
|
854
|
-
* @public
|
|
855
|
-
*/
|
|
856
|
-
contractAddress?: string;
|
|
857
|
-
/**
|
|
858
|
-
* <p>The unique identifier of the token.</p>
|
|
859
|
-
* @public
|
|
860
|
-
*/
|
|
861
|
-
tokenId?: string;
|
|
862
|
-
}
|
|
849
|
+
export type ListFilteredTransactionEventsSortBy = (typeof ListFilteredTransactionEventsSortBy)[keyof typeof ListFilteredTransactionEventsSortBy];
|
|
863
850
|
/**
|
|
864
851
|
* @public
|
|
852
|
+
* @enum
|
|
865
853
|
*/
|
|
866
|
-
export
|
|
854
|
+
export declare const SortOrder: {
|
|
867
855
|
/**
|
|
868
|
-
*
|
|
869
|
-
* request. You must specify the <code>address</code> property of the <code>ownerFilter</code>
|
|
870
|
-
* when listing balances of tokens owned by the address.</p>
|
|
871
|
-
* @public
|
|
856
|
+
* Result sorted in ascending order
|
|
872
857
|
*/
|
|
873
|
-
|
|
858
|
+
readonly ASCENDING: "ASCENDING";
|
|
874
859
|
/**
|
|
875
|
-
*
|
|
876
|
-
* blockchain network by which to filter the request. You must specify the <code>contractAddress</code>
|
|
877
|
-
* property of this container when listing tokens minted by a contract.</p>
|
|
878
|
-
* <note>
|
|
879
|
-
* <p>You must always specify the network property of this
|
|
880
|
-
* container when using this operation.</p>
|
|
881
|
-
* </note>
|
|
882
|
-
* @public
|
|
860
|
+
* Result sorted in descending order
|
|
883
861
|
*/
|
|
884
|
-
|
|
862
|
+
readonly DESCENDING: "DESCENDING";
|
|
863
|
+
};
|
|
864
|
+
/**
|
|
865
|
+
* @public
|
|
866
|
+
*/
|
|
867
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
868
|
+
/**
|
|
869
|
+
* <p>Lists all the transaction events for an address on the blockchain.</p>
|
|
870
|
+
* <note>
|
|
871
|
+
* <p>This operation is only supported on the Bitcoin blockchain networks.</p>
|
|
872
|
+
* </note>
|
|
873
|
+
* @public
|
|
874
|
+
*/
|
|
875
|
+
export interface ListFilteredTransactionEventsSort {
|
|
885
876
|
/**
|
|
886
|
-
* <p>
|
|
877
|
+
* <p>Container on how the results will be sorted by?</p>
|
|
887
878
|
* @public
|
|
888
879
|
*/
|
|
889
|
-
|
|
880
|
+
sortBy?: ListFilteredTransactionEventsSortBy;
|
|
890
881
|
/**
|
|
891
|
-
* <p>The
|
|
892
|
-
* <
|
|
893
|
-
* </
|
|
894
|
-
* <
|
|
895
|
-
* <p>Even if additional results can be retrieved, the request can return less
|
|
896
|
-
* results than <code>maxResults</code> or an empty array of results.</p>
|
|
897
|
-
* <p>To retrieve the next set of results, make another request with the
|
|
898
|
-
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
|
|
899
|
-
* <code>null</code> when there are no more results to return</p>
|
|
900
|
-
* </note>
|
|
882
|
+
* <p>The container for the <i>sort order</i> for <code>ListFilteredTransactionEvents</code>.
|
|
883
|
+
* The <code>SortOrder</code> field only accepts the values <code>ASCENDING</code>
|
|
884
|
+
* and <code>DESCENDING</code>. Not providing <code>SortOrder</code> will default
|
|
885
|
+
* to <code>ASCENDING</code>.</p>
|
|
901
886
|
* @public
|
|
902
887
|
*/
|
|
903
|
-
|
|
888
|
+
sortOrder?: SortOrder;
|
|
904
889
|
}
|
|
905
890
|
/**
|
|
906
|
-
* <p>
|
|
891
|
+
* <p>This container is used to specify a time frame.</p>
|
|
907
892
|
* @public
|
|
908
893
|
*/
|
|
909
|
-
export interface
|
|
894
|
+
export interface TimeFilter {
|
|
910
895
|
/**
|
|
911
|
-
* <p>The container for
|
|
896
|
+
* <p>The container for time.</p>
|
|
912
897
|
* @public
|
|
913
898
|
*/
|
|
914
|
-
|
|
899
|
+
from?: BlockchainInstant;
|
|
915
900
|
/**
|
|
916
|
-
* <p>The
|
|
901
|
+
* <p>The container for time.</p>
|
|
917
902
|
* @public
|
|
918
903
|
*/
|
|
919
|
-
|
|
904
|
+
to?: BlockchainInstant;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* <p>This container specifies filtering attributes related to <code>BITCOIN_VOUT</code> event types</p>
|
|
908
|
+
* @public
|
|
909
|
+
*/
|
|
910
|
+
export interface VoutFilter {
|
|
920
911
|
/**
|
|
921
|
-
* <p>
|
|
912
|
+
* <p>Specifies if the transaction output is spent or unspent.</p>
|
|
922
913
|
* @public
|
|
923
914
|
*/
|
|
924
|
-
|
|
915
|
+
voutSpent: boolean | undefined;
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* @public
|
|
919
|
+
*/
|
|
920
|
+
export interface ListFilteredTransactionEventsInput {
|
|
925
921
|
/**
|
|
926
|
-
* <p>The
|
|
927
|
-
*
|
|
928
|
-
*
|
|
929
|
-
* <p>This time will only be recorded up to the second.</p>
|
|
930
|
-
* </note>
|
|
922
|
+
* <p>The blockchain network where the transaction occurred.</p>
|
|
923
|
+
* <p>Valid Values: <code>BITCOIN_MAINNET</code> | <code>BITCOIN_TESTNET</code>
|
|
924
|
+
* </p>
|
|
931
925
|
* @public
|
|
932
926
|
*/
|
|
933
|
-
|
|
927
|
+
network: string | undefined;
|
|
934
928
|
/**
|
|
935
|
-
* <p>
|
|
929
|
+
* <p>This is the unique public address on the blockchain for which the transaction events are being requested.</p>
|
|
936
930
|
* @public
|
|
937
931
|
*/
|
|
938
|
-
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* @public
|
|
942
|
-
*/
|
|
943
|
-
export interface ListTokenBalancesOutput {
|
|
932
|
+
addressIdentifierFilter: AddressIdentifierFilter | undefined;
|
|
944
933
|
/**
|
|
945
|
-
* <p>
|
|
946
|
-
* the token balance.</p>
|
|
934
|
+
* <p>This container specifies the time frame for the transaction events returned in the response.</p>
|
|
947
935
|
* @public
|
|
948
936
|
*/
|
|
949
|
-
|
|
937
|
+
timeFilter?: TimeFilter;
|
|
950
938
|
/**
|
|
951
|
-
* <p>
|
|
939
|
+
* <p>This container specifies filtering attributes related to BITCOIN_VOUT event types</p>
|
|
952
940
|
* @public
|
|
953
941
|
*/
|
|
954
|
-
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* @public
|
|
958
|
-
*/
|
|
959
|
-
export interface ListTransactionEventsInput {
|
|
942
|
+
voutFilter?: VoutFilter;
|
|
960
943
|
/**
|
|
961
|
-
* <p>The
|
|
944
|
+
* <p>The container for the <code>ConfirmationStatusFilter</code> that filters for the <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">
|
|
945
|
+
* <i>finality</i>
|
|
946
|
+
* </a> of the results.</p>
|
|
962
947
|
* @public
|
|
963
948
|
*/
|
|
964
|
-
|
|
949
|
+
confirmationStatusFilter?: ConfirmationStatusFilter;
|
|
965
950
|
/**
|
|
966
|
-
* <p>The
|
|
951
|
+
* <p>The order by which the results will be sorted.</p>
|
|
967
952
|
* @public
|
|
968
953
|
*/
|
|
969
|
-
|
|
954
|
+
sort?: ListFilteredTransactionEventsSort;
|
|
970
955
|
/**
|
|
971
956
|
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
972
957
|
* @public
|
|
@@ -974,7 +959,7 @@ export interface ListTransactionEventsInput {
|
|
|
974
959
|
nextToken?: string;
|
|
975
960
|
/**
|
|
976
961
|
* <p>The maximum number of transaction events to list.</p>
|
|
977
|
-
* <p>Default
|
|
962
|
+
* <p>Default: <code>100</code>
|
|
978
963
|
* </p>
|
|
979
964
|
* <note>
|
|
980
965
|
* <p>Even if additional results can be retrieved, the request can return less
|
|
@@ -1052,7 +1037,7 @@ export interface TransactionEvent {
|
|
|
1052
1037
|
*/
|
|
1053
1038
|
network: QueryNetwork | undefined;
|
|
1054
1039
|
/**
|
|
1055
|
-
* <p>The hash of
|
|
1040
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
1056
1041
|
* @public
|
|
1057
1042
|
*/
|
|
1058
1043
|
transactionHash: string | undefined;
|
|
@@ -1077,7 +1062,7 @@ export interface TransactionEvent {
|
|
|
1077
1062
|
*/
|
|
1078
1063
|
value?: string;
|
|
1079
1064
|
/**
|
|
1080
|
-
* <p>The blockchain address
|
|
1065
|
+
* <p>The blockchain address for the contract</p>
|
|
1081
1066
|
* @public
|
|
1082
1067
|
*/
|
|
1083
1068
|
contractAddress?: string;
|
|
@@ -1087,23 +1072,64 @@ export interface TransactionEvent {
|
|
|
1087
1072
|
*/
|
|
1088
1073
|
tokenId?: string;
|
|
1089
1074
|
/**
|
|
1090
|
-
* <p>The
|
|
1075
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
1091
1076
|
* @public
|
|
1092
1077
|
*/
|
|
1093
1078
|
transactionId?: string;
|
|
1094
1079
|
/**
|
|
1095
|
-
* <p>The position of the
|
|
1080
|
+
* <p>The position of the transaction output in the transaction output list.</p>
|
|
1096
1081
|
* @public
|
|
1097
1082
|
*/
|
|
1098
1083
|
voutIndex?: number;
|
|
1084
|
+
/**
|
|
1085
|
+
* <p>Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types.</p>
|
|
1086
|
+
* <note>
|
|
1087
|
+
* <p>This is only returned for <code>BITCOIN_VOUT</code> event types.</p>
|
|
1088
|
+
* </note>
|
|
1089
|
+
* @public
|
|
1090
|
+
*/
|
|
1091
|
+
voutSpent?: boolean;
|
|
1092
|
+
/**
|
|
1093
|
+
* <p>The transactionId that <i>created</i> the spent transaction output.</p>
|
|
1094
|
+
* <note>
|
|
1095
|
+
* <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
|
|
1096
|
+
* </note>
|
|
1097
|
+
* @public
|
|
1098
|
+
*/
|
|
1099
|
+
spentVoutTransactionId?: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* <p>The transactionHash that <i>created</i> the spent transaction output.</p>
|
|
1102
|
+
* <note>
|
|
1103
|
+
* <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
|
|
1104
|
+
* </note>
|
|
1105
|
+
* @public
|
|
1106
|
+
*/
|
|
1107
|
+
spentVoutTransactionHash?: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* <p>The position of the spent transaction output in the output list of the <i>creating transaction</i>.</p>
|
|
1110
|
+
* <note>
|
|
1111
|
+
* <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
|
|
1112
|
+
* </note>
|
|
1113
|
+
* @public
|
|
1114
|
+
*/
|
|
1115
|
+
spentVoutIndex?: number;
|
|
1116
|
+
/**
|
|
1117
|
+
* <p>The container for time.</p>
|
|
1118
|
+
* @public
|
|
1119
|
+
*/
|
|
1120
|
+
blockchainInstant?: BlockchainInstant;
|
|
1121
|
+
/**
|
|
1122
|
+
* <p>This container specifies whether the transaction has reached Finality.</p>
|
|
1123
|
+
* @public
|
|
1124
|
+
*/
|
|
1125
|
+
confirmationStatus?: ConfirmationStatus;
|
|
1099
1126
|
}
|
|
1100
1127
|
/**
|
|
1101
1128
|
* @public
|
|
1102
1129
|
*/
|
|
1103
|
-
export interface
|
|
1130
|
+
export interface ListFilteredTransactionEventsOutput {
|
|
1104
1131
|
/**
|
|
1105
|
-
* <p>
|
|
1106
|
-
* about the transaction events.</p>
|
|
1132
|
+
* <p>The transaction events returned by the request.</p>
|
|
1107
1133
|
* @public
|
|
1108
1134
|
*/
|
|
1109
1135
|
events: TransactionEvent[] | undefined;
|
|
@@ -1114,37 +1140,209 @@ export interface ListTransactionEventsOutput {
|
|
|
1114
1140
|
nextToken?: string;
|
|
1115
1141
|
}
|
|
1116
1142
|
/**
|
|
1143
|
+
* <p>The container for the owner information to filter by.</p>
|
|
1117
1144
|
* @public
|
|
1118
|
-
* @enum
|
|
1119
1145
|
*/
|
|
1120
|
-
export
|
|
1146
|
+
export interface OwnerFilter {
|
|
1121
1147
|
/**
|
|
1122
|
-
*
|
|
1148
|
+
* <p>The contract or wallet address.</p>
|
|
1149
|
+
* @public
|
|
1123
1150
|
*/
|
|
1124
|
-
|
|
1125
|
-
}
|
|
1151
|
+
address: string | undefined;
|
|
1152
|
+
}
|
|
1126
1153
|
/**
|
|
1154
|
+
* <p>The container of the token filter like the contract address
|
|
1155
|
+
* on a given blockchain network or a unique token identifier on a given
|
|
1156
|
+
* blockchain network.</p>
|
|
1157
|
+
* <note>
|
|
1158
|
+
* <p>You must always specify the network property of this
|
|
1159
|
+
* container when using this operation.</p>
|
|
1160
|
+
* </note>
|
|
1127
1161
|
* @public
|
|
1128
1162
|
*/
|
|
1129
|
-
export
|
|
1163
|
+
export interface TokenFilter {
|
|
1164
|
+
/**
|
|
1165
|
+
* <p>The blockchain network of the token.</p>
|
|
1166
|
+
* @public
|
|
1167
|
+
*/
|
|
1168
|
+
network: QueryNetwork | undefined;
|
|
1169
|
+
/**
|
|
1170
|
+
* <p>This is the address of the contract.</p>
|
|
1171
|
+
* @public
|
|
1172
|
+
*/
|
|
1173
|
+
contractAddress?: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* <p>The unique identifier of the token.</p>
|
|
1176
|
+
* @public
|
|
1177
|
+
*/
|
|
1178
|
+
tokenId?: string;
|
|
1179
|
+
}
|
|
1130
1180
|
/**
|
|
1131
1181
|
* @public
|
|
1132
|
-
* @enum
|
|
1133
1182
|
*/
|
|
1134
|
-
export
|
|
1183
|
+
export interface ListTokenBalancesInput {
|
|
1135
1184
|
/**
|
|
1136
|
-
*
|
|
1185
|
+
* <p>The contract or wallet address on the blockchain network by which to filter the
|
|
1186
|
+
* request. You must specify the <code>address</code> property of the <code>ownerFilter</code>
|
|
1187
|
+
* when listing balances of tokens owned by the address.</p>
|
|
1188
|
+
* @public
|
|
1137
1189
|
*/
|
|
1138
|
-
|
|
1190
|
+
ownerFilter?: OwnerFilter;
|
|
1139
1191
|
/**
|
|
1140
|
-
*
|
|
1192
|
+
* <p>The contract address or a token identifier on the
|
|
1193
|
+
* blockchain network by which to filter the request. You must specify the <code>contractAddress</code>
|
|
1194
|
+
* property of this container when listing tokens minted by a contract.</p>
|
|
1195
|
+
* <note>
|
|
1196
|
+
* <p>You must always specify the network property of this
|
|
1197
|
+
* container when using this operation.</p>
|
|
1198
|
+
* </note>
|
|
1199
|
+
* @public
|
|
1141
1200
|
*/
|
|
1142
|
-
|
|
1201
|
+
tokenFilter: TokenFilter | undefined;
|
|
1202
|
+
/**
|
|
1203
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
1204
|
+
* @public
|
|
1205
|
+
*/
|
|
1206
|
+
nextToken?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* <p>The maximum number of token balances to return.</p>
|
|
1209
|
+
* <p>Default: <code>100</code>
|
|
1210
|
+
* </p>
|
|
1211
|
+
* <note>
|
|
1212
|
+
* <p>Even if additional results can be retrieved, the request can return less
|
|
1213
|
+
* results than <code>maxResults</code> or an empty array of results.</p>
|
|
1214
|
+
* <p>To retrieve the next set of results, make another request with the
|
|
1215
|
+
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
|
|
1216
|
+
* <code>null</code> when there are no more results to return</p>
|
|
1217
|
+
* </note>
|
|
1218
|
+
* @public
|
|
1219
|
+
*/
|
|
1220
|
+
maxResults?: number;
|
|
1221
|
+
}
|
|
1222
|
+
/**
|
|
1223
|
+
* <p>The balance of the token.</p>
|
|
1224
|
+
* @public
|
|
1225
|
+
*/
|
|
1226
|
+
export interface TokenBalance {
|
|
1227
|
+
/**
|
|
1228
|
+
* <p>The container for the identifier of the owner.</p>
|
|
1229
|
+
* @public
|
|
1230
|
+
*/
|
|
1231
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
1232
|
+
/**
|
|
1233
|
+
* <p>The identifier for the token, including the unique token ID and its blockchain network.</p>
|
|
1234
|
+
* @public
|
|
1235
|
+
*/
|
|
1236
|
+
tokenIdentifier?: TokenIdentifier;
|
|
1237
|
+
/**
|
|
1238
|
+
* <p>The container of the token balance.</p>
|
|
1239
|
+
* @public
|
|
1240
|
+
*/
|
|
1241
|
+
balance: string | undefined;
|
|
1242
|
+
/**
|
|
1243
|
+
* <p>The time for when the TokenBalance is requested or
|
|
1244
|
+
* the current time if a time is not provided in the request.</p>
|
|
1245
|
+
* <note>
|
|
1246
|
+
* <p>This time will only be recorded up to the second.</p>
|
|
1247
|
+
* </note>
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
atBlockchainInstant: BlockchainInstant | undefined;
|
|
1251
|
+
/**
|
|
1252
|
+
* <p>The <code>Timestamp</code> of the last transaction at which the balance for the token in the wallet was updated.</p>
|
|
1253
|
+
* @public
|
|
1254
|
+
*/
|
|
1255
|
+
lastUpdatedTime?: BlockchainInstant;
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
1258
|
+
* @public
|
|
1259
|
+
*/
|
|
1260
|
+
export interface ListTokenBalancesOutput {
|
|
1261
|
+
/**
|
|
1262
|
+
* <p>An array of <code>TokenBalance</code> objects. Each object contains details about
|
|
1263
|
+
* the token balance.</p>
|
|
1264
|
+
* @public
|
|
1265
|
+
*/
|
|
1266
|
+
tokenBalances: TokenBalance[] | undefined;
|
|
1267
|
+
/**
|
|
1268
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
1269
|
+
* @public
|
|
1270
|
+
*/
|
|
1271
|
+
nextToken?: string;
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* @public
|
|
1275
|
+
*/
|
|
1276
|
+
export interface ListTransactionEventsInput {
|
|
1277
|
+
/**
|
|
1278
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
1279
|
+
* @public
|
|
1280
|
+
*/
|
|
1281
|
+
transactionHash?: string;
|
|
1282
|
+
/**
|
|
1283
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
1284
|
+
* <note>
|
|
1285
|
+
* <p>
|
|
1286
|
+
* <code>transactionId</code> is only supported on the Bitcoin networks.</p>
|
|
1287
|
+
* </note>
|
|
1288
|
+
* @public
|
|
1289
|
+
*/
|
|
1290
|
+
transactionId?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* <p>The blockchain network where the transaction events occurred.</p>
|
|
1293
|
+
* @public
|
|
1294
|
+
*/
|
|
1295
|
+
network: QueryNetwork | undefined;
|
|
1296
|
+
/**
|
|
1297
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
1298
|
+
* @public
|
|
1299
|
+
*/
|
|
1300
|
+
nextToken?: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* <p>The maximum number of transaction events to list.</p>
|
|
1303
|
+
* <p>Default: <code>100</code>
|
|
1304
|
+
* </p>
|
|
1305
|
+
* <note>
|
|
1306
|
+
* <p>Even if additional results can be retrieved, the request can return less
|
|
1307
|
+
* results than <code>maxResults</code> or an empty array of results.</p>
|
|
1308
|
+
* <p>To retrieve the next set of results, make another request with the
|
|
1309
|
+
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
|
|
1310
|
+
* <code>null</code> when there are no more results to return</p>
|
|
1311
|
+
* </note>
|
|
1312
|
+
* @public
|
|
1313
|
+
*/
|
|
1314
|
+
maxResults?: number;
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* @public
|
|
1318
|
+
*/
|
|
1319
|
+
export interface ListTransactionEventsOutput {
|
|
1320
|
+
/**
|
|
1321
|
+
* <p>An array of <code>TransactionEvent</code> objects. Each object contains details
|
|
1322
|
+
* about the transaction events.</p>
|
|
1323
|
+
* @public
|
|
1324
|
+
*/
|
|
1325
|
+
events: TransactionEvent[] | undefined;
|
|
1326
|
+
/**
|
|
1327
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
1328
|
+
* @public
|
|
1329
|
+
*/
|
|
1330
|
+
nextToken?: string;
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* @public
|
|
1334
|
+
* @enum
|
|
1335
|
+
*/
|
|
1336
|
+
export declare const ListTransactionsSortBy: {
|
|
1337
|
+
/**
|
|
1338
|
+
* Timestamp of a transaction
|
|
1339
|
+
*/
|
|
1340
|
+
readonly TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP";
|
|
1143
1341
|
};
|
|
1144
1342
|
/**
|
|
1145
1343
|
* @public
|
|
1146
1344
|
*/
|
|
1147
|
-
export type
|
|
1345
|
+
export type ListTransactionsSortBy = (typeof ListTransactionsSortBy)[keyof typeof ListTransactionsSortBy];
|
|
1148
1346
|
/**
|
|
1149
1347
|
* <p>The container for determining how the list transaction result will
|
|
1150
1348
|
* be sorted.</p>
|
|
@@ -1190,8 +1388,7 @@ export interface ListTransactionsInput {
|
|
|
1190
1388
|
*/
|
|
1191
1389
|
toBlockchainInstant?: BlockchainInstant;
|
|
1192
1390
|
/**
|
|
1193
|
-
* <p>The order by which the results will be sorted.
|
|
1194
|
-
* will be ordered by <code>fromTime</code>. </p>
|
|
1391
|
+
* <p>The order by which the results will be sorted. </p>
|
|
1195
1392
|
* @public
|
|
1196
1393
|
*/
|
|
1197
1394
|
sort?: ListTransactionsSort;
|
|
@@ -1202,7 +1399,7 @@ export interface ListTransactionsInput {
|
|
|
1202
1399
|
nextToken?: string;
|
|
1203
1400
|
/**
|
|
1204
1401
|
* <p>The maximum number of transactions to list.</p>
|
|
1205
|
-
* <p>Default
|
|
1402
|
+
* <p>Default: <code>100</code>
|
|
1206
1403
|
* </p>
|
|
1207
1404
|
* <note>
|
|
1208
1405
|
* <p>Even if additional results can be retrieved, the request can return less
|
|
@@ -1217,7 +1414,7 @@ export interface ListTransactionsInput {
|
|
|
1217
1414
|
/**
|
|
1218
1415
|
* <p>This filter is used to include transactions in the response that haven't reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">
|
|
1219
1416
|
* <i>finality</i>
|
|
1220
|
-
* </a>. Transactions that have reached
|
|
1417
|
+
* </a>. Transactions that have reached finality are always
|
|
1221
1418
|
* part of the response.</p>
|
|
1222
1419
|
* @public
|
|
1223
1420
|
*/
|
|
@@ -1229,7 +1426,7 @@ export interface ListTransactionsInput {
|
|
|
1229
1426
|
*/
|
|
1230
1427
|
export interface TransactionOutputItem {
|
|
1231
1428
|
/**
|
|
1232
|
-
* <p>The hash of
|
|
1429
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
1233
1430
|
* @public
|
|
1234
1431
|
*/
|
|
1235
1432
|
transactionHash: string | undefined;
|