aws-sdk-managedblockchainquery 1.7.0 → 1.9.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: b08f0fd763a92a3bd6a3ccd5f21dd637af30c3bb4ed993d5bed0c024315057fe
4
- data.tar.gz: a504acf2a5c9287b2d81983b3d6972bd4af1f2fe818bca25a13856a16b853708
3
+ metadata.gz: 8599fcdede82663aaf94164ef4a14358b4f72b9dd410c6b58894c6143473f660
4
+ data.tar.gz: 121a5a7b22d19786edcec239e2778aa6259c65781680f0e7072ff2e781f177b3
5
5
  SHA512:
6
- metadata.gz: 6de82438302622af1038ed6e5fa9e95eb40d937c37b729e74e5d10bf6707b93099b94a1edd0ddb930261d4c56922195001fcff3e724d43fff461296e3650d9cd
7
- data.tar.gz: 13ef720a4a4a8e813f08968b48102c9a0b0714a7d7638cfd8e9bba1750c2edb83addd076029b366961d0066ec2a4f4a1d343ae8fe84e7d1e614aa3b0e45c9e1f
6
+ metadata.gz: 644b65cb87a7a927c6932d56830cbff61c5d697739c9f83c3f3e3ae65ce987c9c634393213b6ebf2d6c329cec1cf4da79df2075da345682ff1d59dc191c643b5
7
+ data.tar.gz: 95ccfcfcd3f987ebb6cd57334cc0fcbf14f14a1f4047042ef3de0181e8315c45b8c7a032a9f95e5325d6f4aed12e26f62e96d75f2935880d849cb17b22dbe970
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.9.0 (2024-03-19)
5
+ ------------------
6
+
7
+ * Feature - Introduces a new API for Amazon Managed Blockchain Query: ListFilteredTransactionEvents.
8
+
9
+ 1.8.0 (2024-02-01)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for transactions that have not reached finality. It also removes support for the status property from the response of the GetTransaction operation. You can use the confirmationStatus and executionStatus properties to determine the status of the transaction.
13
+
4
14
  1.7.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.9.0
@@ -391,8 +391,8 @@ module Aws::ManagedBlockchainQuery
391
391
  # Gets the token balance for a batch of tokens by using the
392
392
  # `BatchGetTokenBalance` action for every token in the request.
393
393
  #
394
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155
395
- # token standards are supported.
394
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
395
+ # 1155 token standards are supported.
396
396
  #
397
397
  # </note>
398
398
  #
@@ -506,8 +506,8 @@ module Aws::ManagedBlockchainQuery
506
506
  # Gets the balance of a specific token, including native tokens, for a
507
507
  # given address (wallet or contract) on the blockchain.
508
508
  #
509
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155
510
- # token standards are supported.
509
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
510
+ # 1155 token standards are supported.
511
511
  #
512
512
  # </note>
513
513
  #
@@ -569,11 +569,21 @@ module Aws::ManagedBlockchainQuery
569
569
  req.send_request(options)
570
570
  end
571
571
 
572
- # Get the details of a transaction.
572
+ # Gets the details of a transaction.
573
+ #
574
+ # <note markdown="1"> This action will return transaction details for all transactions that
575
+ # are *confirmed* on the blockchain, even if they have not reached
576
+ # [finality][1].
577
+ #
578
+ # </note>
579
+ #
580
+ #
581
+ #
582
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
573
583
  #
574
584
  # @option params [required, String] :transaction_hash
575
- # The hash of the transaction. It is generated whenever a transaction is
576
- # verified and added to the blockchain.
585
+ # The hash of a transaction. It is generated when a transaction is
586
+ # created.
577
587
  #
578
588
  # @option params [required, String] :network
579
589
  # The blockchain network where the transaction occurred.
@@ -598,7 +608,6 @@ module Aws::ManagedBlockchainQuery
598
608
  # resp.transaction.transaction_timestamp #=> Time
