aws-sdk-managedblockchainquery 1.8.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a8caf61c32dbfbb0fca4d40e42eb640de976e5698244434724c962e77654af3
4
- data.tar.gz: f59d5578787971e9b858f13edabe36c8e6f533f4c7d86a30152e858add2ed6a2
3
+ metadata.gz: 207f26c59985fd8ab9b8a270321ffeb2f068138640994ddf68d52ccb6e1552e7
4
+ data.tar.gz: ec24c2b0871e17b581439e81dcb9a922f362be27ca3b58773324a69e5db3b8af
5
5
  SHA512:
6
- metadata.gz: b2dd6740a464da4efbff8b0b1bb8aea2686282da086317550ff566ae9fa20150120de252a4c3aa47a8920e412706e09c71bb5680a5db8ee42f2a2f119f8d7aa9
7
- data.tar.gz: 38dca042c45f0e557ab1711ddedfa52d2881818bab28f03a0d75037a437aadfcad8312c9a126a45f88a5aa6860ca9285020ca285263331c5e7dc256bd07a3557
6
+ metadata.gz: 4f811b0537dd28283ba346c70a9e31303d992283d8eca7b24d80d3f20e928c06052badbaf4b261e605671b85937ef4abefdb25435b64d3106e7f60f6f2f2820a
7
+ data.tar.gz: a9e93eb76d38e2c793cd25780d01483811543754db7568c98210eedb2452e831ac195ea4060edd23057ae1955a965b243d3a09a477dc5293d0cc38720eac8ba6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.10.0 (2024-03-20)
5
+ ------------------
6
+
7
+ * Feature - AMB Query: update GetTransaction to include transactionId as input
8
+
9
+ 1.9.0 (2024-03-19)
10
+ ------------------
11
+
12
+ * Feature - Introduces a new API for Amazon Managed Blockchain Query: ListFilteredTransactionEvents.
13
+
4
14
  1.8.0 (2024-02-01)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0
1
+ 1.10.0
@@ -581,9 +581,17 @@ module Aws::ManagedBlockchainQuery
581
581
  #
582
582
  # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
583
583
  #
584
- # @option params [required, String] :transaction_hash
585
- # The hash of the transaction. It is generated whenever a transaction is
586
- # verified and added to the blockchain.
584
+ # @option params [String] :transaction_hash
585
+ # The hash of a transaction. It is generated when a transaction is
586
+ # created.
587
+ #
588
+ # @option params [String] :transaction_id
589
+ # The identifier of a Bitcoin transaction. It is generated when a
590
+ # transaction is created.
591
+ #
592
+ # <note markdown="1"> `transactionId` is only supported on the Bitcoin networks.
593
+ #
594
+ # </note>
587
595
  #
588
596
  # @option params [required, String] :network
589
597
  # The blockchain network where the transaction occurred.
@@ -595,7 +603,8 @@ module Aws::ManagedBlockchainQuery
595
603
  # @example Request syntax with placeholder values
596
604
  #
597
605
  # resp = client.get_transaction({
598
- # transaction_hash: "QueryTransactionHash", # required
606
+ # transaction_hash: "QueryTransactionHash",
607
+ # transaction_id: "QueryTransactionId",
599
608
  # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
600
609
  # })
601
610
  #
@@ -646,7 +655,7 @@ module Aws::ManagedBlockchainQuery
646
655
  # @option params [Integer] :max_results
647
656
  # The maximum number of contracts to list.
648
657
  #
649
- # Default:`100`
658
+ # Default: `100`
650
659
  #
651
660
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
652
661
  # less results than `maxResults` or an empty array of results.
@@ -694,6 +703,124 @@ module Aws::ManagedBlockchainQuery
694
703
  req.send_request(options)
695
704
  end
696
705
 
706
+ # Lists all the transaction events for an address on the blockchain.
707
+ #
708
+ # <note markdown="1"> This operation is only supported on the Bitcoin networks.
709
+ #
710
+ # </note>
711
+ #
712
+ # @option params [required, String] :network
713
+ # The blockchain network where the transaction occurred.
714
+ #
715
+ # Valid Values: `BITCOIN_MAINNET` \| `BITCOIN_TESTNET`
716
+ #
717
+ # @option params [required, Types::AddressIdentifierFilter] :address_identifier_filter
718
+ # This is the unique public address on the blockchain for which the
719
+ # transaction events are being requested.
720
+ #
721
+ # @option params [Types::TimeFilter] :time_filter
722
+ # This container specifies the time frame for the transaction events
723
+ # returned in the response.
724
+ #
725
+ # @option params [Types::VoutFilter] :vout_filter
726
+ # This container specifies filtering attributes related to BITCOIN\_VOUT
727
+ # event types
728
+ #
729
+ # @option params [Types::ConfirmationStatusFilter] :confirmation_status_filter
730
+ # The container for the `ConfirmationStatusFilter` that filters for the
731
+ # [ *finality* ][1] of the results.
732
+ #
733
+ #
734
+ #
735
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
736
+ #
737
+ # @option params [Types::ListFilteredTransactionEventsSort] :sort
738
+ # The order by which the results will be sorted.
739
+ #
740
+ # @option params [String] :next_token
741
+ # The pagination token that indicates the next set of results to
742
+ # retrieve.
743
+ #
744
+ # @option params [Integer] :max_results
745
+ # The maximum number of transaction events to list.
746
+ #
747
+ # Default: `100`
748
+ #
749
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
750
+ # less results than `maxResults` or an empty array of results.
751
+ #
752
+ # To retrieve the next set of results, make another request with the
753
+ # returned `nextToken` value. The value of `nextToken` is `null` when
754
+ # there are no more results to return
755
+ #
756
+ # </note>
757
+ #
758
+ # @return [Types::ListFilteredTransactionEventsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
759
+ #
760
+ # * {Types::ListFilteredTransactionEventsOutput#events #events} => Array&lt;Types::TransactionEvent&gt;
761
+ # * {Types::ListFilteredTransactionEventsOutput#next_token #next_token} => String
762
+ #
763
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
764
+ #
765
+ # @example Request syntax with placeholder values
766
+ #
767
+ # resp = client.list_filtered_transaction_events({
768
+ # network: "String", # required
769
+ # address_identifier_filter: { # required
770
+ # transaction_event_to_address: ["ChainAddress"], # required
771
+ # },
772
+ # time_filter: {
773
+ # from: {
774
+ # time: Time.now,
775
+ # },
776
+ # to: {
777
+ # time: Time.now,
778
+ # },
779
+ # },
780
+ # vout_filter: {
781
+ # vout_spent: false, # required
782
+ # },
783
+ # confirmation_status_filter: {
784
+ # include: ["FINAL"], # required, accepts FINAL, NONFINAL
785
+ # },
786
+ # sort: {
787
+ # sort_by: "blockchainInstant", # accepts blockchainInstant
788
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
789
+ # },
790
+ # next_token: "NextToken",
791
+ # max_results: 1,
792
+ # })
793
+ #
794
+ # @example Response structure
795
+ #
796
+ # resp.events #=> Array
797
+ # resp.events[0].network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
798
+ # resp.events[0].transaction_hash #=> String
799
+ # resp.events[0].event_type #=> String, one of "ERC20_TRANSFER", "ERC20_MINT", "ERC20_BURN", "ERC20_DEPOSIT", "ERC20_WITHDRAWAL", "ERC721_TRANSFER", "ERC1155_TRANSFER", "BITCOIN_VIN", "BITCOIN_VOUT", "INTERNAL_ETH_TRANSFER", "ETH_TRANSFER"
800
+ # resp.events[0].from #=> String
801
+ # resp.events[0].to #=> String
802
+ # resp.events[0].value #=> String
803
+ # resp.events[0].contract_address #=> String
804
+ # resp.events[0].token_id #=> String
805
+ # resp.events[0].transaction_id #=> String
806
+ # resp.events[0].vout_index #=> Integer
807
+ # resp.events[0].vout_spent #=> Boolean
808
+ # resp.events[0].spent_vout_transaction_id #=> String
809
+ # resp.events[0].spent_vout_transaction_hash #=> String
810
+ # resp.events[0].spent_vout_index #=> Integer
811
+ # resp.events[0].blockchain_instant.time #=> Time
812
+ # resp.events[0].confirmation_status #=> String, one of "FINAL", "NONFINAL"
813
+ # resp.next_token #=> String
814
+ #
815
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListFilteredTransactionEvents AWS API Documentation
816
+ #
817
+ # @overload list_filtered_transaction_events(params = {})
818
+ # @param [Hash] params ({})
819
+ def list_filtered_transaction_events(params = {}, options = {})
820
+ req = build_request(:list_filtered_transaction_events, params)
821
+ req.send_request(options)
822
+ end
823
+
697
824
  # This action returns the following for a given blockchain network:
