Class: Lbry::Client
- Inherits:
-
Object
- Object
- Lbry::Client
- Defined in:
- lib/lbry/client.rb
Constant Summary collapse
- SUPPORTED_METHODS =
%w{ claim_list_mine claim_new_support claim_renew claim_send_to_address claim_show cli_test_command commands daemon_stop file_delete file_list file_reflect file_set_status get help peer_list peer_ping publish resolve resolve_name routing_table_get settings_get settings_set status stream_availability stream_cost_estimate transaction_list transaction_show utxo_list version wallet_balance wallet_decrypt wallet_encrypt wallet_is_address_mine wallet_list wallet_new_address wallet_prefill_addresses wallet_public_key wallet_send wallet_unlock wallet_unused_address }.each {|q| self.add_support_for q.to_sym }
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Class Method Summary collapse
Instance Method Summary collapse
-
#blob_announce(query) ⇒ Object
Announce blobs to the DHT.
-
#blob_announce(query) ⇒ Object
Get blob availability.
-
#blob_delete(query) ⇒ Object
Delete a blob.
-
#blob_get(query) ⇒ Object
Download and return a blob.
-
#blob_list(query) ⇒ Object
Returns blob hashes.
-
#blob_reflect(query) ⇒ Object
Returns blob hashes.
-
#block_show(query) ⇒ Object
Returns blob hashes.
-
#channel_export(query) ⇒ Object
Export serialized channel signing information for a given certificate claim id.
-
#channel_import(query) ⇒ Object
Import serialized channel signing information (to allow signing new claims to the channel).
-
#channel_new(query) ⇒ Object
Generate a publisher key and create a new ‘@’ prefixed certificate claim.
-
#claim_abandon(query) ⇒ Object
Abandon a name and reclaim credits from the claim.
-
#claim_list(query) ⇒ Object
List current claims and information about them for a given name.
-
#claim_list_by_channel(query) ⇒ Object
List current claims and information about them for a given name.
-
#initialize(auth: {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/lbry/client.rb', line 4 def client @client end |
Class Method Details
.add_support_for(lbry_command, http_verb: :post) ⇒ Object
5 6 7 8 9 |
# File 'lib/lbry/client.rb', line 5 def self.add_support_for(lbry_command, http_verb: :post) define_method(lbry_command) do |*args, &block| client.send(http_verb, lbry_command, *args) end end |
Instance Method Details
#blob_announce(query) ⇒ Object
Announce blobs to the DHT
21 |
# File 'lib/lbry/client.rb', line 21 add_support_for :blob_announce |
#blob_announce(query) ⇒ Object
Get blob availability
29 |
# File 'lib/lbry/client.rb', line 29 add_support_for :blob_availability |
#blob_delete(query) ⇒ Object
Delete a blob
35 |
# File 'lib/lbry/client.rb', line 35 add_support_for :blob_delete |
#blob_get(query) ⇒ Object
Download and return a blob
44 |
# File 'lib/lbry/client.rb', line 44 add_support_for :blob_get |
#blob_list(query) ⇒ Object
Returns blob hashes. If not given filters, returns all blobs known by the blob manager
56 |
# File 'lib/lbry/client.rb', line 56 add_support_for :blob_list |
#blob_reflect(query) ⇒ Object
Returns blob hashes. If not given filters, returns all blobs known by the blob manager
62 |
# File 'lib/lbry/client.rb', line 62 add_support_for :blob_reflect |
#block_show(query) ⇒ Object
Returns blob hashes. If not given filters, returns all blobs known by the blob manager
73 |
# File 'lib/lbry/client.rb', line 73 add_support_for :block_show |
#channel_export(query) ⇒ Object
Export serialized channel signing information for a given certificate claim id
79 |
# File 'lib/lbry/client.rb', line 79 add_support_for :channel_export |
#channel_import(query) ⇒ Object
Import serialized channel signing information (to allow signing new claims to the channel)
85 |
# File 'lib/lbry/client.rb', line 85 add_support_for :channel_import |
#channel_new(query) ⇒ Object
Generate a publisher key and create a new ‘@’ prefixed certificate claim
96 |
# File 'lib/lbry/client.rb', line 96 add_support_for :channel_new |
#claim_abandon(query) ⇒ Object
Abandon a name and reclaim credits from the claim
104 |
# File 'lib/lbry/client.rb', line 104 add_support_for :claim_abandon |
#claim_list(query) ⇒ Object
List current claims and information about them for a given name
110 |
# File 'lib/lbry/client.rb', line 110 add_support_for :claim_list |
#claim_list_by_channel(query) ⇒ Object
List current claims and information about them for a given name
119 |
# File 'lib/lbry/client.rb', line 119 add_support_for :claim_list_by_channel |