599
609
  # resp.transaction.transaction_index #=> Integer
600
610
  # resp.transaction.number_of_transactions #=> Integer
601
- # resp.transaction.status #=> String, one of "FINAL", "FAILED"
602
611
  # resp.transaction.to #=> String
603
612
  # resp.transaction.from #=> String
604
613
  # resp.transaction.contract_address #=> String
@@ -610,7 +619,7 @@ module Aws::ManagedBlockchainQuery
610
619
  # resp.transaction.signature_s #=> String
611
620
  # resp.transaction.transaction_fee #=> String
612
621
  # resp.transaction.transaction_id #=> String
613
- # resp.transaction.confirmation_status #=> String, one of "FINAL"
622
+ # resp.transaction.confirmation_status #=> String, one of "FINAL", "NONFINAL"
614
623
  # resp.transaction.execution_status #=> String, one of "FAILED", "SUCCEEDED"
615
624
  #
616
625
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTransaction AWS API Documentation
@@ -637,6 +646,17 @@ module Aws::ManagedBlockchainQuery
637
646
  # @option params [Integer] :max_results
638
647
  # The maximum number of contracts to list.
639
648
  #
649
+ # Default: `100`
650
+ #
651
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
652
+ # less results than `maxResults` or an empty array of results.
653
+ #
654
+ # To retrieve the next set of results, make another request with the
655
+ # returned `nextToken` value. The value of `nextToken` is `null` when
656
+ # there are no more results to return
657
+ #
658
+ # </note>
659
+ #
640
660
  # @return [Types::ListAssetContractsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
641
661
  #
642
662
  # * {Types::ListAssetContractsOutput#contracts #contracts} => Array&lt;Types::AssetContract&gt;
@@ -674,6 +694,124 @@ module Aws::ManagedBlockchainQuery
674
694
  req.send_request(options)
675
695
  end
676
696
 