698
825
  #
699
826
  # * Lists all token balances owned by an address (either a contract
@@ -730,7 +857,7 @@ module Aws::ManagedBlockchainQuery
730
857
  # @option params [Integer] :max_results
731
858
  # The maximum number of token balances to return.
732
859
  #
733
- # Default:`100`
860
+ # Default: `100`
734
861
  #
735
862
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
736
863
  # less results than `maxResults` or an empty array of results.
@@ -784,8 +911,7 @@ module Aws::ManagedBlockchainQuery
784
911
  req.send_request(options)
785
912
  end
786
913
 
787
- # An array of `TransactionEvent` objects. Each object contains details
788
- # about the transaction event.
914
+ # Lists all the transaction events for a transaction
789
915
  #
790
916
  # <note markdown="1"> This action will return transaction details for all transactions that
791
917
  # are *confirmed* on the blockchain, even if they have not reached
@@ -797,9 +923,17 @@ module Aws::ManagedBlockchainQuery
797
923
  #
798
924
  # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
799
925
  #
800
- # @option params [required, String] :transaction_hash
801
- # The hash of the transaction. It is generated whenever a transaction is
802
- # verified and added to the blockchain.
926
+ # @option params [String] :transaction_hash
927
+ # The hash of a transaction. It is generated when a transaction is
928
+ # created.
929
+ #
930
+ # @option params [String] :transaction_id
931
+ # The identifier of a Bitcoin transaction. It is generated when a
932
+ # transaction is created.
933
+ #
934
+ # <note markdown="1"> `transactionId` is only supported on the Bitcoin networks.
935
+ #
936
+ # </note>
803
937
  #
804
938
  # @option params [required, String] :network
805
939
  # The blockchain network where the transaction events occurred.
@@ -811,7 +945,7 @@ module Aws::ManagedBlockchainQuery
811
945
  # @option params [Integer] :max_results
812
946
  # The maximum number of transaction events to list.
813
947
  #
814
- # Default:`100`
948
+ # Default: `100`
815
949
  #
816
950
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
817
951
  # less results than `maxResults` or an empty array of results.
@@ -832,7 +966,8 @@ module Aws::ManagedBlockchainQuery
832
966
  # @example Request syntax with placeholder values
833
967
  #
834
968
  # resp = client.list_transaction_events({
835
- # transaction_hash: "QueryTransactionHash", # required
969
+ # transaction_hash: "QueryTransactionHash",
970
+ # transaction_id: "QueryTransactionId",
836
971
  # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
837
972
  # next_token: "NextToken",
838
973
  # max_results: 1,
@@ -851,6 +986,12 @@ module Aws::ManagedBlockchainQuery
851
986
  # resp.events[0].token_id #=> String
852
987
  # resp.events[0].transaction_id #=> String
853
988
  # resp.events[0].vout_index #=> Integer
989
+ # resp.events[0].vout_spent #=> Boolean
990
+ # resp.events[0].spent_vout_transaction_id #=> String
991
+ # resp.events[0].spent_vout_transaction_hash #=> String
992
+ # resp.events[0].spent_vout_index #=> Integer
993
+ # resp.events[0].blockchain_instant.time #=> Time
994
+ # resp.events[0].confirmation_status #=> String, one of "FINAL", "NONFINAL"
854
995
  # resp.next_token #=> String
855
996
  #
856
997
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionEvents AWS API Documentation
@@ -862,8 +1003,7 @@ module Aws::ManagedBlockchainQuery
862
1003
  req.send_request(options)
863
1004
  end
864
1005
 
865
- # Lists all of the transactions on a given wallet address or to a
866
- # specific contract.
1006
+ # Lists all the transaction events for a transaction.
867
1007
  #
868
1008
  # @option params [required, String] :address
869
1009
  # The address (either a contract or wallet), whose transactions are
@@ -879,8 +1019,7 @@ module Aws::ManagedBlockchainQuery
879
1019
  # The container for time.
880
1020
  #
881
1021
  # @option params [Types::ListTransactionsSort] :sort
882
- # The order by which the results will be sorted. If `ASCENNDING` is
883
- # selected, the results will be ordered by `fromTime`.
1022
+ # The order by which the results will be sorted.
884
1023
  #
885
1024
  # @option params [String] :next_token
886
1025
  # The pagination token that indicates the next set of results to
@@ -889,7 +1028,7 @@ module Aws::ManagedBlockchainQuery
889
1028
  # @option params [Integer] :max_results
890
1029
  # The maximum number of transactions to list.
891
1030
  #
892
- # Default:`100`
1031
+ # Default: `100`
893
1032
  #
894
1033
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
895
1034
  # less results than `maxResults` or an empty array of results.
@@ -903,7 +1042,7 @@ module Aws::ManagedBlockchainQuery
903
1042
  # @option params [Types::ConfirmationStatusFilter] :confirmation_status_filter
904
1043
  # This filter is used to include transactions in the response that
905
1044
  # haven't reached [ *finality* ][1]. Transactions that have reached
906
- # finiality are always part of the response.
1045
+ # finality are always part of the response.
907
1046
  #
908
1047
  #
909
1048
  #
@@ -942,6 +1081,7 @@ module Aws::ManagedBlockchainQuery
942
1081
  #
943
1082
  # resp.transactions #=> Array
944
1083
  # resp.transactions[0].transaction_hash #=> String
1084
+ # resp.transactions[0].transaction_id #=> String
945
1085
  # resp.transactions[0].network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
