aws-sdk-managedblockchainquery 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-managedblockchainquery/client.rb +148 -18
- data/lib/aws-sdk-managedblockchainquery/client_api.rb +68 -1
- data/lib/aws-sdk-managedblockchainquery/endpoints.rb +14 -0
- data/lib/aws-sdk-managedblockchainquery/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-managedblockchainquery/types.rb +250 -30
- data/lib/aws-sdk-managedblockchainquery.rb +1 -1
- data/sig/client.rbs +36 -1
- data/sig/types.rbs +47 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8599fcdede82663aaf94164ef4a14358b4f72b9dd410c6b58894c6143473f660
|
|
4
|
+
data.tar.gz: 121a5a7b22d19786edcec239e2778aa6259c65781680f0e7072ff2e781f177b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 644b65cb87a7a927c6932d56830cbff61c5d697739c9f83c3f3e3ae65ce987c9c634393213b6ebf2d6c329cec1cf4da79df2075da345682ff1d59dc191c643b5
|
|
7
|
+
data.tar.gz: 95ccfcfcd3f987ebb6cd57334cc0fcbf14f14a1f4047042ef3de0181e8315c45b8c7a032a9f95e5325d6f4aed12e26f62e96d75f2935880d849cb17b22dbe970
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.9.0
|
|
@@ -582,8 +582,8 @@ module Aws::ManagedBlockchainQuery
|
|
|
582
582
|
# [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
|
|
583
583
|
#
|
|
584
584
|
# @option params [required, String] :transaction_hash
|
|
585
|
-
# The hash of
|
|
586
|
-
#
|
|
585
|
+
# The hash of a transaction. It is generated when a transaction is
|
|
586
|
+
# created.
|
|
587
587
|
#
|
|
588
588
|
# @option params [required, String] :network
|
|
589
589
|
# The blockchain network where the transaction occurred.
|
|
@@ -646,7 +646,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
646
646
|
# @option params [Integer] :max_results
|
|
647
647
|
# The maximum number of contracts to list.
|
|
648
648
|
#
|
|
649
|
-
# Default
|
|
649
|
+
# Default: `100`
|
|
650
650
|
#
|
|
651
651
|
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
652
652
|
# less results than `maxResults` or an empty array of results.
|
|
@@ -694,6 +694,124 @@ module Aws::ManagedBlockchainQuery
|
|
|
694
694
|
req.send_request(options)
|
|
695
695
|
end
|
|
696
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<Types::TransactionEvent>
|
|
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
|
+
|
|
697
815
|
# This action returns the following for a given blockchain network:
|
|
698
816
|
#
|
|
699
817
|
# * Lists all token balances owned by an address (either a contract
|
|
@@ -730,7 +848,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
730
848
|
# @option params [Integer] :max_results
|
|
731
849
|
# The maximum number of token balances to return.
|
|
732
850
|
#
|
|
733
|
-
# Default
|
|
851
|
+
# Default: `100`
|
|
734
852
|
#
|
|
735
853
|
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
736
854
|
# less results than `maxResults` or an empty array of results.
|
|
@@ -784,8 +902,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
784
902
|
req.send_request(options)
|
|
785
903
|
end
|
|
786
904
|
|
|
787
|
-
#
|
|
788
|
-
# about the transaction event.
|
|
905
|
+
# Lists all the transaction events for a transaction
|
|
789
906
|
#
|
|
790
907
|
# <note markdown="1"> This action will return transaction details for all transactions that
|
|
791
908
|
# are *confirmed* on the blockchain, even if they have not reached
|
|
@@ -797,9 +914,17 @@ module Aws::ManagedBlockchainQuery
|
|
|
797
914
|
#
|
|
798
915
|
# [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
|
|
799
916
|
#
|
|
800
|
-
# @option params [
|
|
801
|
-
# The hash of
|
|
802
|
-
#
|
|
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>
|
|
803
928
|
#
|
|
804
929
|
# @option params [required, String] :network
|
|
805
930
|
# The blockchain network where the transaction events occurred.
|
|
@@ -811,7 +936,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
811
936
|
# @option params [Integer] :max_results
|
|
812
937
|
# The maximum number of transaction events to list.
|
|
813
938
|
#
|
|
814
|
-
# Default
|
|
939
|
+
# Default: `100`
|
|
815
940
|
#
|
|
816
941
|
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
817
942
|
# less results than `maxResults` or an empty array of results.
|
|
@@ -832,7 +957,8 @@ module Aws::ManagedBlockchainQuery
|
|
|
832
957
|
# @example Request syntax with placeholder values
|
|
833
958
|
#
|
|
834
959
|
# resp = client.list_transaction_events({
|
|
835
|
-
# transaction_hash: "QueryTransactionHash",
|
|
960
|
+
# transaction_hash: "QueryTransactionHash",
|
|
961
|
+
# transaction_id: "QueryTransactionId",
|
|
836
962
|
# network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
|
|
837
963
|
# next_token: "NextToken",
|
|
838
964
|
# max_results: 1,
|
|
@@ -851,6 +977,12 @@ module Aws::ManagedBlockchainQuery
|
|
|
851
977
|
# resp.events[0].token_id #=> String
|
|
852
978
|
# resp.events[0].transaction_id #=> String
|
|
853
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"
|
|
854
986
|
# resp.next_token #=> String
|
|
855
987
|
#
|
|
856
988
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionEvents AWS API Documentation
|
|
@@ -862,8 +994,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
862
994
|
req.send_request(options)
|
|
863
995
|
end
|
|
864
996
|
|
|
865
|
-
# Lists all
|
|
866
|
-
# specific contract.
|
|
997
|
+
# Lists all the transaction events for a transaction.
|
|
867
998
|
#
|
|
868
999
|
# @option params [required, String] :address
|
|
869
1000
|
# The address (either a contract or wallet), whose transactions are
|
|
@@ -879,8 +1010,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
879
1010
|
# The container for time.
|
|
880
1011
|
#
|
|
881
1012
|
# @option params [Types::ListTransactionsSort] :sort
|
|
882
|
-
# The order by which the results will be sorted.
|
|
883
|
-
# selected, the results will be ordered by `fromTime`.
|
|
1013
|
+
# The order by which the results will be sorted.
|
|
884
1014
|
#
|
|
885
1015
|
# @option params [String] :next_token
|
|
886
1016
|
# The pagination token that indicates the next set of results to
|
|
@@ -889,7 +1019,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
889
1019
|
# @option params [Integer] :max_results
|
|
890
1020
|
# The maximum number of transactions to list.
|
|
891
1021
|
#
|
|
892
|
-
# Default
|
|
1022
|
+
# Default: `100`
|
|
893
1023
|
#
|
|
894
1024
|
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
895
1025
|
# less results than `maxResults` or an empty array of results.
|
|
@@ -903,7 +1033,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
903
1033
|
# @option params [Types::ConfirmationStatusFilter] :confirmation_status_filter
|
|
904
1034
|
# This filter is used to include transactions in the response that
|
|
905
1035
|
# haven't reached [ *finality* ][1]. Transactions that have reached
|
|
906
|
-
#
|
|
1036
|
+
# finality are always part of the response.
|
|
907
1037
|
#
|
|
908
1038
|
#
|
|
909
1039
|
#
|
|
@@ -969,7 +1099,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
969
1099
|
params: params,
|
|
970
1100
|
config: config)
|
|
971
1101
|
context[:gem_name] = 'aws-sdk-managedblockchainquery'
|
|
972
|
-
context[:gem_version] = '1.
|
|
1102
|
+
context[:gem_version] = '1.9.0'
|
|
973
1103
|
Seahorse::Client::Request.new(handlers, context)
|
|
974
1104
|
end
|
|
975
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,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"))
|
|
@@ -197,6 +213,24 @@ module Aws::ManagedBlockchainQuery
|
|
|
197
213
|
ListAssetContractsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
198
214
|
ListAssetContractsOutput.struct_class = Types::ListAssetContractsOutput
|
|
199
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
|
+
|
|
200
234
|
ListTokenBalancesInput.add_member(:owner_filter, Shapes::ShapeRef.new(shape: OwnerFilter, location_name: "ownerFilter"))
|
|
201
235
|
ListTokenBalancesInput.add_member(:token_filter, Shapes::ShapeRef.new(shape: TokenFilter, required: true, location_name: "tokenFilter"))
|
|
202
236
|
ListTokenBalancesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
@@ -207,7 +241,8 @@ module Aws::ManagedBlockchainQuery
|
|
|
207
241
|
ListTokenBalancesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
208
242
|
ListTokenBalancesOutput.struct_class = Types::ListTokenBalancesOutput
|
|
209
243
|
|
|
210
|
-
ListTransactionEventsInput.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash,
|
|
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"))
|
|
211
246
|
ListTransactionEventsInput.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
|
|
212
247
|
ListTransactionEventsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
213
248
|
ListTransactionEventsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTransactionEventsInputMaxResultsInteger, location_name: "maxResults"))
|
|
@@ -259,6 +294,10 @@ module Aws::ManagedBlockchainQuery
|
|
|
259
294
|
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
|
260
295
|
ThrottlingException.struct_class = Types::ThrottlingException
|
|
261
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
|
+
|
|
262
301
|
TokenBalance.add_member(:owner_identifier, Shapes::ShapeRef.new(shape: OwnerIdentifier, location_name: "ownerIdentifier"))
|
|
263
302
|
TokenBalance.add_member(:token_identifier, Shapes::ShapeRef.new(shape: TokenIdentifier, location_name: "tokenIdentifier"))
|
|
264
303
|
TokenBalance.add_member(:balance, Shapes::ShapeRef.new(shape: String, required: true, location_name: "balance"))
|
|
@@ -310,6 +349,12 @@ module Aws::ManagedBlockchainQuery
|
|
|
310
349
|
TransactionEvent.add_member(:token_id, Shapes::ShapeRef.new(shape: QueryTokenId, location_name: "tokenId"))
|
|
311
350
|
TransactionEvent.add_member(:transaction_id, Shapes::ShapeRef.new(shape: String, location_name: "transactionId"))
|
|
312
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"))
|
|
313
358
|
TransactionEvent.struct_class = Types::TransactionEvent
|
|
314
359
|
|
|
315
360
|
TransactionEventList.member = Shapes::ShapeRef.new(shape: TransactionEvent)
|
|
@@ -333,6 +378,9 @@ module Aws::ManagedBlockchainQuery
|
|
|
333
378
|
|
|
334
379
|
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
|
335
380
|
|
|
381
|
+
VoutFilter.add_member(:vout_spent, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "voutSpent"))
|
|
382
|
+
VoutFilter.struct_class = Types::VoutFilter
|
|
383
|
+
|
|
336
384
|
|
|
337
385
|
# @api private
|
|
338
386
|
API = Seahorse::Model::Api.new.tap do |api|
|
|
@@ -427,6 +475,25 @@ module Aws::ManagedBlockchainQuery
|
|
|
427
475
|
)
|
|
428
476
|
end)
|
|
429
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
|
+
|
|
430
497
|
api.add_operation(:list_token_balances, Seahorse::Model::Operation.new.tap do |o|
|
|
431
498
|
o.name = "ListTokenBalances"
|
|
432
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
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
394
|
+
# The container for the owner identifier.
|
|
381
395
|
# @return [Types::OwnerIdentifier]
|
|
382
396
|
#
|
|
383
397
|
# @!attribute [rw] token_identifier
|
|
@@ -415,8 +429,8 @@ module Aws::ManagedBlockchainQuery
|
|
|
415
429
|
end
|
|
416
430
|
|
|
417
431
|
# @!attribute [rw] transaction_hash
|
|
418
|
-
# The hash of
|
|
419
|
-
#
|
|
432
|
+
# The hash of a transaction. It is generated when a transaction is
|
|
433
|
+
# created.
|
|
420
434
|
# @return [String]
|
|
421
435
|
#
|
|
422
436
|
# @!attribute [rw] network
|
|
@@ -452,7 +466,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
452
466
|
# @return [String]
|
|
453
467
|
#
|
|
454
468
|
# @!attribute [rw] retry_after_seconds
|
|
455
|
-
#
|
|
469
|
+
# Specifies the `retryAfterSeconds` value.
|
|
456
470
|
# @return [Integer]
|
|
457
471
|
#
|
|
458
472
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/InternalServerException AWS API Documentation
|
|
@@ -476,7 +490,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
476
490
|
# @!attribute [rw] max_results
|
|
477
491
|
# The maximum number of contracts to list.
|
|
478
492
|
#
|
|
479
|
-
# Default
|
|
493
|
+
# Default: `100`
|
|
480
494
|
#
|
|
481
495
|
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
482
496
|
# less results than `maxResults` or an empty array of results.
|
|
@@ -517,6 +531,119 @@ module Aws::ManagedBlockchainQuery
|
|
|
517
531
|
include Aws::Structure
|
|
518
532
|
end
|
|
519
533
|
|
|
534
|
+
# @!attribute [rw] network
|
|
535
|
+
# The blockchain network where the transaction occurred.
|
|
536
|
+
#
|
|
537
|
+
# Valid Values: `BITCOIN_MAINNET` \| `BITCOIN_TESTNET`
|
|
538
|
+
# @return [String]
|
|
539
|
+
#
|
|
540
|
+
# @!attribute [rw] address_identifier_filter
|
|
541
|
+
# This is the unique public address on the blockchain for which the
|
|
542
|
+
# transaction events are being requested.
|
|
543
|
+
# @return [Types::AddressIdentifierFilter]
|
|
544
|
+
#
|
|
545
|
+
# @!attribute [rw] time_filter
|
|
546
|
+
# This container specifies the time frame for the transaction events
|
|
547
|
+
# returned in the response.
|
|
548
|
+
# @return [Types::TimeFilter]
|
|
549
|
+
#
|
|
550
|
+
# @!attribute [rw] vout_filter
|
|
551
|
+
# This container specifies filtering attributes related to
|
|
552
|
+
# BITCOIN\_VOUT event types
|
|
553
|
+
# @return [Types::VoutFilter]
|
|
554
|
+
#
|
|
555
|
+
# @!attribute [rw] confirmation_status_filter
|
|
556
|
+
# The container for the `ConfirmationStatusFilter` that filters for
|
|
557
|
+
# the [ *finality* ][1] of the results.
|
|
558
|
+
#
|
|
559
|
+
#
|
|
560
|
+
#
|
|
561
|
+
# [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
|
|
562
|
+
# @return [Types::ConfirmationStatusFilter]
|
|
563
|
+
#
|
|
564
|
+
# @!attribute [rw] sort
|
|
565
|
+
# The order by which the results will be sorted.
|
|
566
|
+
# @return [Types::ListFilteredTransactionEventsSort]
|
|
567
|
+
#
|
|
568
|
+
# @!attribute [rw] next_token
|
|
569
|
+
# The pagination token that indicates the next set of results to
|
|
570
|
+
# retrieve.
|
|
571
|
+
# @return [String]
|
|
572
|
+
#
|
|
573
|
+
# @!attribute [rw] max_results
|
|
574
|
+
# The maximum number of transaction events to list.
|
|
575
|
+
#
|
|
576
|
+
# Default: `100`
|
|
577
|
+
#
|
|
578
|
+
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
579
|
+
# less results than `maxResults` or an empty array of results.
|
|
580
|
+
#
|
|
581
|
+
# To retrieve the next set of results, make another request with the
|
|
582
|
+
# returned `nextToken` value. The value of `nextToken` is `null` when
|
|
583
|
+
# there are no more results to return
|
|
584
|
+
#
|
|
585
|
+
# </note>
|
|
586
|
+
# @return [Integer]
|
|
587
|
+
#
|
|
588
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListFilteredTransactionEventsInput AWS API Documentation
|
|
589
|
+
#
|
|
590
|
+
class ListFilteredTransactionEventsInput < Struct.new(
|
|
591
|
+
:network,
|
|
592
|
+
:address_identifier_filter,
|
|
593
|
+
:time_filter,
|
|
594
|
+
:vout_filter,
|
|
595
|
+
:confirmation_status_filter,
|
|
596
|
+
:sort,
|
|
597
|
+
:next_token,
|
|
598
|
+
:max_results)
|
|
599
|
+
SENSITIVE = []
|
|
600
|
+
include Aws::Structure
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
# @!attribute [rw] events
|
|
604
|
+
# The transaction events returned by the request.
|
|
605
|
+
# @return [Array<Types::TransactionEvent>]
|
|
606
|
+
#
|
|
607
|
+
# @!attribute [rw] next_token
|
|
608
|
+
# The pagination token that indicates the next set of results to
|
|
609
|
+
# retrieve.
|
|
610
|
+
# @return [String]
|
|
611
|
+
#
|
|
612
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListFilteredTransactionEventsOutput AWS API Documentation
|
|
613
|
+
#
|
|
614
|
+
class ListFilteredTransactionEventsOutput < Struct.new(
|
|
615
|
+
:events,
|
|
616
|
+
:next_token)
|
|
617
|
+
SENSITIVE = []
|
|
618
|
+
include Aws::Structure
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# Lists all the transaction events for an address on the blockchain.
|
|
622
|
+
#
|
|
623
|
+
# <note markdown="1"> This operation is only supported on the Bitcoin blockchain networks.
|
|
624
|
+
#
|
|
625
|
+
# </note>
|
|
626
|
+
#
|
|
627
|
+
# @!attribute [rw] sort_by
|
|
628
|
+
# Container on how the results will be sorted by?
|
|
629
|
+
# @return [String]
|
|
630
|
+
#
|
|
631
|
+
# @!attribute [rw] sort_order
|
|
632
|
+
# The container for the *sort order* for
|
|
633
|
+
# `ListFilteredTransactionEvents`. The `SortOrder` field only accepts
|
|
634
|
+
# the values `ASCENDING` and `DESCENDING`. Not providing `SortOrder`
|
|
635
|
+
# will default to `ASCENDING`.
|
|
636
|
+
# @return [String]
|
|
637
|
+
#
|
|
638
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListFilteredTransactionEventsSort AWS API Documentation
|
|
639
|
+
#
|
|
640
|
+
class ListFilteredTransactionEventsSort < Struct.new(
|
|
641
|
+
:sort_by,
|
|
642
|
+
:sort_order)
|
|
643
|
+
SENSITIVE = []
|
|
644
|
+
include Aws::Structure
|
|
645
|
+
end
|
|
646
|
+
|
|
520
647
|
# @!attribute [rw] owner_filter
|
|
521
648
|
# The contract or wallet address on the blockchain network by which to
|
|
522
649
|
# filter the request. You must specify the `address` property of the
|
|
@@ -543,7 +670,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
543
670
|
# @!attribute [rw] max_results
|
|
544
671
|
# The maximum number of token balances to return.
|
|
545
672
|
#
|
|
546
|
-
# Default
|
|
673
|
+
# Default: `100`
|
|
547
674
|
#
|
|
548
675
|
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
549
676
|
# less results than `maxResults` or an empty array of results.
|
|
@@ -586,8 +713,17 @@ module Aws::ManagedBlockchainQuery
|
|
|
586
713
|
end
|
|
587
714
|
|
|
588
715
|
# @!attribute [rw] transaction_hash
|
|
589
|
-
# The hash of
|
|
590
|
-
#
|
|
716
|
+
# The hash of a transaction. It is generated when a transaction is
|
|
717
|
+
# created.
|
|
718
|
+
# @return [String]
|
|
719
|
+
#
|
|
720
|
+
# @!attribute [rw] transaction_id
|
|
721
|
+
# The identifier of a Bitcoin transaction. It is generated when a
|
|
722
|
+
# transaction is created.
|
|
723
|
+
#
|
|
724
|
+
# <note markdown="1"> `transactionId` is only supported on the Bitcoin networks.
|
|
725
|
+
#
|
|
726
|
+
# </note>
|
|
591
727
|
# @return [String]
|
|
592
728
|
#
|
|
593
729
|
# @!attribute [rw] network
|
|
@@ -602,7 +738,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
602
738
|
# @!attribute [rw] max_results
|
|
603
739
|
# The maximum number of transaction events to list.
|
|
604
740
|
#
|
|
605
|
-
# Default
|
|
741
|
+
# Default: `100`
|
|
606
742
|
#
|
|
607
743
|
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
608
744
|
# less results than `maxResults` or an empty array of results.
|
|
@@ -618,6 +754,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
618
754
|
#
|
|
619
755
|
class ListTransactionEventsInput < Struct.new(
|
|
620
756
|
:transaction_hash,
|
|
757
|
+
:transaction_id,
|
|
621
758
|
:network,
|
|
622
759
|
:next_token,
|
|
623
760
|
:max_results)
|
|
@@ -662,8 +799,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
662
799
|
# @return [Types::BlockchainInstant]
|
|
663
800
|
#
|
|
664
801
|
# @!attribute [rw] sort
|
|
665
|
-
# The order by which the results will be sorted.
|
|
666
|
-
# selected, the results will be ordered by `fromTime`.
|
|
802
|
+
# The order by which the results will be sorted.
|
|
667
803
|
# @return [Types::ListTransactionsSort]
|
|
668
804
|
#
|
|
669
805
|
# @!attribute [rw] next_token
|
|
@@ -674,7 +810,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
674
810
|
# @!attribute [rw] max_results
|
|
675
811
|
# The maximum number of transactions to list.
|
|
676
812
|
#
|
|
677
|
-
# Default
|
|
813
|
+
# Default: `100`
|
|
678
814
|
#
|
|
679
815
|
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
|
680
816
|
# less results than `maxResults` or an empty array of results.
|
|
@@ -689,7 +825,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
689
825
|
# @!attribute [rw] confirmation_status_filter
|
|
690
826
|
# This filter is used to include transactions in the response that
|
|
691
827
|
# haven't reached [ *finality* ][1]. Transactions that have reached
|
|
692
|
-
#
|
|
828
|
+
# finality are always part of the response.
|
|
693
829
|
#
|
|
694
830
|
#
|
|
695
831
|
#
|
|
@@ -765,7 +901,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
765
901
|
include Aws::Structure
|
|
766
902
|
end
|
|
767
903
|
|
|
768
|
-
# The container for the identifier
|
|
904
|
+
# The container for the owner identifier.
|
|
769
905
|
#
|
|
770
906
|
# @!attribute [rw] address
|
|
771
907
|
# The contract or wallet address for the owner.
|
|
@@ -870,6 +1006,25 @@ module Aws::ManagedBlockchainQuery
|
|
|
870
1006
|
include Aws::Structure
|
|
871
1007
|
end
|
|
872
1008
|
|
|
1009
|
+
# This container is used to specify a time frame.
|
|
1010
|
+
#
|
|
1011
|
+
# @!attribute [rw] from
|
|
1012
|
+
# The container for time.
|
|
1013
|
+
# @return [Types::BlockchainInstant]
|
|
1014
|
+
#
|
|
1015
|
+
# @!attribute [rw] to
|
|
1016
|
+
# The container for time.
|
|
1017
|
+
# @return [Types::BlockchainInstant]
|
|
1018
|
+
#
|
|
1019
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TimeFilter AWS API Documentation
|
|
1020
|
+
#
|
|
1021
|
+
class TimeFilter < Struct.new(
|
|
1022
|
+
:from,
|
|
1023
|
+
:to)
|
|
1024
|
+
SENSITIVE = []
|
|
1025
|
+
include Aws::Structure
|
|
1026
|
+
end
|
|
1027
|
+
|
|
873
1028
|
# The balance of the token.
|
|
874
1029
|
#
|
|
875
1030
|
# @!attribute [rw] owner_identifier
|
|
@@ -1002,8 +1157,8 @@ module Aws::ManagedBlockchainQuery
|
|
|
1002
1157
|
# @return [String]
|
|
1003
1158
|
#
|
|
1004
1159
|
# @!attribute [rw] transaction_hash
|
|
1005
|
-
# The hash of
|
|
1006
|
-
#
|
|
1160
|
+
# The hash of a transaction. It is generated when a transaction is
|
|
1161
|
+
# created.
|
|
1007
1162
|
# @return [String]
|
|
1008
1163
|
#
|
|
1009
1164
|
# @!attribute [rw] block_number
|
|
@@ -1065,8 +1220,8 @@ module Aws::ManagedBlockchainQuery
|
|
|
1065
1220
|
# @return [String]
|
|
1066
1221
|
#
|
|
1067
1222
|
# @!attribute [rw] transaction_id
|
|
1068
|
-
# The
|
|
1069
|
-
# transaction is
|
|
1223
|
+
# The identifier of a Bitcoin transaction. It is generated when a
|
|
1224
|
+
# transaction is created.
|
|
1070
1225
|
# @return [String]
|
|
1071
1226
|
#
|
|
1072
1227
|
# @!attribute [rw] confirmation_status
|
|
@@ -1111,8 +1266,8 @@ module Aws::ManagedBlockchainQuery
|
|
|
1111
1266
|
# @return [String]
|
|
1112
1267
|
#
|
|
1113
1268
|
# @!attribute [rw] transaction_hash
|
|
1114
|
-
# The hash of
|
|
1115
|
-
#
|
|
1269
|
+
# The hash of a transaction. It is generated when a transaction is
|
|
1270
|
+
# created.
|
|
1116
1271
|
# @return [String]
|
|
1117
1272
|
#
|
|
1118
1273
|
# @!attribute [rw] event_type
|
|
@@ -1134,7 +1289,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
1134
1289
|
# @return [String]
|
|
1135
1290
|
#
|
|
1136
1291
|
# @!attribute [rw] contract_address
|
|
1137
|
-
# The blockchain address
|
|
1292
|
+
# The blockchain address for the contract
|
|
1138
1293
|
# @return [String]
|
|
1139
1294
|
#
|
|
1140
1295
|
# @!attribute [rw] token_id
|
|
@@ -1142,14 +1297,58 @@ module Aws::ManagedBlockchainQuery
|
|
|
1142
1297
|
# @return [String]
|
|
1143
1298
|
#
|
|
1144
1299
|
# @!attribute [rw] transaction_id
|
|
1145
|
-
# The
|
|
1146
|
-
# transaction is
|
|
1300
|
+
# The identifier of a Bitcoin transaction. It is generated when a
|
|
1301
|
+
# transaction is created.
|
|
1147
1302
|
# @return [String]
|
|
1148
1303
|
#
|
|
1149
1304
|
# @!attribute [rw] vout_index
|
|
1150
|
-
# The position of the
|
|
1305
|
+
# The position of the transaction output in the transaction output
|
|
1306
|
+
# list.
|
|
1151
1307
|
# @return [Integer]
|
|
1152
1308
|
#
|
|
1309
|
+
# @!attribute [rw] vout_spent
|
|
1310
|
+
# Specifies if the transaction output is spent or unspent. This is
|
|
1311
|
+
# only returned for BITCOIN\_VOUT event types.
|
|
1312
|
+
#
|
|
1313
|
+
# <note markdown="1"> This is only returned for `BITCOIN_VOUT` event types.
|
|
1314
|
+
#
|
|
1315
|
+
# </note>
|
|
1316
|
+
# @return [Boolean]
|
|
1317
|
+
#
|
|
1318
|
+
# @!attribute [rw] spent_vout_transaction_id
|
|
1319
|
+
# The transactionId that *created* the spent transaction output.
|
|
1320
|
+
#
|
|
1321
|
+
# <note markdown="1"> This is only returned for `BITCOIN_VIN` event types.
|
|
1322
|
+
#
|
|
1323
|
+
# </note>
|
|
1324
|
+
# @return [String]
|
|
1325
|
+
#
|
|
1326
|
+
# @!attribute [rw] spent_vout_transaction_hash
|
|
1327
|
+
# The transactionHash that *created* the spent transaction output.
|
|
1328
|
+
#
|
|
1329
|
+
# <note markdown="1"> This is only returned for `BITCOIN_VIN` event types.
|
|
1330
|
+
#
|
|
1331
|
+
# </note>
|
|
1332
|
+
# @return [String]
|
|
1333
|
+
#
|
|
1334
|
+
# @!attribute [rw] spent_vout_index
|
|
1335
|
+
# The position of the spent transaction output in the output list of
|
|
1336
|
+
# the *creating transaction*.
|
|
1337
|
+
#
|
|
1338
|
+
# <note markdown="1"> This is only returned for `BITCOIN_VIN` event types.
|
|
1339
|
+
#
|
|
1340
|
+
# </note>
|
|
1341
|
+
# @return [Integer]
|
|
1342
|
+
#
|
|
1343
|
+
# @!attribute [rw] blockchain_instant
|
|
1344
|
+
# The container for time.
|
|
1345
|
+
# @return [Types::BlockchainInstant]
|
|
1346
|
+
#
|
|
1347
|
+
# @!attribute [rw] confirmation_status
|
|
1348
|
+
# This container specifies whether the transaction has reached
|
|
1349
|
+
# Finality.
|
|
1350
|
+
# @return [String]
|
|
1351
|
+
#
|
|
1153
1352
|
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TransactionEvent AWS API Documentation
|
|
1154
1353
|
#
|
|
1155
1354
|
class TransactionEvent < Struct.new(
|
|
@@ -1162,7 +1361,13 @@ module Aws::ManagedBlockchainQuery
|
|
|
1162
1361
|
:contract_address,
|
|
1163
1362
|
:token_id,
|
|
1164
1363
|
:transaction_id,
|
|
1165
|
-
:vout_index
|
|
1364
|
+
:vout_index,
|
|
1365
|
+
:vout_spent,
|
|
1366
|
+
:spent_vout_transaction_id,
|
|
1367
|
+
:spent_vout_transaction_hash,
|
|
1368
|
+
:spent_vout_index,
|
|
1369
|
+
:blockchain_instant,
|
|
1370
|
+
:confirmation_status)
|
|
1166
1371
|
SENSITIVE = []
|
|
1167
1372
|
include Aws::Structure
|
|
1168
1373
|
end
|
|
@@ -1170,8 +1375,8 @@ module Aws::ManagedBlockchainQuery
|
|
|
1170
1375
|
# The container of the transaction output.
|
|
1171
1376
|
#
|
|
1172
1377
|
# @!attribute [rw] transaction_hash
|
|
1173
|
-
# The hash of
|
|
1174
|
-
#
|
|
1378
|
+
# The hash of a transaction. It is generated when a transaction is
|
|
1379
|
+
# created.
|
|
1175
1380
|
# @return [String]
|
|
1176
1381
|
#
|
|
1177
1382
|
# @!attribute [rw] network
|
|
@@ -1241,5 +1446,20 @@ module Aws::ManagedBlockchainQuery
|
|
|
1241
1446
|
include Aws::Structure
|
|
1242
1447
|
end
|
|
1243
1448
|
|
|
1449
|
+
# This container specifies filtering attributes related to
|
|
1450
|
+
# `BITCOIN_VOUT` event types
|
|
1451
|
+
#
|
|
1452
|
+
# @!attribute [rw] vout_spent
|
|
1453
|
+
# Specifies if the transaction output is spent or unspent.
|
|
1454
|
+
# @return [Boolean]
|
|
1455
|
+
#
|
|
1456
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/VoutFilter AWS API Documentation
|
|
1457
|
+
#
|
|
1458
|
+
class VoutFilter < Struct.new(
|
|
1459
|
+
:vout_spent)
|
|
1460
|
+
SENSITIVE = []
|
|
1461
|
+
include Aws::Structure
|
|
1462
|
+
end
|
|
1463
|
+
|
|
1244
1464
|
end
|
|
1245
1465
|
end
|
data/sig/client.rbs
CHANGED
|
@@ -165,6 +165,40 @@ module Aws
|
|
|
165
165
|
) -> _ListAssetContractsResponseSuccess
|
|
166
166
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAssetContractsResponseSuccess
|
|
167
167
|
|
|
168
|
+
interface _ListFilteredTransactionEventsResponseSuccess
|
|
169
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListFilteredTransactionEventsOutput]
|
|
170
|
+
def events: () -> ::Array[Types::TransactionEvent]
|
|
171
|
+
def next_token: () -> ::String
|
|
172
|
+
end
|
|
173
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#list_filtered_transaction_events-instance_method
|
|
174
|
+
def list_filtered_transaction_events: (
|
|
175
|
+
network: ::String,
|
|
176
|
+
address_identifier_filter: {
|
|
177
|
+
transaction_event_to_address: Array[::String]
|
|
178
|
+
},
|
|
179
|
+
?time_filter: {
|
|
180
|
+
from: {
|
|
181
|
+
time: ::Time?
|
|
182
|
+
}?,
|
|
183
|
+
to: {
|
|
184
|
+
time: ::Time?
|
|
185
|
+
}?
|
|
186
|
+
},
|
|
187
|
+
?vout_filter: {
|
|
188
|
+
vout_spent: bool
|
|
189
|
+
},
|
|
190
|
+
?confirmation_status_filter: {
|
|
191
|
+
include: Array[("FINAL" | "NONFINAL")]
|
|
192
|
+
},
|
|
193
|
+
?sort: {
|
|
194
|
+
sort_by: ("blockchainInstant")?,
|
|
195
|
+
sort_order: ("ASCENDING" | "DESCENDING")?
|
|
196
|
+
},
|
|
197
|
+
?next_token: ::String,
|
|
198
|
+
?max_results: ::Integer
|
|
199
|
+
) -> _ListFilteredTransactionEventsResponseSuccess
|
|
200
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFilteredTransactionEventsResponseSuccess
|
|
201
|
+
|
|
168
202
|
interface _ListTokenBalancesResponseSuccess
|
|
169
203
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListTokenBalancesOutput]
|
|
170
204
|
def token_balances: () -> ::Array[Types::TokenBalance]
|
|
@@ -192,7 +226,8 @@ module Aws
|
|
|
192
226
|
end
|
|
193
227
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#list_transaction_events-instance_method
|
|
194
228
|
def list_transaction_events: (
|
|
195
|
-
transaction_hash: ::String,
|
|
229
|
+
?transaction_hash: ::String,
|
|
230
|
+
?transaction_id: ::String,
|
|
196
231
|
network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
|
|
197
232
|
?next_token: ::String,
|
|
198
233
|
?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")
|
|
@@ -146,6 +151,30 @@ module Aws::ManagedBlockchainQuery
|
|
|
146
151
|
SENSITIVE: []
|
|
147
152
|
end
|
|
148
153
|
|
|
154
|
+
class ListFilteredTransactionEventsInput
|
|
155
|
+
attr_accessor network: ::String
|
|
156
|
+
attr_accessor address_identifier_filter: Types::AddressIdentifierFilter
|
|
157
|
+
attr_accessor time_filter: Types::TimeFilter
|
|
158
|
+
attr_accessor vout_filter: Types::VoutFilter
|
|
159
|
+
attr_accessor confirmation_status_filter: Types::ConfirmationStatusFilter
|
|
160
|
+
attr_accessor sort: Types::ListFilteredTransactionEventsSort
|
|
161
|
+
attr_accessor next_token: ::String
|
|
162
|
+
attr_accessor max_results: ::Integer
|
|
163
|
+
SENSITIVE: []
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
class ListFilteredTransactionEventsOutput
|
|
167
|
+
attr_accessor events: ::Array[Types::TransactionEvent]
|
|
168
|
+
attr_accessor next_token: ::String
|
|
169
|
+
SENSITIVE: []
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
class ListFilteredTransactionEventsSort
|
|
173
|
+
attr_accessor sort_by: ("blockchainInstant")
|
|
174
|
+
attr_accessor sort_order: ("ASCENDING" | "DESCENDING")
|
|
175
|
+
SENSITIVE: []
|
|
176
|
+
end
|
|
177
|
+
|
|
149
178
|
class ListTokenBalancesInput
|
|
150
179
|
attr_accessor owner_filter: Types::OwnerFilter
|
|
151
180
|
attr_accessor token_filter: Types::TokenFilter
|
|
@@ -162,6 +191,7 @@ module Aws::ManagedBlockchainQuery
|
|
|
162
191
|
|
|
163
192
|
class ListTransactionEventsInput
|
|
164
193
|
attr_accessor transaction_hash: ::String
|
|
194
|
+
attr_accessor transaction_id: ::String
|
|
165
195
|
attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
|
|
166
196
|
attr_accessor next_token: ::String
|
|
167
197
|
attr_accessor max_results: ::Integer
|
|
@@ -232,6 +262,12 @@ module Aws::ManagedBlockchainQuery
|
|
|
232
262
|
SENSITIVE: []
|
|
233
263
|
end
|
|
234
264
|
|
|
265
|
+
class TimeFilter
|
|
266
|
+
attr_accessor from: Types::BlockchainInstant
|
|
267
|
+
attr_accessor to: Types::BlockchainInstant
|
|
268
|
+
SENSITIVE: []
|
|
269
|
+
end
|
|
270
|
+
|
|
235
271
|
class TokenBalance
|
|
236
272
|
attr_accessor owner_identifier: Types::OwnerIdentifier
|
|
237
273
|
attr_accessor token_identifier: Types::TokenIdentifier
|
|
@@ -290,6 +326,12 @@ module Aws::ManagedBlockchainQuery
|
|
|
290
326
|
attr_accessor token_id: ::String
|
|
291
327
|
attr_accessor transaction_id: ::String
|
|
292
328
|
attr_accessor vout_index: ::Integer
|
|
329
|
+
attr_accessor vout_spent: bool
|
|
330
|
+
attr_accessor spent_vout_transaction_id: ::String
|
|
331
|
+
attr_accessor spent_vout_transaction_hash: ::String
|
|
332
|
+
attr_accessor spent_vout_index: ::Integer
|
|
333
|
+
attr_accessor blockchain_instant: Types::BlockchainInstant
|
|
334
|
+
attr_accessor confirmation_status: ("FINAL" | "NONFINAL")
|
|
293
335
|
SENSITIVE: []
|
|
294
336
|
end
|
|
295
337
|
|
|
@@ -313,5 +355,10 @@ module Aws::ManagedBlockchainQuery
|
|
|
313
355
|
attr_accessor message: ::String
|
|
314
356
|
SENSITIVE: []
|
|
315
357
|
end
|
|
358
|
+
|
|
359
|
+
class VoutFilter
|
|
360
|
+
attr_accessor vout_spent: bool
|
|
361
|
+
SENSITIVE: []
|
|
362
|
+
end
|
|
316
363
|
end
|
|
317
364
|
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.
|
|
4
|
+
version: 1.9.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-
|
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|