697
+ # Lists all the transaction events for an address on the blockchain.
698
+ #
699
+ # <note markdown="1"> This operation is only supported on the Bitcoin networks.
700
+ #
701
+ # </note>
702
+ #
703
+ # @option params [required, String] :network
704
+ # The blockchain network where the transaction occurred.
705
+ #
706
+ # Valid Values: `BITCOIN_MAINNET` \| `BITCOIN_TESTNET`
707
+ #
708
+ # @option params [required, Types::AddressIdentifierFilter] :address_identifier_filter
709
+ # This is the unique public address on the blockchain for which the
710
+ # transaction events are being requested.
711
+ #
712
+ # @option params [Types::TimeFilter] :time_filter
713
+ # This container specifies the time frame for the transaction events
714
+ # returned in the response.
715
+ #
716
+ # @option params [Types::VoutFilter] :vout_filter
717
+ # This container specifies filtering attributes related to BITCOIN\_VOUT
718
+ # event types
719
+ #
720
+ # @option params [Types::ConfirmationStatusFilter] :confirmation_status_filter
721
+ # The container for the `ConfirmationStatusFilter` that filters for the
722
+ # [ *finality* ][1] of the results.
723
+ #
724
+ #
725
+ #
726
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
727
+ #
728
+ # @option params [Types::ListFilteredTransactionEventsSort] :sort
729
+ # The order by which the results will be sorted.
730
+ #
731
+ # @option params [String] :next_token
732
+ # The pagination token that indicates the next set of results to
733
+ # retrieve.
734
+ #
735
+ # @option params [Integer] :max_results
736
+ # The maximum number of transaction events to list.
737
+ #
738
+ # Default: `100`
739
+ #
740
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
741
+ # less results than `maxResults` or an empty array of results.
742
+ #
743
+ # To retrieve the next set of results, make another request with the
744
+ # returned `nextToken` value. The value of `nextToken` is `null` when
745
+ # there are no more results to return
746
+ #
747
+ # </note>
748
+ #
749
+ # @return [Types::ListFilteredTransactionEventsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
750
+ #
751
+ # * {Types::ListFilteredTransactionEventsOutput#events #events} => Array&lt;Types::TransactionEvent&gt;
752
+ # * {Types::ListFilteredTransactionEventsOutput#next_token #next_token} => String
753
+ #
754
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
755
+ #
756
+ # @example Request syntax with placeholder values
757
+ #
758
+ # resp = client.list_filtered_transaction_events({
759
+ # network: "String", # required
760
+ # address_identifier_filter: { # required
761
+ # transaction_event_to_address: ["ChainAddress"], # required
762
+ # },
763
+ # time_filter: {
764
+ # from: {
765
+ # time: Time.now,
766
+ # },
767
+ # to: {
768
+ # time: Time.now,
769
+ # },
770
+ # },
771
+ # vout_filter: {
772
+ # vout_spent: false, # required
773
+ # },
774
+ # confirmation_status_filter: {
775
+ # include: ["FINAL"], # required, accepts FINAL, NONFINAL
776
+ # },
777
+ # sort: {
778
+ # sort_by: "blockchainInstant", # accepts blockchainInstant
779
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
780
+ # },
781
+ # next_token: "NextToken",
782
+ # max_results: 1,
783
+ # })
784
+ #
785
+ # @example Response structure
786
+ #
787
+ # resp.events #=> Array
788
+ # resp.events[0].network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
789
+ # resp.events[0].transaction_hash #=> String
790
+ # 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"
791
+ # resp.events[0].from #=> String
792
+ # resp.events[0].to #=> String
793
+ # resp.events[0].value #=> String
794
+ # resp.events[0].contract_address #=> String
795
+ # resp.events[0].token_id #=> String
796
+ # resp.events[0].transaction_id #=> String
797
+ # resp.events[0].vout_index #=> Integer
798
+ # resp.events[0].vout_spent #=> Boolean
799
+ # resp.events[0].spent_vout_transaction_id #=> String
800
+ # resp.events[0].spent_vout_transaction_hash #=> String
801
+ # resp.events[0].spent_vout_index #=> Integer
802
+ # resp.events[0].blockchain_instant.time #=> Time
803
+ # resp.events[0].confirmation_status #=> String, one of "FINAL", "NONFINAL"
804
+ # resp.next_token #=> String
805
+ #
806
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListFilteredTransactionEvents AWS API Documentation
807
+ #
808
+ # @overload list_filtered_transaction_events(params = {})
809
+ # @param [Hash] params ({})
810
+ def list_filtered_transaction_events(params = {}, options = {})
811
+ req = build_request(:list_filtered_transaction_events, params)
812
+ req.send_request(options)
813
+ end
814
+
677
815
  # This action returns the following for a given blockchain network:
678
816
  #
679
817
  # * Lists all token balances owned by an address (either a contract
@@ -710,6 +848,17 @@ module Aws::ManagedBlockchainQuery
710
848
  # @option params [Integer] :max_results
711
849
  # The maximum number of token balances to return.
712
850
  #
851
+ # Default: `100`
852
+ #
853
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
854
+ # less results than `maxResults` or an empty array of results.
855
+ #
856
+ # To retrieve the next set of results, make another request with the
857
+ # returned `nextToken` value. The value of `nextToken` is `null` when
858
+ # there are no more results to return
859
+ #
860
+ # </note>
861
+ #
713
862
  # @return [Types::ListTokenBalancesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
714
863
  #
715
864
  # * {Types::ListTokenBalancesOutput#token_balances #token_balances} => Array&lt;Types::TokenBalance&gt;
@@ -753,12 +902,29 @@ module Aws::ManagedBlockchainQuery
753
902
  req.send_request(options)
754
903
  end
755
904
 
756
- # An array of `TransactionEvent` objects. Each object contains details
757
- # about the transaction event.
905
+ # Lists all the transaction events for a transaction
906
+ #
907
+ # <note markdown="1"> This action will return transaction details for all transactions that
908
+ # are *confirmed* on the blockchain, even if they have not reached
909
+ # [finality][1].
910
+ #
911
+ # </note>
912
+ #
758
913
  #
