Class: Harmony::Api::V1::Client
- Includes:
- Accounts::Account, Blockchain::Block, Blockchain::Protocol, Harmony::Api::V1::Contracts::Contract, Misc::Utility, Staking::Delegator, Staking::Error, Staking::Transaction, Staking::Utility, Staking::Validator, Transactions::Error, Transactions::Transaction
- Defined in:
- lib/harmony/api/v1/client.rb
Instance Attribute Summary
Attributes inherited from Client
#api_version, #configuration, #connection, #headers, #payload, #url
Instance Method Summary collapse
-
#initialize(network: :mainnet, shard: 0, configuration: ::Harmony::Api.configuration, options: {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Harmony::Api::V1::Contracts::Contract
#call, #estimate_gas, #get_code, #get_storage_at
Methods included from Staking::Error
#get_current_staking_error_sink
Methods included from Staking::Utility
#get_current_utility_metrics, #get_median_raw_stake_snapshot, #get_staking_network_info, #get_super_committees
Methods included from Staking::Transaction
#get_staking_transaction_by_block_hash_and_index, #get_staking_transaction_by_block_number_and_index, #get_staking_transaction_by_hash, #send_raw_staking_transaction
Methods included from Staking::Delegator
Methods included from Staking::Validator
#get_all_validator_addresses, #get_all_validator_information, #get_all_validator_information_by_block_number, #get_delegations_by_validator, #get_elected_validator_addresses, #get_validator_information, #get_validators, #is_block_signer
Methods included from Transactions::Error
#getCurrentTransactionErrorSink
Methods included from Transactions::Transaction
#get_send_raw_transaction, #get_transaction_by_block_hash_and_index, #get_transaction_by_block_number_and_index, #get_transaction_by_hash, #get_transaction_receipt, #get_transactions_history, #pending_transactions
Methods included from Misc::Utility
#get_circulating_supply, #get_total_supply
Methods included from Accounts::Account
#get_balance, #get_balance_by_block_number, #get_transaction_count
Methods included from Blockchain::Block
#block_number, #get_block_by_hash, #get_block_by_number, #get_block_signers, #get_block_transaction_count_by_hash, #get_block_transaction_count_by_number, #get_blocks, #latest_header
Methods included from Blockchain::Protocol
#gas_price, #get_epoch, #get_leader, #get_node_metadata, #get_sharding_structure, #protocol_version, #syncing
Methods inherited from Client
#log, #post, #response, #set_connection, #set_defaults, #set_url
Constructor Details
#initialize(network: :mainnet, shard: 0, configuration: ::Harmony::Api.configuration, options: {}) ⇒ Client
Returns a new instance of Client.
7 8 9 10 |
# File 'lib/harmony/api/v1/client.rb', line 7 def initialize(network: :mainnet, shard: 0, configuration: ::Harmony::Api.configuration, options: {}) self.api_version = 1 super end |