946
1086
  # resp.transactions[0].transaction_timestamp #=> Time
947
1087
  # resp.transactions[0].confirmation_status #=> String, one of "FINAL", "NONFINAL"
@@ -969,7 +1109,7 @@ module Aws::ManagedBlockchainQuery
969
1109
  params: params,
970
1110
  config: config)
971
1111
  context[:gem_name] = 'aws-sdk-managedblockchainquery'
972
- context[:gem_version] = '1.8.0'
1112
+ context[:gem_version] = '1.10.0'
973
1113
  Seahorse::Client::Request.new(handlers, context)
974
1114
  end
975
1115
 
@@ -14,6 +14,8 @@ module Aws::ManagedBlockchainQuery
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AddressIdentifierFilter = Shapes::StructureShape.new(name: 'AddressIdentifierFilter')
18
+ AddressIdentifierFilterTransactionEventToAddressList = Shapes::ListShape.new(name: 'AddressIdentifierFilterTransactionEventToAddressList')
17
19
  AssetContract = Shapes::StructureShape.new(name: 'AssetContract')
18
20
  AssetContractList = Shapes::ListShape.new(name: 'AssetContractList')
19
21
  BatchGetTokenBalanceErrorItem = Shapes::StructureShape.new(name: 'BatchGetTokenBalanceErrorItem')
@@ -25,6 +27,7 @@ module Aws::ManagedBlockchainQuery
25
27
  BatchGetTokenBalanceOutputList = Shapes::ListShape.new(name: 'BatchGetTokenBalanceOutputList')
26
28
  BlockHash = Shapes::StringShape.new(name: 'BlockHash')
27
29
  BlockchainInstant = Shapes::StructureShape.new(name: 'BlockchainInstant')
30
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
28
31
  ChainAddress = Shapes::StringShape.new(name: 'ChainAddress')
29
32
  ConfirmationStatus = Shapes::StringShape.new(name: 'ConfirmationStatus')
30
33
  ConfirmationStatusFilter = Shapes::StructureShape.new(name: 'ConfirmationStatusFilter')
@@ -47,6 +50,11 @@ module Aws::ManagedBlockchainQuery
47
50
  ListAssetContractsInput = Shapes::StructureShape.new(name: 'ListAssetContractsInput')
48
51
  ListAssetContractsInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListAssetContractsInputMaxResultsInteger')
49
52
  ListAssetContractsOutput = Shapes::StructureShape.new(name: 'ListAssetContractsOutput')
53
+ ListFilteredTransactionEventsInput = Shapes::StructureShape.new(name: 'ListFilteredTransactionEventsInput')
54
+ ListFilteredTransactionEventsInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListFilteredTransactionEventsInputMaxResultsInteger')
55
+ ListFilteredTransactionEventsOutput = Shapes::StructureShape.new(name: 'ListFilteredTransactionEventsOutput')
56
+ ListFilteredTransactionEventsSort = Shapes::StructureShape.new(name: 'ListFilteredTransactionEventsSort')
57
+ ListFilteredTransactionEventsSortBy = Shapes::StringShape.new(name: 'ListFilteredTransactionEventsSortBy')
50
58
  ListTokenBalancesInput = Shapes::StructureShape.new(name: 'ListTokenBalancesInput')
51
59
  ListTokenBalancesInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListTokenBalancesInputMaxResultsInteger')
52
60
  ListTokenBalancesOutput = Shapes::StructureShape.new(name: 'ListTokenBalancesOutput')
@@ -67,6 +75,7 @@ module Aws::ManagedBlockchainQuery
67
75
  QueryTokenStandard = Shapes::StringShape.new(name: 'QueryTokenStandard')
68
76
  QueryTransactionEventType = Shapes::StringShape.new(name: 'QueryTransactionEventType')
69
77
  QueryTransactionHash = Shapes::StringShape.new(name: 'QueryTransactionHash')
78
+ QueryTransactionId = Shapes::StringShape.new(name: 'QueryTransactionId')
70
79
  QuotaCode = Shapes::StringShape.new(name: 'QuotaCode')
71
80
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
72
81
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -76,6 +85,7 @@ module Aws::ManagedBlockchainQuery
76
85
  SortOrder = Shapes::StringShape.new(name: 'SortOrder')
77
86
  String = Shapes::StringShape.new(name: 'String')
78
87
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
88
+ TimeFilter = Shapes::StructureShape.new(name: 'TimeFilter')
79
89
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
80
90
  TokenBalance = Shapes::StructureShape.new(name: 'TokenBalance')
81
91
  TokenBalanceList = Shapes::ListShape.new(name: 'TokenBalanceList')
@@ -90,10 +100,16 @@ module Aws::ManagedBlockchainQuery
90
100
  ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
91
101
  ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
92
102
  ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
103
+ VoutFilter = Shapes::StructureShape.new(name: 'VoutFilter')
93
104
 
94
105
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
95
106
  AccessDeniedException.struct_class = Types::AccessDeniedException
96
107
 
108
+ AddressIdentifierFilter.add_member(:transaction_event_to_address, Shapes::ShapeRef.new(shape: AddressIdentifierFilterTransactionEventToAddressList, required: true, location_name: "transactionEventToAddress"))
109
+ AddressIdentifierFilter.struct_class = Types::AddressIdentifierFilter
110
+
111
+ AddressIdentifierFilterTransactionEventToAddressList.member = Shapes::ShapeRef.new(shape: ChainAddress)
112
+
97
113
  AssetContract.add_member(:contract_identifier, Shapes::ShapeRef.new(shape: ContractIdentifier, required: true, location_name: "contractIdentifier"))
98
114
  AssetContract.add_member(:token_standard, Shapes::ShapeRef.new(shape: QueryTokenStandard, required: true, location_name: "tokenStandard"))
99
115
  AssetContract.add_member(:deployer_address, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "deployerAddress"))
@@ -177,7 +193,8 @@ module Aws::ManagedBlockchainQuery
177
193
  GetTokenBalanceOutput.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "lastUpdatedTime"))
178
194
  GetTokenBalanceOutput.struct_class = Types::GetTokenBalanceOutput
179
195
 
180
- GetTransactionInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
196
+ GetTransactionInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, location_name: "transactionHash"))
197
+ GetTransactionInput.add_member(:transaction_id, Shapes::ShapeRef.new(shape: QueryTransactionId, location_name: "transactionId"))
181
198
  GetTransactionInput.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
182
199
  GetTransactionInput.struct_class = Types::GetTransactionInput
183
200
 
@@ -197,6 +214,24 @@ module Aws::ManagedBlockchainQuery
197
214
  ListAssetContractsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
198
215
  ListAssetContractsOutput.struct_class = Types::ListAssetContractsOutput
199
216
 