759
- # @option params [required, String] :transaction_hash
760
- # The hash of the transaction. It is generated whenever a transaction is
761
- # verified and added to the blockchain.
914
+ #
915
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
916
+ #
917
+ # @option params [String] :transaction_hash
918
+ # The hash of a transaction. It is generated when a transaction is
919
+ # created.
920
+ #
921
+ # @option params [String] :transaction_id
922
+ # The identifier of a Bitcoin transaction. It is generated when a
923
+ # transaction is created.
924
+ #
925
+ # <note markdown="1"> `transactionId` is only supported on the Bitcoin networks.
926
+ #
927
+ # </note>
762
928
  #
763
929
  # @option params [required, String] :network
764
930
  # The blockchain network where the transaction events occurred.
@@ -770,6 +936,8 @@ module Aws::ManagedBlockchainQuery
770
936
  # @option params [Integer] :max_results
771
937
  # The maximum number of transaction events to list.
772
938
  #
939
+ # Default: `100`
940
+ #
773
941
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
774
942
  # less results than `maxResults` or an empty array of results.
775
943
  #
@@ -789,7 +957,8 @@ module Aws::ManagedBlockchainQuery
789
957
  # @example Request syntax with placeholder values
790
958
  #
791
959
  # resp = client.list_transaction_events({
792
- # transaction_hash: "QueryTransactionHash", # required
960
+ # transaction_hash: "QueryTransactionHash",
961
+ # transaction_id: "QueryTransactionId",
793
962
  # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
794
963
  # next_token: "NextToken",
795
964
  # max_results: 1,
@@ -808,6 +977,12 @@ module Aws::ManagedBlockchainQuery
808
977
  # resp.events[0].token_id #=> String
809
978
  # resp.events[0].transaction_id #=> String
810
979
  # resp.events[0].vout_index #=> Integer
980
+ # resp.events[0].vout_spent #=> Boolean
981
+ # resp.events[0].spent_vout_transaction_id #=> String
982
+ # resp.events[0].spent_vout_transaction_hash #=> String
983
+ # resp.events[0].spent_vout_index #=> Integer
984
+ # resp.events[0].blockchain_instant.time #=> Time
985
+ # resp.events[0].confirmation_status #=> String, one of "FINAL", "NONFINAL"
811
986
  # resp.next_token #=> String
812
987
  #
813
988
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionEvents AWS API Documentation
@@ -819,8 +994,7 @@ module Aws::ManagedBlockchainQuery
819
994
  req.send_request(options)
820
995
  end
821
996
 
822
- # Lists all of the transactions on a given wallet address or to a
823
- # specific contract.
997
+ # Lists all the transaction events for a transaction.
824
998
  #
825
999
  # @option params [required, String] :address
826
1000
  # The address (either a contract or wallet), whose transactions are
@@ -836,9 +1010,7 @@ module Aws::ManagedBlockchainQuery
836
1010
  # The container for time.
837
1011
  #
838
1012
  # @option params [Types::ListTransactionsSort] :sort
839
- # Sorts items in an ascending order if the first page starts at
840
- # `fromTime`. Sorts items in a descending order if the first page starts
841
- # at `toTime`.
1013
+ # The order by which the results will be sorted.
842
1014
  #
843
1015
  # @option params [String] :next_token
844
1016
  # The pagination token that indicates the next set of results to
@@ -847,6 +1019,8 @@ module Aws::ManagedBlockchainQuery
847
1019
  # @option params [Integer] :max_results
848
1020
  # The maximum number of transactions to list.
849
1021
  #
1022
+ # Default: `100`
1023
+ #
850
1024
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
851
1025
  # less results than `maxResults` or an empty array of results.
852
1026
  #
