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
Get 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_token_balances(params = {}) ⇒ Types::ListTokenBalancesOutput
This action returns the following for a given blockchain network:.
-
#list_transaction_events(params = {}) ⇒ Types::ListTransactionEventsOutput
An array of ‘TransactionEvent` objects.
-
#list_transactions(params = {}) ⇒ Types::ListTransactionsOutput
Lists all of the transactions on a given wallet address or to a specific contract.
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.
385 386 387 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 385 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.
928 929 930 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 928 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.
931 932 933 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 931 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,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
</note>
452 453 454 455 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 452 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.
906 907 908 909 910 911 912 913 914 915 916 917 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 906 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-managedblockchainquery' context[:gem_version] = '1.7.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>
501 502 503 504 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 501 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,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
</note>
567 568 569 570 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 567 def get_token_balance(params = {}, = {}) req = build_request(:get_token_balance, params) req.send_request() end |
#get_transaction(params = {}) ⇒ Types::GetTransactionOutput
Get the details of a transaction.
620 621 622 623 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 620 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.
672 673 674 675 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 672 def list_asset_contracts(params = {}, = {}) req = build_request(:list_asset_contracts, 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.
751 752 753 754 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 751 def list_token_balances(params = {}, = {}) req = build_request(:list_token_balances, params) req.send_request() end |
#list_transaction_events(params = {}) ⇒ Types::ListTransactionEventsOutput
An array of ‘TransactionEvent` objects. Each object contains details about the transaction event.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
817 818 819 820 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 817 def list_transaction_events(params = {}, = {}) req = build_request(:list_transaction_events, params) req.send_request() end |
#list_transactions(params = {}) ⇒ Types::ListTransactionsOutput
Lists all of the transactions on a given wallet address or to a specific contract.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
897 898 899 900 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 897 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.
921 922 923 |
# File 'lib/aws-sdk-managedblockchainquery/client.rb', line 921 def waiter_names [] end |