Class: Nimiq::Client
Instance Attribute Summary
Attributes included from Api
Instance Method Summary collapse
-
#initialize(opts) ⇒ Client
constructor
A new instance of Client.
-
#ping ⇒ Object
Ping the Nimiq node.
-
#request(name, params = nil) ⇒ Object
Sends a raw request to the Nimiq node.
Methods included from Api
#accounts, #block_number, #consensus, #constant, #create_account, #create_raw_transaction, #get_account, #get_balance, #get_block_by_hash, #get_block_by_number, #get_block_template, #get_block_transaction_count_by_hash, #get_block_transaction_count_by_number, #get_raw_transaction_info, #get_transaction_by_block_hash_and_index, #get_transaction_by_block_number_and_index, #get_transaction_by_hash, #get_transaction_receipt, #get_transactions_by_address, #get_work, #hashrate, #log, #mempool, #mempool_content, #min_fee_per_byte, #miner_address, #miner_threads, #mining, #peer_count, #peer_list, #peer_state, #pool, #pool_confirmed_balance, #pool_connection_state, #send_raw_transaction, #send_transaction, #submit_block, #syncing
Constructor Details
Instance Method Details
#ping ⇒ Object
Ping the Nimiq node.
41 42 43 44 |
# File 'lib/ruby-client.rb', line 41 def ping @rpc.ping_node @pingres = @rpc.instance_variable_get(:@pingres) end |
#request(name, params = nil) ⇒ Object
Sends a raw request to the Nimiq node.
36 37 38 |
# File 'lib/ruby-client.rb', line 36 def request(name, params = nil) return @rpc.request(name, params) end |