@@ -856,6 +1030,15 @@ module Aws::ManagedBlockchainQuery
856
1030
  #
857
1031
  # </note>
858
1032
  #
1033
+ # @option params [Types::ConfirmationStatusFilter] :confirmation_status_filter
1034
+ # This filter is used to include transactions in the response that
1035
+ # haven't reached [ *finality* ][1]. Transactions that have reached
1036
+ # finality are always part of the response.
1037
+ #
1038
+ #
1039
+ #
1040
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
1041
+ #
859
1042
  # @return [Types::ListTransactionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
860
1043
  #
861
1044
  # * {Types::ListTransactionsOutput#transactions #transactions} => Array&lt;Types::TransactionOutputItem&gt;
@@ -880,6 +1063,9 @@ module Aws::ManagedBlockchainQuery
880
1063
  # },
881
1064
  # next_token: "NextToken",
882
1065
  # max_results: 1,
1066
+ # confirmation_status_filter: {
1067
+ # include: ["FINAL"], # required, accepts FINAL, NONFINAL
1068
+ # },
883
1069
  # })
884
1070
  #
885
1071
  # @example Response structure
@@ -888,6 +1074,7 @@ module Aws::ManagedBlockchainQuery
888
1074
  # resp.transactions[0].transaction_hash #=> String
889
1075
  # resp.transactions[0].network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
890
1076
  # resp.transactions[0].transaction_timestamp #=> Time
1077
+ # resp.transactions[0].confirmation_status #=> String, one of "FINAL", "NONFINAL"
891
1078
  # resp.next_token #=> String
892
1079
  #
893
1080
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactions AWS API Documentation
@@ -912,7 +1099,7 @@ module Aws::ManagedBlockchainQuery
912
1099
  params: params,
913
1100
  config: config)
914
1101
  context[:gem_name] = 'aws-sdk-managedblockchainquery'
915
- context[:gem_version] = '1.7.0'
1102
+ context[:gem_version] = '1.9.0'
916
1103
  Seahorse::Client::Request.new(handlers, context)
917
1104
  end
918
1105
 
@@ -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,8 +27,11 @@ 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')
33
+ ConfirmationStatusFilter = Shapes::StructureShape.new(name: 'ConfirmationStatusFilter')
34
+ ConfirmationStatusIncludeList = Shapes::ListShape.new(name: 'ConfirmationStatusIncludeList')
30
35
  ContractFilter = Shapes::StructureShape.new(name: 'ContractFilter')
31
36
  ContractIdentifier = Shapes::StructureShape.new(name: 'ContractIdentifier')
32
37
  ContractMetadata = Shapes::StructureShape.new(name: 'ContractMetadata')
@@ -45,6 +50,11 @@ module Aws::ManagedBlockchainQuery
45
50
  ListAssetContractsInput = Shapes::StructureShape.new(name: 'ListAssetContractsInput')
46
51
  ListAssetContractsInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListAssetContractsInputMaxResultsInteger')
47
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')
48
58
  ListTokenBalancesInput = Shapes::StructureShape.new(name: 'ListTokenBalancesInput')
49
59
  ListTokenBalancesInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListTokenBalancesInputMaxResultsInteger')
50
60
  ListTokenBalancesOutput = Shapes::StructureShape.new(name: 'ListTokenBalancesOutput')
@@ -65,7 +75,7 @@ module Aws::ManagedBlockchainQuery
65
75
  QueryTokenStandard = Shapes::StringShape.new(name: 'QueryTokenStandard')
66
76
  QueryTransactionEventType = Shapes::StringShape.new(name: 'QueryTransactionEventType')
67
77
  QueryTransactionHash = Shapes::StringShape.new(name: 'QueryTransactionHash')
68
- QueryTransactionStatus = Shapes::StringShape.new(name: 'QueryTransactionStatus')
78
+ QueryTransactionId = Shapes::StringShape.new(name: 'QueryTransactionId')
69
79
  QuotaCode = Shapes::StringShape.new(name: 'QuotaCode')