217
+ ListFilteredTransactionEventsInput.add_member(:network, Shapes::ShapeRef.new(shape: String, required: true, location_name: "network"))
218
+ ListFilteredTransactionEventsInput.add_member(:address_identifier_filter, Shapes::ShapeRef.new(shape: AddressIdentifierFilter, required: true, location_name: "addressIdentifierFilter"))
219
+ ListFilteredTransactionEventsInput.add_member(:time_filter, Shapes::ShapeRef.new(shape: TimeFilter, location_name: "timeFilter"))
220
+ ListFilteredTransactionEventsInput.add_member(:vout_filter, Shapes::ShapeRef.new(shape: VoutFilter, location_name: "voutFilter"))
221
+ ListFilteredTransactionEventsInput.add_member(:confirmation_status_filter, Shapes::ShapeRef.new(shape: ConfirmationStatusFilter, location_name: "confirmationStatusFilter"))
222
+ ListFilteredTransactionEventsInput.add_member(:sort, Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsSort, location_name: "sort"))
223
+ ListFilteredTransactionEventsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
224
+ ListFilteredTransactionEventsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsInputMaxResultsInteger, location_name: "maxResults"))
225
+ ListFilteredTransactionEventsInput.struct_class = Types::ListFilteredTransactionEventsInput
226
+
227
+ ListFilteredTransactionEventsOutput.add_member(:events, Shapes::ShapeRef.new(shape: TransactionEventList, required: true, location_name: "events"))
228
+ ListFilteredTransactionEventsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
229
+ ListFilteredTransactionEventsOutput.struct_class = Types::ListFilteredTransactionEventsOutput
230
+
231
+ ListFilteredTransactionEventsSort.add_member(:sort_by, Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsSortBy, location_name: "sortBy"))
232
+ ListFilteredTransactionEventsSort.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "sortOrder"))
233
+ ListFilteredTransactionEventsSort.struct_class = Types::ListFilteredTransactionEventsSort
234
+
200
235
  ListTokenBalancesInput.add_member(:owner_filter, Shapes::ShapeRef.new(shape: OwnerFilter, location_name: "ownerFilter"))
201
236
  ListTokenBalancesInput.add_member(:token_filter, Shapes::ShapeRef.new(shape: TokenFilter, required: true, location_name: "tokenFilter"))
202
237
  ListTokenBalancesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -207,7 +242,8 @@ module Aws::ManagedBlockchainQuery
207
242
  ListTokenBalancesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
208
243
  ListTokenBalancesOutput.struct_class = Types::ListTokenBalancesOutput
209
244
 
210
- ListTransactionEventsInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
245
+ ListTransactionEventsInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, location_name: "transactionHash"))
246
+ ListTransactionEventsInput.add_member(:transaction_id, Shapes::ShapeRef.new(shape: QueryTransactionId, location_name: "transactionId"))
211
247
  ListTransactionEventsInput.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
212
248
  ListTransactionEventsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
213
249
  ListTransactionEventsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTransactionEventsInputMaxResultsInteger, location_name: "maxResults"))
@@ -259,6 +295,10 @@ module Aws::ManagedBlockchainQuery
259
295
  ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
260
296
  ThrottlingException.struct_class = Types::ThrottlingException
261
297
 
298
+ TimeFilter.add_member(:from, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "from"))
299
+ TimeFilter.add_member(:to, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "to"))
300
+ TimeFilter.struct_class = Types::TimeFilter
301
+
262
302
  TokenBalance.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, location_name: "ownerIdentifier"))
263
303
  TokenBalance.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, location_name: "tokenIdentifier"))
264
304
  TokenBalance.add_member(:balance, Shapes::ShapeRef.new(shape: String, required: true, location_name: "balance"))
@@ -310,11 +350,18 @@ module Aws::ManagedBlockchainQuery
310
350
  TransactionEvent.add_member(:token_id, Shapes::ShapeRef.new(shape: QueryTokenId, location_name: "tokenId"))
311
351
  TransactionEvent.add_member(:transaction_id, Shapes::ShapeRef.new(shape: String, location_name: "transactionId"))
312
352
  TransactionEvent.add_member(:vout_index, Shapes::ShapeRef.new(shape: Integer, location_name: "voutIndex"))
353
+ TransactionEvent.add_member(:vout_spent, Shapes::ShapeRef.new(shape: Boolean, location_name: "voutSpent"))
354
+ TransactionEvent.add_member(:spent_vout_transaction_id, Shapes::ShapeRef.new(shape: String, location_name: "spentVoutTransactionId"))
355
+ TransactionEvent.add_member(:spent_vout_transaction_hash, Shapes::ShapeRef.new(shape: String, location_name: "spentVoutTransactionHash"))
356
+ TransactionEvent.add_member(:spent_vout_index, Shapes::ShapeRef.new(shape: Integer, location_name: "spentVoutIndex"))
357
+ TransactionEvent.add_member(:blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "blockchainInstant"))
358
+ TransactionEvent.add_member(:confirmation_status, Shapes::ShapeRef.new(shape: ConfirmationStatus, location_name: "confirmationStatus"))
313
359
  TransactionEvent.struct_class = Types::TransactionEvent
314
360
 
315
361
  TransactionEventList.member = Shapes::ShapeRef.new(shape: TransactionEvent)
316
362
 
317
363
  TransactionOutputItem.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
364
+ TransactionOutputItem.add_member(:transaction_id, Shapes::ShapeRef.new(shape: QueryTransactionId, location_name: "transactionId"))
318
365
  TransactionOutputItem.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
319
366
  TransactionOutputItem.add_member(:transaction_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "transactionTimestamp"))
320
367
  TransactionOutputItem.add_member(:confirmation_status, Shapes::ShapeRef.new(shape: ConfirmationStatus, location_name: "confirmationStatus"))
@@ -333,6 +380,9 @@ module Aws::ManagedBlockchainQuery
333
380
 
334
381
  ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
335
382
 
383
+ VoutFilter.add_member(:vout_spent, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "voutSpent"))
384
+ VoutFilter.struct_class = Types::VoutFilter
385
+
336
386
 
337
387
  # @api private
338
388
  API = Seahorse::Model::Api.new.tap do |api|
@@ -427,6 +477,25 @@ module Aws::ManagedBlockchainQuery
427
477
  )
428
478
  end)
429
479
 
