Class: Aws::ManagedBlockchainQuery::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ManagedBlockchainQuery::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-managedblockchainquery/client.rb
Overview
An API client for ManagedBlockchainQuery. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::ManagedBlockchainQuery::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#batch_get_token_balance(params = {}) ⇒ Types::BatchGetTokenBalanceOutput
Gets the token balance for a batch of tokens by using the ‘BatchGetTokenBalance` action for every token in the request.
-
#get_asset_contract(params = {}) ⇒ Types::GetAssetContractOutput
Gets the information about a specific contract deployed on the blockchain.
-
#get_token_balance(params = {}) ⇒ Types::GetTokenBalanceOutput
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.
-
#get_transaction(params = {}) ⇒ Types::GetTransactionOutput
Gets the details of a transaction.
-
#list_asset_contracts(params = {}) ⇒ Types::ListAssetContractsOutput
Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).
-
#list_filtered_transaction_events(params = {}) ⇒ Types::ListFilteredTransactionEventsOutput
Lists all the transaction events for an address on the blockchain.
-
#list_token_balances(params = {}) ⇒ Types::ListTokenBalancesOutput
This action returns the following for a given blockchain network:.
-
#list_transaction_events(params = {}) ⇒ Types::ListTransactionEventsOutput
Lists all the transaction events for a transaction.
-
#list_transactions(params = {}) ⇒ Types::ListTransactionsOutput
Lists all the transaction events for a transaction.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
444 445 446 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 444 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1189 1190 1191 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 1189 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1192 1193 1194 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 1192 def errors_module Errors end |
Instance Method Details
#batch_get_token_balance(params = {}) ⇒ Types::BatchGetTokenBalanceOutput
Gets the token balance for a batch of tokens by using the ‘BatchGetTokenBalance` action for every token in the request.
<note markdown=“1”> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
</note>
511 512 513 514 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 511 def batch_get_token_balance(params = {}, = {}) req = build_request(:batch_get_token_balance, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 1162 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::ManagedBlockchainQuery') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-managedblockchainquery' context[:gem_version] = '1.23.0' Seahorse::Client::Request.new(handlers, context) end |
#get_asset_contract(params = {}) ⇒ Types::GetAssetContractOutput
Gets the information about a specific contract deployed on the blockchain.
<note markdown=“1”> * The Bitcoin blockchain networks do not support this operation.
-
Metadata is currently only available for some ‘ERC-20` contracts. Metadata will be available for additional contracts in the future.
</note>
560 561 562 563 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 560 def get_asset_contract(params = {}, = {}) req = build_request(:get_asset_contract, params) req.send_request() end |
#get_token_balance(params = {}) ⇒ Types::GetTokenBalanceOutput
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.
<note markdown=“1”> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
</note>
626 627 628 629 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 626 def get_token_balance(params = {}, = {}) req = build_request(:get_token_balance, params) req.send_request() end |
#get_transaction(params = {}) ⇒ Types::GetTransactionOutput
Gets the details of a transaction.
<note markdown=“1”> This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached [finality].
</note>
[1]: docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
697 698 699 700 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 697 def get_transaction(params = {}, = {}) req = build_request(:get_transaction, params) req.send_request() end |
#list_asset_contracts(params = {}) ⇒ Types::ListAssetContractsOutput
Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).
The Bitcoin blockchain networks do not support this operation.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
760 761 762 763 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 760 def list_asset_contracts(params = {}, = {}) req = build_request(:list_asset_contracts, params) req.send_request() end |
#list_filtered_transaction_events(params = {}) ⇒ Types::ListFilteredTransactionEventsOutput
Lists all the transaction events for an address on the blockchain.
<note markdown=“1”> This operation is only supported on the Bitcoin networks.
</note>
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
878 879 880 881 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 878 def list_filtered_transaction_events(params = {}, = {}) req = build_request(:list_filtered_transaction_events, params) req.send_request() end |
#list_token_balances(params = {}) ⇒ Types::ListTokenBalancesOutput
This action returns the following for a given blockchain network:
-
Lists all token balances owned by an address (either a contract address or a wallet address).
-
Lists all token balances for all tokens created by a contract.
-
Lists all token balances for a given token.
<note markdown=“1”> You must always specify the network property of the ‘tokenFilter` when using this operation.
</note>
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
968 969 970 971 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 968 def list_token_balances(params = {}, = {}) req = build_request(:list_token_balances, params) req.send_request() end |
#list_transaction_events(params = {}) ⇒ Types::ListTransactionEventsOutput
Lists all the transaction events for a transaction
<note markdown=“1”> This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached [finality].
</note>
[1]: docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1060 1061 1062 1063 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 1060 def list_transaction_events(params = {}, = {}) req = build_request(:list_transaction_events, params) req.send_request() end |
#list_transactions(params = {}) ⇒ Types::ListTransactionsOutput
Lists all the transaction events for a transaction.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1153 1154 1155 1156 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 1153 def list_transactions(params = {}, = {}) req = build_request(:list_transactions, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1182 1183 1184 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 1182 def waiter_names [] end |