70
80
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
71
81
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -75,6 +85,7 @@ module Aws::ManagedBlockchainQuery
75
85
  SortOrder = Shapes::StringShape.new(name: 'SortOrder')
76
86
  String = Shapes::StringShape.new(name: 'String')
77
87
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
88
+ TimeFilter = Shapes::StructureShape.new(name: 'TimeFilter')
78
89
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
79
90
  TokenBalance = Shapes::StructureShape.new(name: 'TokenBalance')
80
91
  TokenBalanceList = Shapes::ListShape.new(name: 'TokenBalanceList')
@@ -89,10 +100,16 @@ module Aws::ManagedBlockchainQuery
89
100
  ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
90
101
  ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
91
102
  ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
103
+ VoutFilter = Shapes::StructureShape.new(name: 'VoutFilter')
92
104
 
93
105
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, required: true, location_name: "message"))
94
106
  AccessDeniedException.struct_class = Types::AccessDeniedException
95
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
+
96
113
  AssetContract.add_member(:contract_identifier, Shapes::ShapeRef.new(shape: ContractIdentifier, required: true, location_name: "contractIdentifier"))
97
114
  AssetContract.add_member(:token_standard, Shapes::ShapeRef.new(shape: QueryTokenStandard, required: true, location_name: "tokenStandard"))
98
115
  AssetContract.add_member(:deployer_address, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "deployerAddress"))
@@ -134,6 +151,11 @@ module Aws::ManagedBlockchainQuery
134
151
  BlockchainInstant.add_member(:time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "time"))
135
152
  BlockchainInstant.struct_class = Types::BlockchainInstant
136
153
 
154
+ ConfirmationStatusFilter.add_member(:include, Shapes::ShapeRef.new(shape: ConfirmationStatusIncludeList, required: true, location_name: "include"))
155
+ ConfirmationStatusFilter.struct_class = Types::ConfirmationStatusFilter
156
+
157
+ ConfirmationStatusIncludeList.member = Shapes::ShapeRef.new(shape: ConfirmationStatus)
158
+
137
159
  ContractFilter.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
138
160
  ContractFilter.add_member(:token_standard, Shapes::ShapeRef.new(shape: QueryTokenStandard, required: true, location_name: "tokenStandard"))
139
161
  ContractFilter.add_member(:deployer_address, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "deployerAddress"))
@@ -191,6 +213,24 @@ module Aws::ManagedBlockchainQuery
191
213
  ListAssetContractsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
192
214
  ListAssetContractsOutput.struct_class = Types::ListAssetContractsOutput
193
215
 
216
+ ListFilteredTransactionEventsInput.add_member(:network, Shapes::ShapeRef.new(shape: String, required: true, location_name: "network"))
217
+ ListFilteredTransactionEventsInput.add_member(:address_identifier_filter, Shapes::ShapeRef.new(shape: AddressIdentifierFilter, required: true, location_name: "addressIdentifierFilter"))
218
+ ListFilteredTransactionEventsInput.add_member(:time_filter, Shapes::ShapeRef.new(shape: TimeFilter, location_name: "timeFilter"))
219
+ ListFilteredTransactionEventsInput.add_member(:vout_filter, Shapes::ShapeRef.new(shape: VoutFilter, location_name: "voutFilter"))
220
+ ListFilteredTransactionEventsInput.add_member(:confirmation_status_filter, Shapes::ShapeRef.new(shape: ConfirmationStatusFilter, location_name: "confirmationStatusFilter"))
221
+ ListFilteredTransactionEventsInput.add_member(:sort, Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsSort, location_name: "sort"))
222
+ ListFilteredTransactionEventsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
223
+ ListFilteredTransactionEventsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsInputMaxResultsInteger, location_name: "maxResults"))
224
+ ListFilteredTransactionEventsInput.struct_class = Types::ListFilteredTransactionEventsInput
225
+
226
+ ListFilteredTransactionEventsOutput.add_member(:events, Shapes::ShapeRef.new(shape: TransactionEventList, required: true, location_name: "events"))
227
+ ListFilteredTransactionEventsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
228
+ ListFilteredTransactionEventsOutput.struct_class = Types::ListFilteredTransactionEventsOutput
229
+
230
+ ListFilteredTransactionEventsSort.add_member(:sort_by, Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsSortBy, location_name: "sortBy"))
231
+ ListFilteredTransactionEventsSort.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "sortOrder"))
232
+ ListFilteredTransactionEventsSort.struct_class = Types::ListFilteredTransactionEventsSort
233
+
194
234
  ListTokenBalancesInput.add_member(:owner_filter, Shapes::ShapeRef.new(shape: OwnerFilter, location_name: "ownerFilter"))