480
+ api.add_operation(:list_filtered_transaction_events, Seahorse::Model::Operation.new.tap do |o|
481
+ o.name = "ListFilteredTransactionEvents"
482
+ o.http_method = "POST"
483
+ o.http_request_uri = "/list-filtered-transaction-events"
484
+ o.input = Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsInput)
485
+ o.output = Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsOutput)
486
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
487
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
488
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
489
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
490
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
491
+ o[:pager] = Aws::Pager.new(
492
+ limit_key: "max_results",
493
+ tokens: {
494
+ "next_token" => "next_token"
495
+ }
496
+ )
497
+ end)
498
+
430
499
  api.add_operation(:list_token_balances, Seahorse::Model::Operation.new.tap do |o|
431
500
  o.name = "ListTokenBalances"
432
501
  o.http_method = "POST"
@@ -82,6 +82,20 @@ module Aws::ManagedBlockchainQuery
82
82
  end
83
83
  end
84
84
 
85
+ class ListFilteredTransactionEvents
86
+ def self.build(context)
87
+ unless context.config.regional_endpoint
88
+ endpoint = context.config.endpoint.to_s
89
+ end
90
+ Aws::ManagedBlockchainQuery::EndpointParameters.new(
91
+ region: context.config.region,
92
+ use_dual_stack: context.config.use_dualstack_endpoint,
93
+ use_fips: context.config.use_fips_endpoint,
94
+ endpoint: endpoint,
95
+ )
96
+ end
97
+ end
98
+
85
99
  class ListTokenBalances
86
100
  def self.build(context)
87
101
  unless context.config.regional_endpoint
@@ -68,6 +68,8 @@ module Aws::ManagedBlockchainQuery
68
68
  Aws::ManagedBlockchainQuery::Endpoints::GetTransaction.build(context)
69
69
  when :list_asset_contracts
70
70
  Aws::ManagedBlockchainQuery::Endpoints::ListAssetContracts.build(context)
71
+ when :list_filtered_transaction_events
72
+ Aws::ManagedBlockchainQuery::Endpoints::ListFilteredTransactionEvents.build(context)
71
73
  when :list_token_balances
72
74
  Aws::ManagedBlockchainQuery::Endpoints::ListTokenBalances.build(context)
73
75
  when :list_transaction_events
@@ -24,6 +24,20 @@ module Aws::ManagedBlockchainQuery
24
24
  include Aws::Structure
25
25
  end
26
26
 
27
+ # This is the container for the unique public address on the blockchain.
28
+ #
29
+ # @!attribute [rw] transaction_event_to_address
30
+ # The container for the recipient address of the transaction.
31
+ # @return [Array<String>]
32
+ #
33
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/AddressIdentifierFilter AWS API Documentation
34
+ #
35
+ class AddressIdentifierFilter < Struct.new(
36
+ :transaction_event_to_address)
37
+ SENSITIVE = []
38
+ include Aws::Structure
39
+ end
40
+
27
41
  # This container contains information about an contract.
28
42
  #
29
43
  # @!attribute [rw] contract_identifier
@@ -62,7 +76,7 @@ module Aws::ManagedBlockchainQuery
62
76
  # @return [Types::TokenIdentifier]
63
77
  #
64
78
  # @!attribute [rw] owner_identifier
65
- # The container for the identifier of the owner.
79
+ # The container for the owner identifier.
66
80
  # @return [Types::OwnerIdentifier]
67
81
  #
68
82
  # @!attribute [rw] at_blockchain_instant
@@ -120,7 +134,7 @@ module Aws::ManagedBlockchainQuery
120
134
  # @return [Types::TokenIdentifier]
121
135
  #
122
136
  # @!attribute [rw] owner_identifier
123
- # The container for the identifier of the owner.
137
+ # The container for the owner identifier.
124
138
  # @return [Types::OwnerIdentifier]
125
139
  #
126
140
  # @!attribute [rw] at_blockchain_instant
@@ -159,7 +173,7 @@ module Aws::ManagedBlockchainQuery
159
173
  # The container for the properties of a token balance output.
160
174
  #
161
175
  # @!attribute [rw] owner_identifier
162
- # The container for the identifier of the owner.
176
+ # The container for the owner identifier.
163
177
  # @return [Types::OwnerIdentifier]
164
178
  #
165
179
  # @!attribute [rw] token_identifier
@@ -377,7 +391,7 @@ module Aws::ManagedBlockchainQuery
377
391
  end
378
392
 
379
393
  # @!attribute [rw] owner_identifier
380
- # The container for the identifier of the owner.
394
+ # The container for the owner identifier.
381
395
  # @return [Types::OwnerIdentifier]
382
396
  #
383
397
  # @!attribute [rw] token_identifier
@@ -415,8 +429,17 @@ module Aws::ManagedBlockchainQuery
415
429
  end
416
430
 
417
431
  # @!attribute [rw] transaction_hash
418
- # The hash of the transaction. It is generated whenever a transaction
419
- # is verified and added to the blockchain.
432
+ # The hash of a transaction. It is generated when a transaction is
433
+ # created.
434
+ # @return [String]
435
+ #
436
+ # @!attribute [rw] transaction_id
437
+ # The identifier of a Bitcoin transaction. It is generated when a
438
+ # transaction is created.
439
+ #
440
+ # <note markdown="1"> `transactionId` is only supported on the Bitcoin networks.
441
+ #
442
+ # </note>
420
443
  # @return [String]
421
444
  #
422
445
  # @!attribute [rw] network
@@ -427,6 +450,7 @@ module Aws::ManagedBlockchainQuery
427
450
  #
428
451
  class GetTransactionInput < Struct.new(
429
452
  :transaction_hash,
453
+ :transaction_id,
430
454
  :network)
431
455
  SENSITIVE = []
432
456
  include Aws::Structure
@@ -452,7 +476,7 @@ module Aws::ManagedBlockchainQuery
452
476
  # @return [String]
453
477
  #
454
478
  # @!attribute [rw] retry_after_seconds
455
- # The container of the `retryAfterSeconds` value.
479
+ # Specifies the `retryAfterSeconds` value.
456
480
  # @return [Integer]
457
481
  #
458
482
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/InternalServerException AWS API Documentation
@@ -476,7 +500,7 @@ module Aws::ManagedBlockchainQuery
476
500
  # @!attribute [rw] max_results
477
501
  # The maximum number of contracts to list.
478
502
  #
479
- # Default:`100`
503
+ # Default: `100`
480
504
  #
481
505
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
482
506
  # less results than `maxResults` or an empty array of results.
@@ -517,6 +541,119 @@ module Aws::ManagedBlockchainQuery
517
541
  include Aws::Structure
518
542
  end
519
543
 
544
+ # @!attribute [rw] network
545
+ # The blockchain network where the transaction occurred.
546
+ #
547
+ # Valid Values: `BITCOIN_MAINNET` \| `BITCOIN_TESTNET`
548
+ # @return [String]
549
+ #
550
+ # @!attribute [rw] address_identifier_filter
551
+ # This is the unique public address on the blockchain for which the
552
+ # transaction events are being requested.
553
+ # @return [Types::AddressIdentifierFilter]
554
+ #
555
+ # @!attribute [rw] time_filter
556
+ # This container specifies the time frame for the transaction events
557
+ # returned in the response.
558
+ # @return [Types::TimeFilter]
559
+ #
560
+ # @!attribute [rw] vout_filter
561
+ # This container specifies filtering attributes related to
562
+ # BITCOIN\_VOUT event types
563
+ # @return [Types::VoutFilter]
564
+ #
565
+ # @!attribute [rw] confirmation_status_filter
566
+ # The container for the `ConfirmationStatusFilter` that filters for
567
+ # the [ *finality* ][1] of the results.
568
+ #
569
+ #
570
+ #
571
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
572
+ # @return [Types::ConfirmationStatusFilter]
573
+ #
574
+ # @!attribute [rw] sort
575
+ # The order by which the results will be sorted.
576
+ # @return [Types::ListFilteredTransactionEventsSort]
577
+ #
578
+ # @!attribute [rw] next_token
579
+ # The pagination token that indicates the next set of results to
580
+ # retrieve.
581
+ # @return [String]
582
+ #
583
+ # @!attribute [rw] max_results
584
+ # The maximum number of transaction events to list.
585
+ #
586
+ # Default: `100`
587
+ #
588
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
589
+ # less results than `maxResults` or an empty array of results.
590
+ #
591
+ # To retrieve the next set of results, make another request with the
592
+ # returned `nextToken` value. The value of `nextToken` is `null` when
593
+ # there are no more results to return
594
+ #
595
+ # </note>
596
+ # @return [Integer]
597
+ #
598
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListFilteredTransactionEventsInput AWS API Documentation
599
+ #
600
+ class ListFilteredTransactionEventsInput < Struct.new(
601
+ :network,
602
+ :address_identifier_filter,
603
+ :time_filter,
604
+ :vout_filter,
605
+ :confirmation_status_filter,
606
+ :sort,
607
+ :next_token,
608
+ :max_results)
609
+ SENSITIVE = []
610
+ include Aws::Structure
611
+ end
612
+
613
+ # @!attribute [rw] events
614
+ # The transaction events returned by the request.
615
+ # @return [Array<Types::TransactionEvent>]
616
+ #
617
+ # @!attribute [rw] next_token
618
+ # The pagination token that indicates the next set of results to
619
+ # retrieve.
620
+ # @return [String]
621
+ #
622
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListFilteredTransactionEventsOutput AWS API Documentation
623
+ #
624
+ class ListFilteredTransactionEventsOutput < Struct.new(
625
+ :events,
626
+ :next_token)
627
+ SENSITIVE = []
628
+ include Aws::Structure
629
+ end
630
+
631
+ # Lists all the transaction events for an address on the blockchain.
632
+ #
633
+ # <note markdown="1"> This operation is only supported on the Bitcoin blockchain networks.
634
+ #
635
+ # </note>
636
+ #
637
+ # @!attribute [rw] sort_by
638
+ # Container on how the results will be sorted by?
639
+ # @return [String]
640
+ #
641
+ # @!attribute [rw] sort_order
642
+ # The container for the *sort order* for
643
+ # `ListFilteredTransactionEvents`. The `SortOrder` field only accepts
644
+ # the values `ASCENDING` and `DESCENDING`. Not providing `SortOrder`
645
+ # will default to `ASCENDING`.
646
+ # @return [String]
647
+ #
648
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListFilteredTransactionEventsSort AWS API Documentation
649
+ #
650
+ class ListFilteredTransactionEventsSort < Struct.new(
651
+ :sort_by,
652
+ :sort_order)
653
+ SENSITIVE = []
654
+ include Aws::Structure
655
+ end
656
+
520
657
  # @!attribute [rw] owner_filter
521
658
  # The contract or wallet address on the blockchain network by which to
522
659
  # filter the request. You must specify the `address` property of the
@@ -543,7 +680,7 @@ module Aws::ManagedBlockchainQuery
543
680
  # @!attribute [rw] max_results
544
681
  # The maximum number of token balances to return.
545
682
  #
546
- # Default:`100`
683
+ # Default: `100`
547
684
  #
548
685
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
549
686
  # less results than `maxResults` or an empty array of results.
@@ -586,8 +723,17 @@ module Aws::ManagedBlockchainQuery
586
723
  end
587
724
 
588
725
  # @!attribute [rw] transaction_hash
589
- # The hash of the transaction. It is generated whenever a transaction
590
- # is verified and added to the blockchain.
726
+ # The hash of a transaction. It is generated when a transaction is
727
+ # created.
728
+ # @return [String]
729
+ #
730
+ # @!attribute [rw] transaction_id
731
+ # The identifier of a Bitcoin transaction. It is generated when a
732
+ # transaction is created.
733
+ #
734
+ # <note markdown="1"> `transactionId` is only supported on the Bitcoin networks.
735
+ #
736
+ # </note>
591
737
  # @return [String]
592
738
  #
593
739
  # @!attribute [rw] network
@@ -602,7 +748,7 @@ module Aws::ManagedBlockchainQuery
602
748
  # @!attribute [rw] max_results
603
749
  # The maximum number of transaction events to list.
604
750
  #
605
- # Default:`100`
751
+ # Default: `100`
606
752
  #
607
753
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
608
754
  # less results than `maxResults` or an empty array of results.
@@ -618,6 +764,7 @@ module Aws::ManagedBlockchainQuery
618
764
  #
619
765
  class ListTransactionEventsInput < Struct.new(
620
766
  :transaction_hash,
767
+ :transaction_id,
621
768
  :network,
622
769
  :next_token,
623
770
  :max_results)
@@ -662,8 +809,7 @@ module Aws::ManagedBlockchainQuery
662
809
  # @return [Types::BlockchainInstant]
663
810
  #
664
811
  # @!attribute [rw] sort
665
- # The order by which the results will be sorted. If `ASCENNDING` is
666
- # selected, the results will be ordered by `fromTime`.
812
+ # The order by which the results will be sorted.
667
813
  # @return [Types::ListTransactionsSort]
668
814
  #
669
815
  # @!attribute [rw] next_token
@@ -674,7 +820,7 @@ module Aws::ManagedBlockchainQuery
674
820
  # @!attribute [rw] max_results
675
821
  # The maximum number of transactions to list.
676
822
  #
677
- # Default:`100`
823
+ # Default: `100`
678
824
  #
679
825
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
680
826
  # less results than `maxResults` or an empty array of results.
@@ -689,7 +835,7 @@ module Aws::ManagedBlockchainQuery
689
835
  # @!attribute [rw] confirmation_status_filter
690
836
  # This filter is used to include transactions in the response that
691
837
  # haven't reached [ *finality* ][1]. Transactions that have reached
692
- # finiality are always part of the response.
838
+ # finality are always part of the response.
693
839
  #
694
840
  #
695
841
  #
@@ -765,7 +911,7 @@ module Aws::ManagedBlockchainQuery
765
911
  include Aws::Structure
766
912
  end
767
913
 
768
- # The container for the identifier of the owner.
914
+ # The container for the owner identifier.
769
915
  #
770
916
  # @!attribute [rw] address
771
917
  # The contract or wallet address for the owner.
@@ -870,6 +1016,25 @@ module Aws::ManagedBlockchainQuery
870
1016
  include Aws::Structure
871
1017
  end
872
1018
 
1019
+ # This container is used to specify a time frame.
1020
+ #
1021
+ # @!attribute [rw] from
1022
+ # The container for time.
1023
+ # @return [Types::BlockchainInstant]
1024
+ #
1025
+ # @!attribute [rw] to
1026
+ # The container for time.
1027
+ # @return [Types::BlockchainInstant]
1028
+ #
1029
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TimeFilter AWS API Documentation
1030
+ #
1031
+ class TimeFilter < Struct.new(
1032
+ :from,
1033
+ :to)
1034
+ SENSITIVE = []
1035
+ include Aws::Structure
1036
+ end
1037
+
873
1038
  # The balance of the token.
874
1039
  #
875
1040
  # @!attribute [rw] owner_identifier
@@ -1002,8 +1167,8 @@ module Aws::ManagedBlockchainQuery
1002
1167
  # @return [String]
1003
1168
  #
1004
1169
  # @!attribute [rw] transaction_hash
1005
- # The hash of the transaction. It is generated whenever a transaction
1006
- # is verified and added to the blockchain.
1170
+ # The hash of a transaction. It is generated when a transaction is
1171
+ # created.
1007
1172
  # @return [String]
1008
1173
  #
1009
1174
  # @!attribute [rw] block_number
@@ -1065,8 +1230,8 @@ module Aws::ManagedBlockchainQuery
1065
1230
  # @return [String]
1066
1231
  #
1067
1232
  # @!attribute [rw] transaction_id
1068
- # The unique identifier of the transaction. It is generated whenever a
1069
- # transaction is verified and added to the blockchain.
1233
+ # The identifier of a Bitcoin transaction. It is generated when a
1234
+ # transaction is created.
1070
1235
  # @return [String]
1071
1236
  #
1072
1237
  # @!attribute [rw] confirmation_status
@@ -1111,8 +1276,8 @@ module Aws::ManagedBlockchainQuery
1111
1276
  # @return [String]
1112
1277
  #
1113
1278
  # @!attribute [rw] transaction_hash
1114
- # The hash of the transaction. It is generated whenever a transaction
1115
- # is verified and added to the blockchain.
1279
+ # The hash of a transaction. It is generated when a transaction is
1280
+ # created.
1116
1281
  # @return [String]
1117
1282
  #
1118
1283
  # @!attribute [rw] event_type
@@ -1134,7 +1299,7 @@ module Aws::ManagedBlockchainQuery
1134
1299
  # @return [String]
1135
1300
  #
1136
1301
  # @!attribute [rw] contract_address
1137
- # The blockchain address. for the contract
1302
+ # The blockchain address for the contract
1138
1303
  # @return [String]
1139
1304
  #
1140
1305
  # @!attribute [rw] token_id
@@ -1142,14 +1307,58 @@ module Aws::ManagedBlockchainQuery
1142
1307
  # @return [String]
1143
1308
  #
1144
1309
  # @!attribute [rw] transaction_id
1145
- # The unique identifier of the transaction. It is generated whenever a
1146
- # transaction is verified and added to the blockchain.
1310
+ # The identifier of a Bitcoin transaction. It is generated when a
1311
+ # transaction is created.
1147
1312
  # @return [String]
1148
1313
  #
1149
1314
  # @!attribute [rw] vout_index
1150
- # The position of the vout in the transaction output list.
1315
+ # The position of the transaction output in the transaction output
1316
+ # list.
1317
+ # @return [Integer]
1318
+ #
1319
+ # @!attribute [rw] vout_spent
1320
+ # Specifies if the transaction output is spent or unspent. This is
1321
+ # only returned for BITCOIN\_VOUT event types.
1322
+ #
1323
+ # <note markdown="1"> This is only returned for `BITCOIN_VOUT` event types.
1324
+ #
1325
+ # </note>
1326
+ # @return [Boolean]
1327
+ #
1328
+ # @!attribute [rw] spent_vout_transaction_id
1329
+ # The transactionId that *created* the spent transaction output.
1330
+ #
1331
+ # <note markdown="1"> This is only returned for `BITCOIN_VIN` event types.
1332
+ #
1333
+ # </note>
1334
+ # @return [String]
1335
+ #
1336
+ # @!attribute [rw] spent_vout_transaction_hash
1337
+ # The transactionHash that *created* the spent transaction output.
1338
+ #
1339
+ # <note markdown="1"> This is only returned for `BITCOIN_VIN` event types.
1340
+ #
1341
+ # </note>
1342
+ # @return [String]
1343
+ #
1344
+ # @!attribute [rw] spent_vout_index
1345
+ # The position of the spent transaction output in the output list of
1346
+ # the *creating transaction*.
1347
+ #
1348
+ # <note markdown="1"> This is only returned for `BITCOIN_VIN` event types.
1349
+ #
1350
+ # </note>
1151
1351
  # @return [Integer]
1152
1352
  #
1353
+ # @!attribute [rw] blockchain_instant
1354
+ # The container for time.
1355
+ # @return [Types::BlockchainInstant]
1356
+ #
1357
+ # @!attribute [rw] confirmation_status
1358
+ # This container specifies whether the transaction has reached
1359
+ # Finality.
1360
+ # @return [String]
1361
+ #
1153
1362
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TransactionEvent AWS API Documentation
1154
1363
  #
1155
1364
  class TransactionEvent < Struct.new(
@@ -1162,7 +1371,13 @@ module Aws::ManagedBlockchainQuery
1162
1371
  :contract_address,
1163
1372
  :token_id,
1164
1373
  :transaction_id,
1165
- :vout_index)
1374
+ :vout_index,
1375
+ :vout_spent,
1376
+ :spent_vout_transaction_id,
1377
+ :spent_vout_transaction_hash,
1378
+ :spent_vout_index,
1379
+ :blockchain_instant,
1380
+ :confirmation_status)
1166
1381
  SENSITIVE = []
