@aws-sdk/client-managedblockchain-query 3.535.0 → 3.538.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/index.js +121 -15
- package/dist-es/ManagedBlockchainQuery.js +2 -0
- package/dist-es/commands/ListFilteredTransactionEventsCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +7 -4
- package/dist-es/pagination/ListFilteredTransactionEventsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +74 -2
- package/dist-types/ManagedBlockchainQuery.d.ts +7 -0
- package/dist-types/ManagedBlockchainQueryClient.d.ts +3 -2
- package/dist-types/commands/GetTransactionCommand.d.ts +2 -1
- package/dist-types/commands/ListFilteredTransactionEventsCommand.d.ts +129 -0
- package/dist-types/commands/ListTransactionEventsCommand.d.ts +11 -3
- package/dist-types/commands/ListTransactionsCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +341 -130
- package/dist-types/pagination/ListFilteredTransactionEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/ManagedBlockchainQuery.d.ts +17 -0
- package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListFilteredTransactionEventsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +73 -31
- package/dist-types/ts3.4/pagination/ListFilteredTransactionEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
|
@@ -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,10 +648,19 @@ 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
|
-
transactionHash
|
|
654
|
+
transactionHash?: string;
|
|
655
|
+
/**
|
|
656
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
657
|
+
* <note>
|
|
658
|
+
* <p>
|
|
659
|
+
* <code>transactionId</code> is only supported on the Bitcoin networks.</p>
|
|
660
|
+
* </note>
|
|
661
|
+
* @public
|
|
662
|
+
*/
|
|
663
|
+
transactionId?: string;
|
|
644
664
|
/**
|
|
645
665
|
* <p>The blockchain network where the transaction occurred.</p>
|
|
646
666
|
* @public
|
|
@@ -677,7 +697,7 @@ export interface Transaction {
|
|
|
677
697
|
*/
|
|
678
698
|
blockHash?: string;
|
|
679
699
|
/**
|
|
680
|
-
* <p>The hash of
|
|
700
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
681
701
|
* @public
|
|
682
702
|
*/
|
|
683
703
|
transactionHash: string | undefined;
|
|
@@ -753,7 +773,7 @@ export interface Transaction {
|
|
|
753
773
|
*/
|
|
754
774
|
transactionFee?: string;
|
|
755
775
|
/**
|
|
756
|
-
* <p>The
|
|
776
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
757
777
|
* @public
|
|
758
778
|
*/
|
|
759
779
|
transactionId?: string;
|
|
@@ -794,7 +814,7 @@ export interface ListAssetContractsInput {
|
|
|
794
814
|
nextToken?: string;
|
|
795
815
|
/**
|
|
796
816
|
* <p>The maximum number of contracts to list.</p>
|
|
797
|
-
* <p>Default
|
|
817
|
+
* <p>Default: <code>100</code>
|
|
798
818
|
* </p>
|
|
799
819
|
* <note>
|
|
800
820
|
* <p>Even if additional results can be retrieved, the request can return less
|
|
@@ -823,150 +843,124 @@ export interface ListAssetContractsOutput {
|
|
|
823
843
|
nextToken?: string;
|
|
824
844
|
}
|
|
825
845
|
/**
|
|
826
|
-
* <p>The container for the owner information to filter by.</p>
|
|
827
846
|
* @public
|
|
847
|
+
* @enum
|
|
828
848
|
*/
|
|
829
|
-
export
|
|
849
|
+
export declare const ListFilteredTransactionEventsSortBy: {
|
|
830
850
|
/**
|
|
831
|
-
*
|
|
832
|
-
* @public
|
|
851
|
+
* Timestamp of a transaction
|
|
833
852
|
*/
|
|
834
|
-
|
|
835
|
-
}
|
|
853
|
+
readonly blockchainInstant: "blockchainInstant";
|
|
854
|
+
};
|
|
836
855
|
/**
|
|
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
856
|
* @public
|
|
845
857
|
*/
|
|
846
|
-
export
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
858
|
+
export type ListFilteredTransactionEventsSortBy = (typeof ListFilteredTransactionEventsSortBy)[keyof typeof ListFilteredTransactionEventsSortBy];
|
|
859
|
+
/**
|
|
860
|
+
* @public
|
|
861
|
+
* @enum
|
|
862
|
+
*/
|
|
863
|
+
export declare const SortOrder: {
|
|
852
864
|
/**
|
|
853
|
-
*
|
|
854
|
-
* @public
|
|
865
|
+
* Result sorted in ascending order
|
|
855
866
|
*/
|
|
856
|
-
|
|
867
|
+
readonly ASCENDING: "ASCENDING";
|
|
857
868
|
/**
|
|
858
|
-
*
|
|
859
|
-
* @public
|
|
869
|
+
* Result sorted in descending order
|
|
860
870
|
*/
|
|
861
|
-
|
|
862
|
-
}
|
|
871
|
+
readonly DESCENDING: "DESCENDING";
|
|
872
|
+
};
|
|
863
873
|
/**
|
|
864
874
|
* @public
|
|
865
875
|
*/
|
|
866
|
-
export
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
876
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
877
|
+
/**
|
|
878
|
+
* <p>Lists all the transaction events for an address on the blockchain.</p>
|
|
879
|
+
* <note>
|
|
880
|
+
* <p>This operation is only supported on the Bitcoin blockchain networks.</p>
|
|
881
|
+
* </note>
|
|
882
|
+
* @public
|
|
883
|
+
*/
|
|
884
|
+
export interface ListFilteredTransactionEventsSort {
|
|
874
885
|
/**
|
|
875
|
-
* <p>
|
|
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>
|
|
886
|
+
* <p>Container on how the results will be sorted by?</p>
|
|
882
887
|
* @public
|
|
883
888
|
*/
|
|
884
|
-
|
|
889
|
+
sortBy?: ListFilteredTransactionEventsSortBy;
|
|
885
890
|
/**
|
|
886
|
-
* <p>The
|
|
891
|
+
* <p>The container for the <i>sort order</i> for <code>ListFilteredTransactionEvents</code>.
|
|
892
|
+
* The <code>SortOrder</code> field only accepts the values <code>ASCENDING</code>
|
|
893
|
+
* and <code>DESCENDING</code>. Not providing <code>SortOrder</code> will default
|
|
894
|
+
* to <code>ASCENDING</code>.</p>
|
|
887
895
|
* @public
|
|
888
896
|
*/
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* <p>The maximum number of token balances to return.</p>
|
|
892
|
-
* <p>Default:<code>100</code>
|
|
893
|
-
* </p>
|
|
894
|
-
* <note>
|
|
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>
|
|
901
|
-
* @public
|
|
902
|
-
*/
|
|
903
|
-
maxResults?: number;
|
|
897
|
+
sortOrder?: SortOrder;
|
|
904
898
|
}
|
|
905
899
|
/**
|
|
906
|
-
* <p>
|
|
900
|
+
* <p>This container is used to specify a time frame.</p>
|
|
907
901
|
* @public
|
|
908
902
|
*/
|
|
909
|
-
export interface
|
|
903
|
+
export interface TimeFilter {
|
|
910
904
|
/**
|
|
911
|
-
* <p>The container for
|
|
905
|
+
* <p>The container for time.</p>
|
|
912
906
|
* @public
|
|
913
907
|
*/
|
|
914
|
-
|
|
908
|
+
from?: BlockchainInstant;
|
|
915
909
|
/**
|
|
916
|
-
* <p>The
|
|
910
|
+
* <p>The container for time.</p>
|
|
917
911
|
* @public
|
|
918
912
|
*/
|
|
919
|
-
|
|
913
|
+
to?: BlockchainInstant;
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* <p>This container specifies filtering attributes related to <code>BITCOIN_VOUT</code> event types</p>
|
|
917
|
+
* @public
|
|
918
|
+
*/
|
|
919
|
+
export interface VoutFilter {
|
|
920
920
|
/**
|
|
921
|
-
* <p>
|
|
921
|
+
* <p>Specifies if the transaction output is spent or unspent.</p>
|
|
922
922
|
* @public
|
|
923
923
|
*/
|
|
924
|
-
|
|
924
|
+
voutSpent: boolean | undefined;
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* @public
|
|
928
|
+
*/
|
|
929
|
+
export interface ListFilteredTransactionEventsInput {
|
|
925
930
|
/**
|
|
926
|
-
* <p>The
|
|
927
|
-
*
|
|
928
|
-
*
|
|
929
|
-
* <p>This time will only be recorded up to the second.</p>
|
|
930
|
-
* </note>
|
|
931
|
+
* <p>The blockchain network where the transaction occurred.</p>
|
|
932
|
+
* <p>Valid Values: <code>BITCOIN_MAINNET</code> | <code>BITCOIN_TESTNET</code>
|
|
933
|
+
* </p>
|
|
931
934
|
* @public
|
|
932
935
|
*/
|
|
933
|
-
|
|
936
|
+
network: string | undefined;
|
|
934
937
|
/**
|
|
935
|
-
* <p>
|
|
938
|
+
* <p>This is the unique public address on the blockchain for which the transaction events are being requested.</p>
|
|
936
939
|
* @public
|
|
937
940
|
*/
|
|
938
|
-
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* @public
|
|
942
|
-
*/
|
|
943
|
-
export interface ListTokenBalancesOutput {
|
|
941
|
+
addressIdentifierFilter: AddressIdentifierFilter | undefined;
|
|
944
942
|
/**
|
|
945
|
-
* <p>
|
|
946
|
-
* the token balance.</p>
|
|
943
|
+
* <p>This container specifies the time frame for the transaction events returned in the response.</p>
|
|
947
944
|
* @public
|
|
948
945
|
*/
|
|
949
|
-
|
|
946
|
+
timeFilter?: TimeFilter;
|
|
950
947
|
/**
|
|
951
|
-
* <p>
|
|
948
|
+
* <p>This container specifies filtering attributes related to BITCOIN_VOUT event types</p>
|
|
952
949
|
* @public
|
|
953
950
|
*/
|
|
954
|
-
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* @public
|
|
958
|
-
*/
|
|
959
|
-
export interface ListTransactionEventsInput {
|
|
951
|
+
voutFilter?: VoutFilter;
|
|
960
952
|
/**
|
|
961
|
-
* <p>The
|
|
953
|
+
* <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">
|
|
954
|
+
* <i>finality</i>
|
|
955
|
+
* </a> of the results.</p>
|
|
962
956
|
* @public
|
|
963
957
|
*/
|
|
964
|
-
|
|
958
|
+
confirmationStatusFilter?: ConfirmationStatusFilter;
|
|
965
959
|
/**
|
|
966
|
-
* <p>The
|
|
960
|
+
* <p>The order by which the results will be sorted.</p>
|
|
967
961
|
* @public
|
|
968
962
|
*/
|
|
969
|
-
|
|
963
|
+
sort?: ListFilteredTransactionEventsSort;
|
|
970
964
|
/**
|
|
971
965
|
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
972
966
|
* @public
|
|
@@ -974,7 +968,7 @@ export interface ListTransactionEventsInput {
|
|
|
974
968
|
nextToken?: string;
|
|
975
969
|
/**
|
|
976
970
|
* <p>The maximum number of transaction events to list.</p>
|
|
977
|
-
* <p>Default
|
|
971
|
+
* <p>Default: <code>100</code>
|
|
978
972
|
* </p>
|
|
979
973
|
* <note>
|
|
980
974
|
* <p>Even if additional results can be retrieved, the request can return less
|
|
@@ -1052,7 +1046,7 @@ export interface TransactionEvent {
|
|
|
1052
1046
|
*/
|
|
1053
1047
|
network: QueryNetwork | undefined;
|
|
1054
1048
|
/**
|
|
1055
|
-
* <p>The hash of
|
|
1049
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
1056
1050
|
* @public
|
|
1057
1051
|
*/
|
|
1058
1052
|
transactionHash: string | undefined;
|
|
@@ -1077,7 +1071,7 @@ export interface TransactionEvent {
|
|
|
1077
1071
|
*/
|
|
1078
1072
|
value?: string;
|
|
1079
1073
|
/**
|
|
1080
|
-
* <p>The blockchain address
|
|
1074
|
+
* <p>The blockchain address for the contract</p>
|
|
1081
1075
|
* @public
|
|
1082
1076
|
*/
|
|
1083
1077
|
contractAddress?: string;
|
|
@@ -1087,23 +1081,64 @@ export interface TransactionEvent {
|
|
|
1087
1081
|
*/
|
|
1088
1082
|
tokenId?: string;
|
|
1089
1083
|
/**
|
|
1090
|
-
* <p>The
|
|
1084
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
1091
1085
|
* @public
|
|
1092
1086
|
*/
|
|
1093
1087
|
transactionId?: string;
|
|
1094
1088
|
/**
|
|
1095
|
-
* <p>The position of the
|
|
1089
|
+
* <p>The position of the transaction output in the transaction output list.</p>
|
|
1096
1090
|
* @public
|
|
1097
1091
|
*/
|
|
1098
1092
|
voutIndex?: number;
|
|
1093
|
+
/**
|
|
1094
|
+
* <p>Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types.</p>
|
|
1095
|
+
* <note>
|
|
1096
|
+
* <p>This is only returned for <code>BITCOIN_VOUT</code> event types.</p>
|
|
1097
|
+
* </note>
|
|
1098
|
+
* @public
|
|
1099
|
+
*/
|
|
1100
|
+
voutSpent?: boolean;
|
|
1101
|
+
/**
|
|
1102
|
+
* <p>The transactionId that <i>created</i> the spent transaction output.</p>
|
|
1103
|
+
* <note>
|
|
1104
|
+
* <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
|
|
1105
|
+
* </note>
|
|
1106
|
+
* @public
|
|
1107
|
+
*/
|
|
1108
|
+
spentVoutTransactionId?: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* <p>The transactionHash that <i>created</i> the spent transaction output.</p>
|
|
1111
|
+
* <note>
|
|
1112
|
+
* <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
|
|
1113
|
+
* </note>
|
|
1114
|
+
* @public
|
|
1115
|
+
*/
|
|
1116
|
+
spentVoutTransactionHash?: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* <p>The position of the spent transaction output in the output list of the <i>creating transaction</i>.</p>
|
|
1119
|
+
* <note>
|
|
1120
|
+
* <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
|
|
1121
|
+
* </note>
|
|
1122
|
+
* @public
|
|
1123
|
+
*/
|
|
1124
|
+
spentVoutIndex?: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* <p>The container for time.</p>
|
|
1127
|
+
* @public
|
|
1128
|
+
*/
|
|
1129
|
+
blockchainInstant?: BlockchainInstant;
|
|
1130
|
+
/**
|
|
1131
|
+
* <p>This container specifies whether the transaction has reached Finality.</p>
|
|
1132
|
+
* @public
|
|
1133
|
+
*/
|
|
1134
|
+
confirmationStatus?: ConfirmationStatus;
|
|
1099
1135
|
}
|
|
1100
1136
|
/**
|
|
1101
1137
|
* @public
|
|
1102
1138
|
*/
|
|
1103
|
-
export interface
|
|
1139
|
+
export interface ListFilteredTransactionEventsOutput {
|
|
1104
1140
|
/**
|
|
1105
|
-
* <p>
|
|
1106
|
-
* about the transaction events.</p>
|
|
1141
|
+
* <p>The transaction events returned by the request.</p>
|
|
1107
1142
|
* @public
|
|
1108
1143
|
*/
|
|
1109
1144
|
events: TransactionEvent[] | undefined;
|
|
@@ -1114,37 +1149,209 @@ export interface ListTransactionEventsOutput {
|
|
|
1114
1149
|
nextToken?: string;
|
|
1115
1150
|
}
|
|
1116
1151
|
/**
|
|
1152
|
+
* <p>The container for the owner information to filter by.</p>
|
|
1117
1153
|
* @public
|
|
1118
|
-
* @enum
|
|
1119
1154
|
*/
|
|
1120
|
-
export
|
|
1155
|
+
export interface OwnerFilter {
|
|
1121
1156
|
/**
|
|
1122
|
-
*
|
|
1157
|
+
* <p>The contract or wallet address.</p>
|
|
1158
|
+
* @public
|
|
1123
1159
|
*/
|
|
1124
|
-
|
|
1125
|
-
}
|
|
1160
|
+
address: string | undefined;
|
|
1161
|
+
}
|
|
1126
1162
|
/**
|
|
1163
|
+
* <p>The container of the token filter like the contract address
|
|
1164
|
+
* on a given blockchain network or a unique token identifier on a given
|
|
1165
|
+
* blockchain network.</p>
|
|
1166
|
+
* <note>
|
|
1167
|
+
* <p>You must always specify the network property of this
|
|
1168
|
+
* container when using this operation.</p>
|
|
1169
|
+
* </note>
|
|
1127
1170
|
* @public
|
|
1128
1171
|
*/
|
|
1129
|
-
export
|
|
1172
|
+
export interface TokenFilter {
|
|
1173
|
+
/**
|
|
1174
|
+
* <p>The blockchain network of the token.</p>
|
|
1175
|
+
* @public
|
|
1176
|
+
*/
|
|
1177
|
+
network: QueryNetwork | undefined;
|
|
1178
|
+
/**
|
|
1179
|
+
* <p>This is the address of the contract.</p>
|
|
1180
|
+
* @public
|
|
1181
|
+
*/
|
|
1182
|
+
contractAddress?: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* <p>The unique identifier of the token.</p>
|
|
1185
|
+
* @public
|
|
1186
|
+
*/
|
|
1187
|
+
tokenId?: string;
|
|
1188
|
+
}
|
|
1130
1189
|
/**
|
|
1131
1190
|
* @public
|
|
1132
|
-
* @enum
|
|
1133
1191
|
*/
|
|
1134
|
-
export
|
|
1192
|
+
export interface ListTokenBalancesInput {
|
|
1135
1193
|
/**
|
|
1136
|
-
*
|
|
1194
|
+
* <p>The contract or wallet address on the blockchain network by which to filter the
|
|
1195
|
+
* request. You must specify the <code>address</code> property of the <code>ownerFilter</code>
|
|
1196
|
+
* when listing balances of tokens owned by the address.</p>
|
|
1197
|
+
* @public
|
|
1137
1198
|
*/
|
|
1138
|
-
|
|
1199
|
+
ownerFilter?: OwnerFilter;
|
|
1139
1200
|
/**
|
|
1140
|
-
*
|
|
1201
|
+
* <p>The contract address or a token identifier on the
|
|
1202
|
+
* blockchain network by which to filter the request. You must specify the <code>contractAddress</code>
|
|
1203
|
+
* property of this container when listing tokens minted by a contract.</p>
|
|
1204
|
+
* <note>
|
|
1205
|
+
* <p>You must always specify the network property of this
|
|
1206
|
+
* container when using this operation.</p>
|
|
1207
|
+
* </note>
|
|
1208
|
+
* @public
|
|
1141
1209
|
*/
|
|
1142
|
-
|
|
1210
|
+
tokenFilter: TokenFilter | undefined;
|
|
1211
|
+
/**
|
|
1212
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
1213
|
+
* @public
|
|
1214
|
+
*/
|
|
1215
|
+
nextToken?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* <p>The maximum number of token balances to return.</p>
|
|
1218
|
+
* <p>Default: <code>100</code>
|
|
1219
|
+
* </p>
|
|
1220
|
+
* <note>
|
|
1221
|
+
* <p>Even if additional results can be retrieved, the request can return less
|
|
1222
|
+
* results than <code>maxResults</code> or an empty array of results.</p>
|
|
1223
|
+
* <p>To retrieve the next set of results, make another request with the
|
|
1224
|
+
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
|
|
1225
|
+
* <code>null</code> when there are no more results to return</p>
|
|
1226
|
+
* </note>
|
|
1227
|
+
* @public
|
|
1228
|
+
*/
|
|
1229
|
+
maxResults?: number;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* <p>The balance of the token.</p>
|
|
1233
|
+
* @public
|
|
1234
|
+
*/
|
|
1235
|
+
export interface TokenBalance {
|
|
1236
|
+
/**
|
|
1237
|
+
* <p>The container for the identifier of the owner.</p>
|
|
1238
|
+
* @public
|
|
1239
|
+
*/
|
|
1240
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
1241
|
+
/**
|
|
1242
|
+
* <p>The identifier for the token, including the unique token ID and its blockchain network.</p>
|
|
1243
|
+
* @public
|
|
1244
|
+
*/
|
|
1245
|
+
tokenIdentifier?: TokenIdentifier;
|
|
1246
|
+
/**
|
|
1247
|
+
* <p>The container of the token balance.</p>
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
balance: string | undefined;
|
|
1251
|
+
/**
|
|
1252
|
+
* <p>The time for when the TokenBalance is requested or
|
|
1253
|
+
* the current time if a time is not provided in the request.</p>
|
|
1254
|
+
* <note>
|
|
1255
|
+
* <p>This time will only be recorded up to the second.</p>
|
|
1256
|
+
* </note>
|
|
1257
|
+
* @public
|
|
1258
|
+
*/
|
|
1259
|
+
atBlockchainInstant: BlockchainInstant | undefined;
|
|
1260
|
+
/**
|
|
1261
|
+
* <p>The <code>Timestamp</code> of the last transaction at which the balance for the token in the wallet was updated.</p>
|
|
1262
|
+
* @public
|
|
1263
|
+
*/
|
|
1264
|
+
lastUpdatedTime?: BlockchainInstant;
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* @public
|
|
1268
|
+
*/
|
|
1269
|
+
export interface ListTokenBalancesOutput {
|
|
1270
|
+
/**
|
|
1271
|
+
* <p>An array of <code>TokenBalance</code> objects. Each object contains details about
|
|
1272
|
+
* the token balance.</p>
|
|
1273
|
+
* @public
|
|
1274
|
+
*/
|
|
1275
|
+
tokenBalances: TokenBalance[] | undefined;
|
|
1276
|
+
/**
|
|
1277
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
1278
|
+
* @public
|
|
1279
|
+
*/
|
|
1280
|
+
nextToken?: string;
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* @public
|
|
1284
|
+
*/
|
|
1285
|
+
export interface ListTransactionEventsInput {
|
|
1286
|
+
/**
|
|
1287
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
1288
|
+
* @public
|
|
1289
|
+
*/
|
|
1290
|
+
transactionHash?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
1293
|
+
* <note>
|
|
1294
|
+
* <p>
|
|
1295
|
+
* <code>transactionId</code> is only supported on the Bitcoin networks.</p>
|
|
1296
|
+
* </note>
|
|
1297
|
+
* @public
|
|
1298
|
+
*/
|
|
1299
|
+
transactionId?: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* <p>The blockchain network where the transaction events occurred.</p>
|
|
1302
|
+
* @public
|
|
1303
|
+
*/
|
|
1304
|
+
network: QueryNetwork | undefined;
|
|
1305
|
+
/**
|
|
1306
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
1307
|
+
* @public
|
|
1308
|
+
*/
|
|
1309
|
+
nextToken?: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* <p>The maximum number of transaction events to list.</p>
|
|
1312
|
+
* <p>Default: <code>100</code>
|
|
1313
|
+
* </p>
|
|
1314
|
+
* <note>
|
|
1315
|
+
* <p>Even if additional results can be retrieved, the request can return less
|
|
1316
|
+
* results than <code>maxResults</code> or an empty array of results.</p>
|
|
1317
|
+
* <p>To retrieve the next set of results, make another request with the
|
|
1318
|
+
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
|
|
1319
|
+
* <code>null</code> when there are no more results to return</p>
|
|
1320
|
+
* </note>
|
|
1321
|
+
* @public
|
|
1322
|
+
*/
|
|
1323
|
+
maxResults?: number;
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* @public
|
|
1327
|
+
*/
|
|
1328
|
+
export interface ListTransactionEventsOutput {
|
|
1329
|
+
/**
|
|
1330
|
+
* <p>An array of <code>TransactionEvent</code> objects. Each object contains details
|
|
1331
|
+
* about the transaction events.</p>
|
|
1332
|
+
* @public
|
|
1333
|
+
*/
|
|
1334
|
+
events: TransactionEvent[] | undefined;
|
|
1335
|
+
/**
|
|
1336
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
1337
|
+
* @public
|
|
1338
|
+
*/
|
|
1339
|
+
nextToken?: string;
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* @public
|
|
1343
|
+
* @enum
|
|
1344
|
+
*/
|
|
1345
|
+
export declare const ListTransactionsSortBy: {
|
|
1346
|
+
/**
|
|
1347
|
+
* Timestamp of a transaction
|
|
1348
|
+
*/
|
|
1349
|
+
readonly TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP";
|
|
1143
1350
|
};
|
|
1144
1351
|
/**
|
|
1145
1352
|
* @public
|
|
1146
1353
|
*/
|
|
1147
|
-
export type
|
|
1354
|
+
export type ListTransactionsSortBy = (typeof ListTransactionsSortBy)[keyof typeof ListTransactionsSortBy];
|
|
1148
1355
|
/**
|
|
1149
1356
|
* <p>The container for determining how the list transaction result will
|
|
1150
1357
|
* be sorted.</p>
|
|
@@ -1190,8 +1397,7 @@ export interface ListTransactionsInput {
|
|
|
1190
1397
|
*/
|
|
1191
1398
|
toBlockchainInstant?: BlockchainInstant;
|
|
1192
1399
|
/**
|
|
1193
|
-
* <p>The order by which the results will be sorted.
|
|
1194
|
-
* will be ordered by <code>fromTime</code>. </p>
|
|
1400
|
+
* <p>The order by which the results will be sorted. </p>
|
|
1195
1401
|
* @public
|
|
1196
1402
|
*/
|
|
1197
1403
|
sort?: ListTransactionsSort;
|
|
@@ -1202,7 +1408,7 @@ export interface ListTransactionsInput {
|
|
|
1202
1408
|
nextToken?: string;
|
|
1203
1409
|
/**
|
|
1204
1410
|
* <p>The maximum number of transactions to list.</p>
|
|
1205
|
-
* <p>Default
|
|
1411
|
+
* <p>Default: <code>100</code>
|
|
1206
1412
|
* </p>
|
|
1207
1413
|
* <note>
|
|
1208
1414
|
* <p>Even if additional results can be retrieved, the request can return less
|
|
@@ -1217,7 +1423,7 @@ export interface ListTransactionsInput {
|
|
|
1217
1423
|
/**
|
|
1218
1424
|
* <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
1425
|
* <i>finality</i>
|
|
1220
|
-
* </a>. Transactions that have reached
|
|
1426
|
+
* </a>. Transactions that have reached finality are always
|
|
1221
1427
|
* part of the response.</p>
|
|
1222
1428
|
* @public
|
|
1223
1429
|
*/
|
|
@@ -1229,10 +1435,15 @@ export interface ListTransactionsInput {
|
|
|
1229
1435
|
*/
|
|
1230
1436
|
export interface TransactionOutputItem {
|
|
1231
1437
|
/**
|
|
1232
|
-
* <p>The hash of
|
|
1438
|
+
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
1233
1439
|
* @public
|
|
1234
1440
|
*/
|
|
1235
1441
|
transactionHash: string | undefined;
|
|
1442
|
+
/**
|
|
1443
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
1444
|
+
* @public
|
|
1445
|
+
*/
|
|
1446
|
+
transactionId?: string;
|
|
1236
1447
|
/**
|
|
1237
1448
|
* <p>The blockchain network where the transaction occurred.</p>
|
|
1238
1449
|
* @public
|