195
235
  ListTokenBalancesInput.add_member(:token_filter, Shapes::ShapeRef.new(shape: TokenFilter, required: true, location_name: "tokenFilter"))
196
236
  ListTokenBalancesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -201,7 +241,8 @@ module Aws::ManagedBlockchainQuery
201
241
  ListTokenBalancesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
202
242
  ListTokenBalancesOutput.struct_class = Types::ListTokenBalancesOutput
203
243
 
204
- ListTransactionEventsInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
244
+ ListTransactionEventsInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, location_name: "transactionHash"))
245
+ ListTransactionEventsInput.add_member(:transaction_id, Shapes::ShapeRef.new(shape: QueryTransactionId, location_name: "transactionId"))
205
246
  ListTransactionEventsInput.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
206
247
  ListTransactionEventsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
207
248
  ListTransactionEventsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTransactionEventsInputMaxResultsInteger, location_name: "maxResults"))
@@ -218,6 +259,7 @@ module Aws::ManagedBlockchainQuery
218
259
  ListTransactionsInput.add_member(:sort, Shapes::ShapeRef.new(shape: ListTransactionsSort, location_name: "sort"))
219
260
  ListTransactionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
220
261
  ListTransactionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTransactionsInputMaxResultsInteger, location_name: "maxResults"))
262
+ ListTransactionsInput.add_member(:confirmation_status_filter, Shapes::ShapeRef.new(shape: ConfirmationStatusFilter, location_name: "confirmationStatusFilter"))
221
263
  ListTransactionsInput.struct_class = Types::ListTransactionsInput
222
264
 
223
265
  ListTransactionsOutput.add_member(:transactions, Shapes::ShapeRef.new(shape: TransactionOutputList, required: true, location_name: "transactions"))
@@ -252,6 +294,10 @@ module Aws::ManagedBlockchainQuery
252
294
  ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
253
295
  ThrottlingException.struct_class = Types::ThrottlingException
254
296
 
297
+ TimeFilter.add_member(:from, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "from"))
298
+ TimeFilter.add_member(:to, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "to"))
299
+ TimeFilter.struct_class = Types::TimeFilter
300
+
255
301
  TokenBalance.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, location_name: "ownerIdentifier"))
256
302
  TokenBalance.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, location_name: "tokenIdentifier"))
257
303
  TokenBalance.add_member(:balance, Shapes::ShapeRef.new(shape: String, required: true, location_name: "balance"))
@@ -278,7 +324,6 @@ module Aws::ManagedBlockchainQuery
278
324
  Transaction.add_member(:transaction_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "transactionTimestamp"))
279
325
  Transaction.add_member(:transaction_index, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "transactionIndex"))
280
326
  Transaction.add_member(:number_of_transactions, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "numberOfTransactions"))
281
- Transaction.add_member(:status, Shapes::ShapeRef.new(shape: QueryTransactionStatus, deprecated: true, location_name: "status", metadata: {"deprecatedMessage"=>"The status field in the GetTransaction response is deprecated and is replaced with the confirmationStatus and executionStatus fields."}))
282
327
  Transaction.add_member(:to, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "to"))