1167
1382
  include Aws::Structure
1168
1383
  end
@@ -1170,8 +1385,13 @@ module Aws::ManagedBlockchainQuery
1170
1385
  # The container of the transaction output.
1171
1386
  #
1172
1387
  # @!attribute [rw] transaction_hash
1173
- # The hash of the transaction. It is generated whenever a transaction
1174
- # is verified and added to the blockchain.
1388
+ # The hash of a transaction. It is generated when a transaction is
1389
+ # created.
1390
+ # @return [String]
1391
+ #
1392
+ # @!attribute [rw] transaction_id
1393
+ # The identifier of a Bitcoin transaction. It is generated when a
1394
+ # transaction is created.
1175
1395
  # @return [String]
1176
1396
  #
1177
1397
  # @!attribute [rw] network
@@ -1191,6 +1411,7 @@ module Aws::ManagedBlockchainQuery
1191
1411
  #
1192
1412
  class TransactionOutputItem < Struct.new(
1193
1413
  :transaction_hash,
1414
+ :transaction_id,
1194
1415
  :network,
1195
1416
  :transaction_timestamp,
1196
1417
  :confirmation_status)
@@ -1241,5 +1462,20 @@ module Aws::ManagedBlockchainQuery
1241
1462
  include Aws::Structure
1242
1463
  end
1243
1464
 
1465
+ # This container specifies filtering attributes related to
1466
+ # `BITCOIN_VOUT` event types
1467
+ #
1468
+ # @!attribute [rw] vout_spent
1469
+ # Specifies if the transaction output is spent or unspent.
1470
+ # @return [Boolean]
1471
+ #
1472
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/VoutFilter AWS API Documentation
1473
+ #
1474
+ class VoutFilter < Struct.new(
1475
+ :vout_spent)
1476
+ SENSITIVE = []
1477
+ include Aws::Structure
1478
+ end
1479
+
1244
1480
  end
1245
1481
  end
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-managedblockchainquery/customizations'
53
53
  # @!group service
54
54
  module Aws::ManagedBlockchainQuery
55
55
 
56
- GEM_VERSION = '1.8.0'
56
+ GEM_VERSION = '1.10.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -143,7 +143,8 @@ module Aws
143
143
  end
144
144
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#get_transaction-instance_method
145
145
  def get_transaction: (
146
- transaction_hash: ::String,
146
+ ?transaction_hash: ::String,
147
+ ?transaction_id: ::String,
147
148
  network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
148
149
  ) -> _GetTransactionResponseSuccess
149
150
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTransactionResponseSuccess
@@ -165,6 +166,40 @@ module Aws
165
166
  ) -> _ListAssetContractsResponseSuccess