283
328
  Transaction.add_member(:from, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "from"))
284
329
  Transaction.add_member(:contract_address, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "contractAddress"))
@@ -304,6 +349,12 @@ module Aws::ManagedBlockchainQuery
304
349
  TransactionEvent.add_member(:token_id, Shapes::ShapeRef.new(shape: QueryTokenId, location_name: "tokenId"))
305
350
  TransactionEvent.add_member(:transaction_id, Shapes::ShapeRef.new(shape: String, location_name: "transactionId"))
306
351
  TransactionEvent.add_member(:vout_index, Shapes::ShapeRef.new(shape: Integer, location_name: "voutIndex"))
352
+ TransactionEvent.add_member(:vout_spent, Shapes::ShapeRef.new(shape: Boolean, location_name: "voutSpent"))
353
+ TransactionEvent.add_member(:spent_vout_transaction_id, Shapes::ShapeRef.new(shape: String, location_name: "spentVoutTransactionId"))
354
+ TransactionEvent.add_member(:spent_vout_transaction_hash, Shapes::ShapeRef.new(shape: String, location_name: "spentVoutTransactionHash"))
355
+ TransactionEvent.add_member(:spent_vout_index, Shapes::ShapeRef.new(shape: Integer, location_name: "spentVoutIndex"))
356
+ TransactionEvent.add_member(:blockchain_instant, Shapes::ShapeRef.new(shape: BlockchainInstant, location_name: "blockchainInstant"))
357
+ TransactionEvent.add_member(:confirmation_status, Shapes::ShapeRef.new(shape: ConfirmationStatus, location_name: "confirmationStatus"))
307
358
  TransactionEvent.struct_class = Types::TransactionEvent
308
359
 
309
360
  TransactionEventList.member = Shapes::ShapeRef.new(shape: TransactionEvent)
@@ -311,6 +362,7 @@ module Aws::ManagedBlockchainQuery
311
362
  TransactionOutputItem.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
312
363
  TransactionOutputItem.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
313
364
  TransactionOutputItem.add_member(:transaction_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "transactionTimestamp"))
365
+ TransactionOutputItem.add_member(:confirmation_status, Shapes::ShapeRef.new(shape: ConfirmationStatus, location_name: "confirmationStatus"))
314
366
  TransactionOutputItem.struct_class = Types::TransactionOutputItem
315
367
 
316
368
  TransactionOutputList.member = Shapes::ShapeRef.new(shape: TransactionOutputItem)
@@ -326,6 +378,9 @@ module Aws::ManagedBlockchainQuery
326
378
 
327
379
  ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
328
380
 
381
+ VoutFilter.add_member(:vout_spent, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "voutSpent"))
382
+ VoutFilter.struct_class = Types::VoutFilter
383
+
329
384
 
330
385
  # @api private
331
386
  API = Seahorse::Model::Api.new.tap do |api|
@@ -420,6 +475,25 @@ module Aws::ManagedBlockchainQuery
420
475
  )
421
476
  end)
422
477
 
478
+ api.add_operation(:list_filtered_transaction_events, Seahorse::Model::Operation.new.tap do |o|
479
+ o.name = "ListFilteredTransactionEvents"
480
+ o.http_method = "POST"
481
+ o.http_request_uri = "/list-filtered-transaction-events"
482
+ o.input = Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsInput)
483
+ o.output = Shapes::ShapeRef.new(shape: ListFilteredTransactionEventsOutput)
484
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
485
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
486
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
487
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
488
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
489
+ o[:pager] = Aws::Pager.new(
490
+ limit_key: "max_results",
491
+ tokens: {
492
+ "next_token" => "next_token"
493
+ }
494
+ )
495
+ end)
496
+
423
497
  api.add_operation(:list_token_balances, Seahorse::Model::Operation.new.tap do |o|
424
498
  o.name = "ListTokenBalances"
425
499
  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