166
167
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAssetContractsResponseSuccess
167
168
 
169
+ interface _ListFilteredTransactionEventsResponseSuccess
170
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListFilteredTransactionEventsOutput]
171
+ def events: () -> ::Array[Types::TransactionEvent]
172
+ def next_token: () -> ::String
173
+ end
174
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#list_filtered_transaction_events-instance_method
175
+ def list_filtered_transaction_events: (
176
+ network: ::String,
177
+ address_identifier_filter: {
178
+ transaction_event_to_address: Array[::String]
179
+ },
180
+ ?time_filter: {
181
+ from: {
182
+ time: ::Time?
183
+ }?,
184
+ to: {
185
+ time: ::Time?
186
+ }?
187
+ },
188
+ ?vout_filter: {
189
+ vout_spent: bool
190
+ },
191
+ ?confirmation_status_filter: {
192
+ include: Array[("FINAL" | "NONFINAL")]
193
+ },
194
+ ?sort: {
195
+ sort_by: ("blockchainInstant")?,
196
+ sort_order: ("ASCENDING" | "DESCENDING")?
197
+ },
198
+ ?next_token: ::String,
199
+ ?max_results: ::Integer
200
+ ) -> _ListFilteredTransactionEventsResponseSuccess
201
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFilteredTransactionEventsResponseSuccess
202
+
168
203
  interface _ListTokenBalancesResponseSuccess
169
204
  include ::Seahorse::Client::_ResponseSuccess[Types::ListTokenBalancesOutput]
170
205
  def token_balances: () -> ::Array[Types::TokenBalance]
@@ -192,7 +227,8 @@ module Aws
192
227
  end
193
228
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#list_transaction_events-instance_method
194
229
  def list_transaction_events: (
195
- transaction_hash: ::String,
230
+ ?transaction_hash: ::String,
231
+ ?transaction_id: ::String,
196
232
  network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
197
233
  ?next_token: ::String,
198
234
  ?max_results: ::Integer
data/sig/types.rbs CHANGED
@@ -13,6 +13,11 @@ module Aws::ManagedBlockchainQuery
13
13
  SENSITIVE: []
14
14
  end
15
15
 
16
+ class AddressIdentifierFilter
17
+ attr_accessor transaction_event_to_address: ::Array[::String]
18
+ SENSITIVE: []
19
+ end
20
+
16
21
  class AssetContract
17
22
  attr_accessor contract_identifier: Types::ContractIdentifier
18
23
  attr_accessor token_standard: ("ERC20" | "ERC721" | "ERC1155")
@@ -118,6 +123,7 @@ module Aws::ManagedBlockchainQuery
118
123
 
119
124
  class GetTransactionInput
120
125
  attr_accessor transaction_hash: ::String
126
+ attr_accessor transaction_id: ::String
121
127
  attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
122
128
  SENSITIVE: []
123
129
  end
@@ -146,6 +152,30 @@ module Aws::ManagedBlockchainQuery
146
152
  SENSITIVE: []
147
153
  end
148
154
 
155
+ class ListFilteredTransactionEventsInput
156
+ attr_accessor network: ::String
157
+ attr_accessor address_identifier_filter: Types::AddressIdentifierFilter
158
+ attr_accessor time_filter: Types::TimeFilter
159
+ attr_accessor vout_filter: Types::VoutFilter
160
+ attr_accessor confirmation_status_filter: Types::ConfirmationStatusFilter
161
+ attr_accessor sort: Types::ListFilteredTransactionEventsSort
162
+ attr_accessor next_token: ::String
163
+ attr_accessor max_results: ::Integer
164
+ SENSITIVE: []
165
+ end
166
+
167
+ class ListFilteredTransactionEventsOutput
168
+ attr_accessor events: ::Array[Types::TransactionEvent]
169
+ attr_accessor next_token: ::String
170
+ SENSITIVE: []
171
+ end
172
+
173
+ class ListFilteredTransactionEventsSort
174
+ attr_accessor sort_by: ("blockchainInstant")
175
+ attr_accessor sort_order: ("ASCENDING" | "DESCENDING")
176
+ SENSITIVE: []
177
+ end
178
+
149
179
  class ListTokenBalancesInput
150
180
  attr_accessor owner_filter: Types::OwnerFilter
151
181
  attr_accessor token_filter: Types::TokenFilter
@@ -162,6 +192,7 @@ module Aws::ManagedBlockchainQuery
162
192
 
163
193
  class ListTransactionEventsInput
164
194
  attr_accessor transaction_hash: ::String
195
+ attr_accessor transaction_id: ::String
165
196
  attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
166
197
  attr_accessor next_token: ::String
167
198
  attr_accessor max_results: ::Integer
@@ -232,6 +263,12 @@ module Aws::ManagedBlockchainQuery
232
263
  SENSITIVE: []
233
264
  end
234
265
 
266
+ class TimeFilter
267
+ attr_accessor from: Types::BlockchainInstant
268
+ attr_accessor to: Types::BlockchainInstant
269
+ SENSITIVE: []
270
+ end
271
+
235
272
  class TokenBalance
236
273
  attr_accessor owner_identifier: Types::OwnerIdentifier
237
274
  attr_accessor token_identifier: Types::TokenIdentifier
@@ -290,11 +327,18 @@ module Aws::ManagedBlockchainQuery
290
327
  attr_accessor token_id: ::String
291
328
  attr_accessor transaction_id: ::String
292
329
  attr_accessor vout_index: ::Integer
330
+ attr_accessor vout_spent: bool
331
+ attr_accessor spent_vout_transaction_id: ::String
332
+ attr_accessor spent_vout_transaction_hash: ::String
333
+ attr_accessor spent_vout_index: ::Integer
334
+ attr_accessor blockchain_instant: Types::BlockchainInstant
335
+ attr_accessor confirmation_status: ("FINAL" | "NONFINAL")
293
336
  SENSITIVE: []
294
337
  end
295
338
 
296
339
  class TransactionOutputItem
297
340
  attr_accessor transaction_hash: ::String
341
+ attr_accessor transaction_id: ::String
298
342
  attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
299
343
  attr_accessor transaction_timestamp: ::Time
300
344
  attr_accessor confirmation_status: ("FINAL" | "NONFINAL")
@@ -313,5 +357,10 @@ module Aws::ManagedBlockchainQuery
313
357
  attr_accessor message: ::String
314
358
  SENSITIVE: []
315
359
  end
360
+
361
+ class VoutFilter
362
+ attr_accessor vout_spent: bool
363
+ SENSITIVE: []
364
+ end
316
365
  end
317
366
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-managedblockchainquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-01 00:00:00.000000000 Z
11
+ date: 2024-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core