ruby-client 1.0.5 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{client.rb → nimiq.rb} +0 -0
  3. metadata +2 -101
  4. data/.gitignore +0 -59
  5. data/.travis.yml +0 -6
  6. data/Gemfile +0 -6
  7. data/Gemfile.lock +0 -92
  8. data/LICENSE +0 -177
  9. data/README.md +0 -49
  10. data/Rakefile +0 -14
  11. data/bin/console +0 -6
  12. data/bin/setup +0 -6
  13. data/doc/Api.html +0 -1592
  14. data/doc/ClientRPC.html +0 -99
  15. data/doc/ClientRPC/Connect.html +0 -106
  16. data/doc/ClientRPC/Connect/Error.html +0 -106
  17. data/doc/Gemfile.html +0 -101
  18. data/doc/Gemfile_lock.html +0 -193
  19. data/doc/LICENSE.html +0 -177
  20. data/doc/LICENSE_txt.html +0 -105
  21. data/doc/Nimiq.html +0 -99
  22. data/doc/Nimiq/Client.html +0 -248
  23. data/doc/Nimiq/Error.html +0 -108
  24. data/doc/Nimiq/Exceptions.html +0 -163
  25. data/doc/Object.html +0 -125
  26. data/doc/README_md.html +0 -162
  27. data/doc/Rakefile.html +0 -108
  28. data/doc/Ruby.html +0 -99
  29. data/doc/Ruby/ClientTest.html +0 -106
  30. data/doc/bin/setup.html +0 -99
  31. data/doc/classes/Api.html +0 -1506
  32. data/doc/classes/ClientRPC.html +0 -120
  33. data/doc/classes/ClientRPC/Connect.html +0 -120
  34. data/doc/classes/ClientRPC/Connect/Error.html +0 -111
  35. data/doc/classes/Nimiq.html +0 -145
  36. data/doc/classes/Nimiq/Client.html +0 -237
  37. data/doc/classes/Nimiq/Error.html +0 -113
  38. data/doc/classes/Nimiq/Exceptions.html +0 -152
  39. data/doc/classes/index.html +0 -80
  40. data/doc/created.rid +0 -13
  41. data/doc/css/application.css +0 -64
  42. data/doc/css/bootstrap.min.css +0 -868
  43. data/doc/css/coderay.css +0 -141
  44. data/doc/css/fonts.css +0 -167
  45. data/doc/css/rdoc.css +0 -668
  46. data/doc/files/index.html +0 -82
  47. data/doc/files/lib/api_rb.html +0 -112
  48. data/doc/files/lib/client_rb.html +0 -118
  49. data/doc/files/lib/nimiq/version_rb.html +0 -105
  50. data/doc/files/lib/rpcclient_rb.html +0 -119
  51. data/doc/fonts/Lato-Light.ttf +0 -0
  52. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  53. data/doc/fonts/Lato-Regular.ttf +0 -0
  54. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  55. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  56. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  57. data/doc/images/add.png +0 -0
  58. data/doc/images/arrow_up.png +0 -0
  59. data/doc/images/brick.png +0 -0
  60. data/doc/images/brick_link.png +0 -0
  61. data/doc/images/bug.png +0 -0
  62. data/doc/images/bullet_black.png +0 -0
  63. data/doc/images/bullet_toggle_minus.png +0 -0
  64. data/doc/images/bullet_toggle_plus.png +0 -0
  65. data/doc/images/date.png +0 -0
  66. data/doc/images/delete.png +0 -0
  67. data/doc/images/find.png +0 -0
  68. data/doc/images/loadingAnimation.gif +0 -0
  69. data/doc/images/macFFBgHack.png +0 -0
  70. data/doc/images/package.png +0 -0
  71. data/doc/images/page_green.png +0 -0
  72. data/doc/images/page_white_text.png +0 -0
  73. data/doc/images/page_white_width.png +0 -0
  74. data/doc/images/plugin.png +0 -0
  75. data/doc/images/ruby.png +0 -0
  76. data/doc/images/tag_blue.png +0 -0
  77. data/doc/images/tag_green.png +0 -0
  78. data/doc/images/transparent.png +0 -0
  79. data/doc/images/wrench.png +0 -0
  80. data/doc/images/wrench_orange.png +0 -0
  81. data/doc/images/zoom.png +0 -0
  82. data/doc/img/glyphicons-halflings-white.png +0 -0
  83. data/doc/img/glyphicons-halflings.png +0 -0
  84. data/doc/index.html +0 -110
  85. data/doc/js/application.js +0 -50
  86. data/doc/js/bootstrap.min.js +0 -7
  87. data/doc/js/darkfish.js +0 -84
  88. data/doc/js/index.js +0 -1
  89. data/doc/js/jquery.js +0 -4
  90. data/doc/js/navigation.js +0 -105
  91. data/doc/js/navigation.js.gz +0 -0
  92. data/doc/js/search.js +0 -110
  93. data/doc/js/search_index.js +0 -1
  94. data/doc/js/search_index.js.gz +0 -0
  95. data/doc/js/searcher.js +0 -229
  96. data/doc/js/searcher.js.gz +0 -0
  97. data/doc/method/index.html +0 -122
  98. data/doc/table_of_contents.html +0 -318
  99. data/lib/api.rb +0 -317
  100. data/lib/nimiq/version.rb +0 -3
  101. data/lib/rpcclient.rb +0 -108
  102. data/ruby-client.gemspec +0 -29
@@ -1 +0,0 @@
1
- var search_data = {"index":{"searchIndex":["api","clientrpc","connect","error","nimiq","client","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_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()","new()","peer_count()","peer_list()","peer_state()","ping()","pool()","pool_confirmed_balance()","pool_connection_state()","request()","send_raw_transaction()","send_transaction()","submit_block()","syncing()","gemfile","gemfile.lock","license","rakefile","setup","readme"],"longSearchIndex":["api","clientrpc","clientrpc::connect","clientrpc::connect::error","nimiq","nimiq::client","api#accounts()","api#block_number()","api#consensus()","api#constant()","api#create_account()","api#create_raw_transaction()","api#get_account()","api#get_balance()","api#get_block_by_hash()","api#get_block_by_number()","api#get_block_template()","api#get_block_transaction_count_by_hash()","api#get_block_transaction_count_by_number()","api#get_transaction_by_block_hash_and_index()","api#get_transaction_by_block_number_and_index()","api#get_transaction_by_hash()","api#get_transaction_receipt()","api#get_transactions_by_address()","api#get_work()","api#hashrate()","api#log()","api#mempool()","api#mempool_content()","api#min_fee_per_byte()","api#miner_address()","api#miner_threads()","api#mining()","nimiq::client::new()","api#peer_count()","api#peer_list()","api#peer_state()","nimiq::client#ping()","api#pool()","api#pool_confirmed_balance()","api#pool_connection_state()","nimiq::client#request()","api#send_raw_transaction()","api#send_transaction()","api#submit_block()","api#syncing()","","","","","",""],"info":[["Api","","Api.html","","<p>Copyright 2020 Nimiq community.\n<p>Licensed under the Apache License, Version 2.0 (the “License”); …\n"],["ClientRPC","","ClientRPC.html","",""],["ClientRPC::Connect","","ClientRPC/Connect.html","",""],["ClientRPC::Connect::Error","","ClientRPC/Connect/Error.html","",""],["Nimiq","","Nimiq.html","",""],["Nimiq::Client","","Nimiq/Client.html","",""],["accounts","Api","Api.html#method-i-accounts","()","<p>accounts - Returns a list of addresses owned by client.\n"],["block_number","Api","Api.html#method-i-block_number","()","<p>block_number - Returns the height of most recent block.\n"],["consensus","Api","Api.html#method-i-consensus","()","<p>consensus - Returns information on the current consensus state.\n"],["constant","Api","Api.html#method-i-constant","(name, value = nil)","<p>constant - Returns or overrides a constant value. When no parameter is given, it returns the value of …\n"],["create_account","Api","Api.html#method-i-create_account","()","<p>create_account - Creates a new account and stores its private key in the client store.\n"],["create_raw_transaction","Api","Api.html#method-i-create_raw_transaction","(transaction)","<p>create_raw_transaction - Creates and signs a transaction without sending it. The transaction can then …\n"],["get_account","Api","Api.html#method-i-get_account","(address)","<p>get_account - Returns details for the account of given address.\n<p>@param [String] address - Address to get …\n\n"],["get_balance","Api","Api.html#method-i-get_balance","(address)","<p>get_balance - Returns the balance of the account of given address.\n<p>@param [String] address - Address to …\n\n"],["get_block_by_hash","Api","Api.html#method-i-get_block_by_hash","(block_hash, full_transactions = nil)","<p>get_block_by_hash - Returns information about a block by hash.\n<p>@param [String] block_hash - Hash of the …\n"],["get_block_by_number","Api","Api.html#method-i-get_block_by_number","(block_number, full_transactions = nil)","<p>get_block_by_number - Returns information about a block by block number.\n<p>@param [Integer] block_number …\n"],["get_block_template","Api","Api.html#method-i-get_block_template","(address = nil, dada_field = nil)","<p>get_block_template - Returns a template to build the next block for mining. This will consider pool instructions …\n"],["get_block_transaction_count_by_hash","Api","Api.html#method-i-get_block_transaction_count_by_hash","(block_hash)","<p>get_block_transaction_count_by_hash - Returns the number of transactions in a block from a block matching …\n"],["get_block_transaction_count_by_number","Api","Api.html#method-i-get_block_transaction_count_by_number","(block_number)","<p>get_block_transaction_count_by_number - Returns the number of transactions in a block matching the given …\n"],["get_transaction_by_block_hash_and_index","Api","Api.html#method-i-get_transaction_by_block_hash_and_index","(block_hash, transaction_index)","<p>get_transaction_by_block_hash_and_index - Returns information about a transaction by block hash and transaction …\n"],["get_transaction_by_block_number_and_index","Api","Api.html#method-i-get_transaction_by_block_number_and_index","(block_height, transaction_index)","<p>get_transaction_by_block_number_and_index - Returns information about a transaction by block number and …\n"],["get_transaction_by_hash","Api","Api.html#method-i-get_transaction_by_hash","(transaction_hash)","<p>get_transaction_by_hash - Returns the information about a transaction requested by transaction hash. …\n"],["get_transaction_receipt","Api","Api.html#method-i-get_transaction_receipt","(transaction_hash)","<p>get_transaction_receipt - Returns the receipt of a transaction by transaction hash. Note That the receipt …\n"],["get_transactions_by_address","Api","Api.html#method-i-get_transactions_by_address","(address, transactions_number = nil)","<p>get_transactions_by_address - Returns the latest transactions successfully performed by or for an address. …\n"],["get_work","Api","Api.html#method-i-get_work","(address = nil, dada_field = nil)","<p>get_work - Returns instructions to mine the next block. This will consider pool instructions when connected …\n"],["hashrate","Api","Api.html#method-i-hashrate","()","<p>hashrate - Returns the number of hashes per second that the node is mining with.\n"],["log","Api","Api.html#method-i-log","(tag, log_level)","<p>log - Sets the log level of the node.\n<p>@param [String] tag - If the tag is &#39;*&#39; the log level will …\n"],["mempool","Api","Api.html#method-i-mempool","()","<p>mempool - Returns information on the current mempool situation. This will provide an overview of the …\n"],["mempool_content","Api","Api.html#method-i-mempool_content","()","<p>mempool_content - Returns transactions that are currently in the mempool.\n"],["min_fee_per_byte","Api","Api.html#method-i-min_fee_per_byte","(set_min_fee = nil)","<p>min_fee_per_byte - Returns or sets the minimum fee per byte.\n<p>@param [Integer] set_min_fee (optional) - …\n\n"],["miner_address","Api","Api.html#method-i-miner_address","()","<p>miner_address - Returns the miner address.\n"],["miner_threads","Api","Api.html#method-i-miner_threads","(set_threads = nil)","<p>miner_threads - Returns or sets the number of CPU threads for the miner.\n<p>@param [Integer] set_threads …\n\n"],["mining","Api","Api.html#method-i-mining","()","<p>mining - Returns `true` if client is actively mining new blocks.\n"],["new","Nimiq::Client","Nimiq/Client.html#method-c-new","(opts)",""],["peer_count","Api","Api.html#method-i-peer_count","()","<p>peer_count - Returns number of peers currently connected to the client.\n"],["peer_list","Api","Api.html#method-i-peer_list","()","<p>peer_list - Returns list of peers known to the client.\n"],["peer_state","Api","Api.html#method-i-peer_state","(peer_address)","<p>peer_state - Returns the state of the peer.\n<p>@param [String] peer_address - The address of the peer.\n\n"],["ping","Nimiq::Client","Nimiq/Client.html#method-i-ping","()","<p>Ping the Nimiq node.\n"],["pool","Api","Api.html#method-i-pool","(pool_address = nil)","<p>pool - Returns or sets the mining pool. When no parameter is given, it returns the current mining pool. …\n"],["pool_confirmed_balance","Api","Api.html#method-i-pool_confirmed_balance","()","<p>pool_confirmed_balance - Returns the confirmed mining pool balance.\n"],["pool_connection_state","Api","Api.html#method-i-pool_connection_state","()","<p>pool_connection_state - Returns the connection state to mining pool.\n"],["request","Nimiq::Client","Nimiq/Client.html#method-i-request","(name, params = nil)","<p>Sends a raw request to the Nimiq node.\n"],["send_raw_transaction","Api","Api.html#method-i-send_raw_transaction","(signed_transaction)","<p>send_raw_transaction - Sends a signed message call transaction or a contract creation, if the data field …\n"],["send_transaction","Api","Api.html#method-i-send_transaction","(transaction)","<p>send_transaction - Creates new message call transaction or a contract creation, if the data field contains …\n"],["submit_block","Api","Api.html#method-i-submit_block","(block)","<p>submit_block - Submits a block to the node. When the block is valid, the node will forward it to other …\n"],["syncing","Api","Api.html#method-i-syncing","()","<p>syncing - Returns an object with data about the sync status or `false`.\n"],["Gemfile","","Gemfile.html","","<p>source “rubygems.org”\n<p>gemspec\n<p>gem “minitest”, “~&gt; 5.0” gem “rspec-rails”, …\n"],["Gemfile.lock","","Gemfile_lock.html","","<p>PATH\n\n<pre>remote: .\nspecs:\n ruby-client (1.0.0)\n oj (~&gt; 2.15)</pre>\n<p>GEM\n"],["LICENSE","","LICENSE.html","","\n<pre> Apache License\n Version 2.0, January 2004\nhttp://www.apache.org/licenses/</pre>\n<p>TERMS AND CONDITIONS …\n"],["Rakefile","","Rakefile.html","","<p># require “bundler/gem_tasks” require “rake/testtask”\n<p>Rake::TestTask.new do |t|\n\n<pre class=\"ruby\"><span class=\"ruby-identifier\">t</span>.<span class=\"ruby-identifier\">pattern</span> <span class=\"ruby-operator\">...</span>\n</pre>\n"],["setup","","bin/setup.html","","<p>#!/usr/bin/env bash set -euo pipefail IFS=$&#39;nt&#39; set -vx\n<p>bundle install\n"],["readme","","readme_md.html","","<p>Nimiq Ruby RPC Client\n\n<blockquote><p>Ruby implementation of the Nimiq RPC client specs.\n</blockquote>\n<p>Info\n"]]}}
Binary file
@@ -1,229 +0,0 @@
1
- Searcher = function(data) {
2
- this.data = data;
3
- this.handlers = [];
4
- }
5
-
6
- Searcher.prototype = new function() {
7
- // search is performed in chunks of 1000 for non-blocking user input
8
- var CHUNK_SIZE = 1000;
9
- // do not try to find more than 100 results
10
- var MAX_RESULTS = 100;
11
- var huid = 1;
12
- var suid = 1;
13
- var runs = 0;
14
-
15
- this.find = function(query) {
16
- var queries = splitQuery(query);
17
- var regexps = buildRegexps(queries);
18
- var highlighters = buildHilighters(queries);
19
- var state = { from: 0, pass: 0, limit: MAX_RESULTS, n: suid++};
20
- var _this = this;
21
-
22
- this.currentSuid = state.n;
23
-
24
- if (!query) return;
25
-
26
- var run = function() {
27
- // stop current search thread if new search started
28
- if (state.n != _this.currentSuid) return;
29
-
30
- var results =
31
- performSearch(_this.data, regexps, queries, highlighters, state);
32
- var hasMore = (state.limit > 0 && state.pass < 4);
33
-
34
- triggerResults.call(_this, results, !hasMore);
35
- if (hasMore) {
36
- setTimeout(run, 2);
37
- }
38
- runs++;
39
- };
40
- runs = 0;
41
-
42
- // start search thread
43
- run();
44
- }
45
-
46
- /* ----- Events ------ */
47
- this.ready = function(fn) {
48
- fn.huid = huid;
49
- this.handlers.push(fn);
50
- }
51
-
52
- /* ----- Utilities ------ */
53
- function splitQuery(query) {
54
- return query.split(/(\s+|::?|\(\)?)/).filter(function(string) {
55
- return string.match(/\S/);
56
- });
57
- }
58
-
59
- function buildRegexps(queries) {
60
- return queries.map(function(query) {
61
- return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i');
62
- });
63
- }
64
-
65
- function buildHilighters(queries) {
66
- return queries.map(function(query) {
67
- return query.split('').map(function(l, i) {
68
- return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2);
69
- }).join('');
70
- });
71
- }
72
-
73
- // function longMatchRegexp(index, longIndex, regexps) {
74
- // for (var i = regexps.length - 1; i >= 0; i--){
75
- // if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
76
- // };
77
- // return true;
78
- // }
79
-
80
-
81
- /* ----- Mathchers ------ */
82
-
83
- /*
84
- * This record matches if the index starts with queries[0] and the record
85
- * matches all of the regexps
86
- */
87
- function matchPassBeginning(index, longIndex, queries, regexps) {
88
- if (index.indexOf(queries[0]) != 0) return false;
89
- for (var i=1, l = regexps.length; i < l; i++) {
90
- if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
91
- return false;
92
- };
93
- return true;
94
- }
95
-
96
- /*
97
- * This record matches if the longIndex starts with queries[0] and the
98
- * longIndex matches all of the regexps
99
- */
100
- function matchPassLongIndex(index, longIndex, queries, regexps) {
101
- if (longIndex.indexOf(queries[0]) != 0) return false;
102
- for (var i=1, l = regexps.length; i < l; i++) {
103
- if (!longIndex.match(regexps[i]))
104
- return false;
105
- };
106
- return true;
107
- }
108
-
109
- /*
110
- * This record matches if the index contains queries[0] and the record
111
- * matches all of the regexps
112
- */
113
- function matchPassContains(index, longIndex, queries, regexps) {
114
- if (index.indexOf(queries[0]) == -1) return false;
115
- for (var i=1, l = regexps.length; i < l; i++) {
116
- if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
117
- return false;
118
- };
119
- return true;
120
- }
121
-
122
- /*
123
- * This record matches if regexps[0] matches the index and the record
124
- * matches all of the regexps
125
- */
126
- function matchPassRegexp(index, longIndex, queries, regexps) {
127
- if (!index.match(regexps[0])) return false;
128
- for (var i=1, l = regexps.length; i < l; i++) {
129
- if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
130
- return false;
131
- };
132
- return true;
133
- }
134
-
135
-
136
- /* ----- Highlighters ------ */
137
- function highlightRegexp(info, queries, regexps, highlighters) {
138
- var result = createResult(info);
139
- for (var i=0, l = regexps.length; i < l; i++) {
140
- result.title = result.title.replace(regexps[i], highlighters[i]);
141
- result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
142
- };
143
- return result;
144
- }
145
-
146
- function hltSubstring(string, pos, length) {
147
- return string.substring(0, pos) + '\u0001' + string.substring(pos, pos + length) + '\u0002' + string.substring(pos + length);
148
- }
149
-
150
- function highlightQuery(info, queries, regexps, highlighters) {
151
- var result = createResult(info);
152
- var pos = 0;
153
- var lcTitle = result.title.toLowerCase();
154
-
155
- pos = lcTitle.indexOf(queries[0]);
156
- if (pos != -1) {
157
- result.title = hltSubstring(result.title, pos, queries[0].length);
158
- }
159
-
160
- result.namespace = result.namespace.replace(regexps[0], highlighters[0]);
161
- for (var i=1, l = regexps.length; i < l; i++) {
162
- result.title = result.title.replace(regexps[i], highlighters[i]);
163
- result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
164
- };
165
- return result;
166
- }
167
-
168
- function createResult(info) {
169
- var result = {};
170
- result.title = info[0];
171
- result.namespace = info[1];
172
- result.path = info[2];
173
- result.params = info[3];
174
- result.snippet = info[4];
175
- result.badge = info[6];
176
- return result;
177
- }
178
-
179
- /* ----- Searching ------ */
180
- function performSearch(data, regexps, queries, highlighters, state) {
181
- var searchIndex = data.searchIndex;
182
- var longSearchIndex = data.longSearchIndex;
183
- var info = data.info;
184
- var result = [];
185
- var i = state.from;
186
- var l = searchIndex.length;
187
- var togo = CHUNK_SIZE;
188
- var matchFunc, hltFunc;
189
-
190
- while (state.pass < 4 && state.limit > 0 && togo > 0) {
191
- if (state.pass == 0) {
192
- matchFunc = matchPassBeginning;
193
- hltFunc = highlightQuery;
194
- } else if (state.pass == 1) {
195
- matchFunc = matchPassLongIndex;
196
- hltFunc = highlightQuery;
197
- } else if (state.pass == 2) {
198
- matchFunc = matchPassContains;
199
- hltFunc = highlightQuery;
200
- } else if (state.pass == 3) {
201
- matchFunc = matchPassRegexp;
202
- hltFunc = highlightRegexp;
203
- }
204
-
205
- for (; togo > 0 && i < l && state.limit > 0; i++, togo--) {
206
- if (info[i].n == state.n) continue;
207
- if (matchFunc(searchIndex[i], longSearchIndex[i], queries, regexps)) {
208
- info[i].n = state.n;
209
- result.push(hltFunc(info[i], queries, regexps, highlighters));
210
- state.limit--;
211
- }
212
- };
213
- if (searchIndex.length <= i) {
214
- state.pass++;
215
- i = state.from = 0;
216
- } else {
217
- state.from = i;
218
- }
219
- }
220
- return result;
221
- }
222
-
223
- function triggerResults(results, isLast) {
224
- this.handlers.forEach(function(fn) {
225
- fn.call(this, results, isLast)
226
- });
227
- }
228
- }
229
-
Binary file
@@ -1,122 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang='en'>
3
- <head>
4
- <meta charset='utf-8'>
5
- <title> - RDoc Documentation</title>
6
- <meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'>
7
- <link href='../css/bootstrap.min.css' media='screen' rel='stylesheet' type='text/css'>
8
- <link href='../css/application.css' media='screen' rel='stylesheet' type='text/css'>
9
- <link href='../css/coderay.css' media='screen' rel='stylesheet' type='text/css'>
10
- <script src='../js/jquery.js' type='text/javascript'></script>
11
- <script src='../js/bootstrap.min.js' type='text/javascript'></script>
12
- <script src='../js/index.js' type='text/javascript'></script>
13
- <script src='../js/application.js' type='text/javascript'></script>
14
- </head>
15
- <body class='file'>
16
- <div class='navbar navbar-fixed-top'>
17
- <div class='navbar-inner'>
18
- <div class='container'>
19
- <a class='btn btn-navbar' data-target='.nav-collapse' data-toggle='collapse'>
20
- <span class='icon-bar'></span>
21
- <span class='icon-bar'></span>
22
- <span class='icon-bar'></span>
23
- </a>
24
- <a href=".." class="brand">RDoc Documentation</a>
25
- <div class='nav-collapse'>
26
- <ul class='nav'>
27
- <li class='dropdown'>
28
- <a class='dropdown-toggle' data-toggle='dropdown' href='#'>
29
- Classes
30
- <b class='caret'></b>
31
- </a>
32
- <ul class='dropdown-menu' role='menu'>
33
- <li><a href="../classes/Api.html">Api</a></li><li><a href="../classes/ClientRPC.html">ClientRPC</a></li><li><a href="../classes/ClientRPC/Connect.html"><span class="parent">ClientRPC::</span>Connect</a></li><li><a href="../classes/ClientRPC/Connect/Error.html"><span class="parent">ClientRPC::Connect::</span>Error</a></li><li><a href="../classes/Nimiq.html">Nimiq</a></li><li><a href="../classes/Nimiq/Client.html"><span class="parent">Nimiq::</span>Client</a></li><li><a href="../classes/Nimiq/Error.html"><span class="parent">Nimiq::</span>Error</a></li><li><a href="../classes/Nimiq/Exceptions.html"><span class="parent">Nimiq::</span>Exceptions</a></li>
34
- </ul>
35
- </li>
36
- <li class='dropdown'>
37
- <a class='dropdown-toggle' data-toggle='dropdown' href='#'>
38
- Files
39
- <b class='caret'></b>
40
- </a>
41
- <ul class='dropdown-menu' role='menu'>
42
- <li><a href="../files/lib/api_rb.html">api.rb</a></li>
43
- <li><a href="../files/lib/client_rb.html">client.rb</a></li>
44
- <li><a href="../files/lib/rpcclient_rb.html">rpcclient.rb</a></li>
45
- </ul>
46
- </li>
47
- </ul>
48
- <form class='navbar-search pull-right'>
49
- <input class='search-query span2' id='search-query' placeholder='Search methods' type='text'>
50
- <ul aria-labelledby='search-query' class='dropdown-menu' id='search-results' role='menu'></ul>
51
- </form>
52
- </div>
53
- </div>
54
- </div>
55
- </div>
56
- <div id='main'>
57
- <div class='container' id='documentation'>
58
- <h1>Method Index</h1>
59
- <ol class='methods' id='index-entries'>
60
- <li><a href="../classes/Nimiq.html#method-rpc"><li><strong>#rpc</strong><small>Nimiq</small></li></a></li>
61
- <li><a href="../classes/Api.html#method-rpc"><li><strong>#rpc</strong><small>Api</small></li></a></li>
62
- <a href="../classes/Nimiq/Client.html#method-c-new"><li><strong>::new</strong><small>Nimiq::Client</small></li></a>
63
- <a href="../classes/Nimiq/Exceptions.html#method-c-new"><li><strong>::new</strong><small>Nimiq::Exceptions</small></li></a>
64
- <a href="../classes/Api.html#method-i-Accounts"><li><strong>#Accounts</strong><small>Api</small></li></a>
65
- <a href="../classes/Api.html#method-i-BlockNumber"><li><strong>#BlockNumber</strong><small>Api</small></li></a>
66
- <a href="../classes/Api.html#method-i-Consensus"><li><strong>#Consensus</strong><small>Api</small></li></a>
67
- <a href="../classes/Api.html#method-i-Constant"><li><strong>#Constant</strong><small>Api</small></li></a>
68
- <a href="../classes/Api.html#method-i-CreateAccount"><li><strong>#CreateAccount</strong><small>Api</small></li></a>
69
- <a href="../classes/Api.html#method-i-CreateRawTransaction"><li><strong>#CreateRawTransaction</strong><small>Api</small></li></a>
70
- <a href="../classes/Api.html#method-i-GetAccount"><li><strong>#GetAccount</strong><small>Api</small></li></a>
71
- <a href="../classes/Api.html#method-i-GetBalance"><li><strong>#GetBalance</strong><small>Api</small></li></a>
72
- <a href="../classes/Api.html#method-i-GetBlockByHash"><li><strong>#GetBlockByHash</strong><small>Api</small></li></a>
73
- <a href="../classes/Api.html#method-i-GetBlockByNumber"><li><strong>#GetBlockByNumber</strong><small>Api</small></li></a>
74
- <a href="../classes/Api.html#method-i-GetBlockTemplate"><li><strong>#GetBlockTemplate</strong><small>Api</small></li></a>
75
- <a href="../classes/Api.html#method-i-GetBlockTransactionCountByHash"><li><strong>#GetBlockTransactionCountByHash</strong><small>Api</small></li></a>
76
- <a href="../classes/Api.html#method-i-GetBlockTransactionCountByNumber"><li><strong>#GetBlockTransactionCountByNumber</strong><small>Api</small></li></a>
77
- <a href="../classes/Api.html#method-i-GetTransactionByBlockHashAndIndex"><li><strong>#GetTransactionByBlockHashAndIndex</strong><small>Api</small></li></a>
78
- <a href="../classes/Api.html#method-i-GetTransactionByBlockNumberAndIndex"><li><strong>#GetTransactionByBlockNumberAndIndex</strong><small>Api</small></li></a>
79
- <a href="../classes/Api.html#method-i-GetTransactionByHash"><li><strong>#GetTransactionByHash</strong><small>Api</small></li></a>
80
- <a href="../classes/Api.html#method-i-GetTransactionReceipt"><li><strong>#GetTransactionReceipt</strong><small>Api</small></li></a>
81
- <a href="../classes/Api.html#method-i-GetTransactionsByAddress"><li><strong>#GetTransactionsByAddress</strong><small>Api</small></li></a>
82
- <a href="../classes/Api.html#method-i-GetWork"><li><strong>#GetWork</strong><small>Api</small></li></a>
83
- <a href="../classes/Api.html#method-i-Hashrate"><li><strong>#Hashrate</strong><small>Api</small></li></a>
84
- <a href="../classes/Api.html#method-i-Log"><li><strong>#Log</strong><small>Api</small></li></a>
85
- <a href="../classes/Api.html#method-i-Mempool"><li><strong>#Mempool</strong><small>Api</small></li></a>
86
- <a href="../classes/Api.html#method-i-MempoolContent"><li><strong>#MempoolContent</strong><small>Api</small></li></a>
87
- <a href="../classes/Api.html#method-i-MinFeePerByte"><li><strong>#MinFeePerByte</strong><small>Api</small></li></a>
88
- <a href="../classes/Api.html#method-i-MinerAddress"><li><strong>#MinerAddress</strong><small>Api</small></li></a>
89
- <a href="../classes/Api.html#method-i-MinerThreads"><li><strong>#MinerThreads</strong><small>Api</small></li></a>
90
- <a href="../classes/Api.html#method-i-Mining"><li><strong>#Mining</strong><small>Api</small></li></a>
91
- <a href="../classes/Api.html#method-i-PeerCount"><li><strong>#PeerCount</strong><small>Api</small></li></a>
92
- <a href="../classes/Api.html#method-i-PeerList"><li><strong>#PeerList</strong><small>Api</small></li></a>
93
- <a href="../classes/Api.html#method-i-PeerState"><li><strong>#PeerState</strong><small>Api</small></li></a>
94
- <a href="../classes/Api.html#method-i-Pool"><li><strong>#Pool</strong><small>Api</small></li></a>
95
- <a href="../classes/Api.html#method-i-PoolConfirmedBalance"><li><strong>#PoolConfirmedBalance</strong><small>Api</small></li></a>
96
- <a href="../classes/Api.html#method-i-PoolConnectionState"><li><strong>#PoolConnectionState</strong><small>Api</small></li></a>
97
- <a href="../classes/Api.html#method-i-SendRawTransaction"><li><strong>#SendRawTransaction</strong><small>Api</small></li></a>
98
- <a href="../classes/Api.html#method-i-SendTransaction"><li><strong>#SendTransaction</strong><small>Api</small></li></a>
99
- <a href="../classes/Api.html#method-i-SubmitBlock"><li><strong>#SubmitBlock</strong><small>Api</small></li></a>
100
- <a href="../classes/Api.html#method-i-Syncing"><li><strong>#Syncing</strong><small>Api</small></li></a>
101
- <a href="../classes/Nimiq/Client.html#method-i-ping"><li><strong>#ping</strong><small>Nimiq::Client</small></li></a>
102
- <a href="../classes/Nimiq/Client.html#method-i-request"><li><strong>#request</strong><small>Nimiq::Client</small></li></a>
103
- </ol>
104
-
105
- </div>
106
- </div>
107
- <footer>
108
- <div class='container'>
109
- <p>
110
- Generated by
111
- <a href="https://github.com/rdoc/rdoc">RDoc 6.2.1</a>
112
- .
113
- </p>
114
- <p>
115
- Generated with the
116
- <a href="http://github.com/ngs/hanna-bootstrap">Hanna Bootstrap RDoc Generator 0.0.5</a>
117
- .
118
- </p>
119
- </div>
120
- </footer>
121
- </body>
122
- </html>
@@ -1,318 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>Table of Contents - RDoc Documentation</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "./";
11
- var index_rel_prefix = "./";
12
- </script>
13
-
14
- <script src="./js/navigation.js" defer></script>
15
- <script src="./js/search.js" defer></script>
16
- <script src="./js/search_index.js" defer></script>
17
- <script src="./js/searcher.js" defer></script>
18
- <script src="./js/darkfish.js" defer></script>
19
-
20
- <link href="./css/fonts.css" rel="stylesheet">
21
- <link href="./css/rdoc.css" rel="stylesheet">
22
-
23
-
24
-
25
-
26
- <body id="top" class="table-of-contents">
27
- <main role="main">
28
- <h1 class="class">Table of Contents - RDoc Documentation</h1>
29
-
30
-
31
-
32
- <h2 id="pages">Pages</h2>
33
- <ul>
34
-
35
- <li class="file">
36
- <a href="Gemfile.html">Gemfile</a>
37
-
38
- </li>
39
-
40
- <li class="file">
41
- <a href="Gemfile_lock.html">Gemfile.lock</a>
42
-
43
- </li>
44
-
45
- <li class="file">
46
- <a href="LICENSE.html">LICENSE</a>
47
-
48
- </li>
49
-
50
- <li class="file">
51
- <a href="Rakefile.html">Rakefile</a>
52
-
53
- </li>
54
-
55
- <li class="file">
56
- <a href="bin/setup.html">setup</a>
57
-
58
- </li>
59
-
60
- <li class="file">
61
- <a href="readme_md.html">readme</a>
62
-
63
- <ul>
64
-
65
- <li><a href="readme_md.html#label-Nimiq+Ruby+RPC+Client">Nimiq Ruby RPC Client</a>
66
-
67
- <li><a href="readme_md.html#label-Info">Info</a>
68
-
69
- <li><a href="readme_md.html#label-What+is+Nimiq-3F">What is Nimiq?</a>
70
-
71
- <li><a href="readme_md.html#label-Usage">Usage</a>
72
-
73
- <li><a href="readme_md.html#label-Development">Development</a>
74
-
75
- <li><a href="readme_md.html#label-Contributions">Contributions</a>
76
-
77
- <li><a href="readme_md.html#label-License">License</a>
78
-
79
- </ul>
80
-
81
- </li>
82
-
83
- </ul>
84
-
85
-
86
- <h2 id="classes">Classes and Modules</h2>
87
- <ul>
88
-
89
- <li class="module">
90
- <a href="Api.html">Api</a>
91
-
92
- </li>
93
-
94
- <li class="module">
95
- <a href="Nimiq.html">Nimiq</a>
96
-
97
- </li>
98
-
99
- <li class="class">
100
- <a href="Nimiq/Client.html">Nimiq::Client</a>
101
-
102
- </li>
103
-
104
- </ul>
105
-
106
- <h2 id="methods">Methods</h2>
107
- <ul>
108
-
109
- <li class="method">
110
- <a href="Nimiq/Client.html#method-c-new">::new</a>
111
- &mdash;
112
- <span class="container">Nimiq::Client</span>
113
-
114
- <li class="method">
115
- <a href="Api.html#method-i-accounts">#accounts</a>
116
- &mdash;
117
- <span class="container">Api</span>
118
-
119
- <li class="method">
120
- <a href="Api.html#method-i-block_number">#block_number</a>
121
- &mdash;
122
- <span class="container">Api</span>
123
-
124
- <li class="method">
125
- <a href="Api.html#method-i-consensus">#consensus</a>
126
- &mdash;
127
- <span class="container">Api</span>
128
-
129
- <li class="method">
130
- <a href="Api.html#method-i-constant">#constant</a>
131
- &mdash;
132
- <span class="container">Api</span>
133
-
134
- <li class="method">
135
- <a href="Api.html#method-i-create_account">#create_account</a>
136
- &mdash;
137
- <span class="container">Api</span>
138
-
139
- <li class="method">
140
- <a href="Api.html#method-i-create_raw_transaction">#create_raw_transaction</a>
141
- &mdash;
142
- <span class="container">Api</span>
143
-
144
- <li class="method">
145
- <a href="Api.html#method-i-get_account">#get_account</a>
146
- &mdash;
147
- <span class="container">Api</span>
148
-
149
- <li class="method">
150
- <a href="Api.html#method-i-get_balance">#get_balance</a>
151
- &mdash;
152
- <span class="container">Api</span>
153
-
154
- <li class="method">
155
- <a href="Api.html#method-i-get_block_by_hash">#get_block_by_hash</a>
156
- &mdash;
157
- <span class="container">Api</span>
158
-
159
- <li class="method">
160
- <a href="Api.html#method-i-get_block_by_number">#get_block_by_number</a>
161
- &mdash;
162
- <span class="container">Api</span>
163
-
164
- <li class="method">
165
- <a href="Api.html#method-i-get_block_template">#get_block_template</a>
166
- &mdash;
167
- <span class="container">Api</span>
168
-
169
- <li class="method">
170
- <a href="Api.html#method-i-get_block_transaction_count_by_hash">#get_block_transaction_count_by_hash</a>
171
- &mdash;
172
- <span class="container">Api</span>
173
-
174
- <li class="method">
175
- <a href="Api.html#method-i-get_block_transaction_count_by_number">#get_block_transaction_count_by_number</a>
176
- &mdash;
177
- <span class="container">Api</span>
178
-
179
- <li class="method">
180
- <a href="Api.html#method-i-get_transaction_by_block_hash_and_index">#get_transaction_by_block_hash_and_index</a>
181
- &mdash;
182
- <span class="container">Api</span>
183
-
184
- <li class="method">
185
- <a href="Api.html#method-i-get_transaction_by_block_number_and_index">#get_transaction_by_block_number_and_index</a>
186
- &mdash;
187
- <span class="container">Api</span>
188
-
189
- <li class="method">
190
- <a href="Api.html#method-i-get_transaction_by_hash">#get_transaction_by_hash</a>
191
- &mdash;
192
- <span class="container">Api</span>
193
-
194
- <li class="method">
195
- <a href="Api.html#method-i-get_transaction_receipt">#get_transaction_receipt</a>
196
- &mdash;
197
- <span class="container">Api</span>
198
-
199
- <li class="method">
200
- <a href="Api.html#method-i-get_transactions_by_address">#get_transactions_by_address</a>
201
- &mdash;
202
- <span class="container">Api</span>
203
-
204
- <li class="method">
205
- <a href="Api.html#method-i-get_work">#get_work</a>
206
- &mdash;
207
- <span class="container">Api</span>
208
-
209
- <li class="method">
210
- <a href="Api.html#method-i-hashrate">#hashrate</a>
211
- &mdash;
212
- <span class="container">Api</span>
213
-
214
- <li class="method">
215
- <a href="Api.html#method-i-log">#log</a>
216
- &mdash;
217
- <span class="container">Api</span>
218
-
219
- <li class="method">
220
- <a href="Api.html#method-i-mempool">#mempool</a>
221
- &mdash;
222
- <span class="container">Api</span>
223
-
224
- <li class="method">
225
- <a href="Api.html#method-i-mempool_content">#mempool_content</a>
226
- &mdash;
227
- <span class="container">Api</span>
228
-
229
- <li class="method">
230
- <a href="Api.html#method-i-min_fee_per_byte">#min_fee_per_byte</a>
231
- &mdash;
232
- <span class="container">Api</span>
233
-
234
- <li class="method">
235
- <a href="Api.html#method-i-miner_address">#miner_address</a>
236
- &mdash;
237
- <span class="container">Api</span>
238
-
239
- <li class="method">
240
- <a href="Api.html#method-i-miner_threads">#miner_threads</a>
241
- &mdash;
242
- <span class="container">Api</span>
243
-
244
- <li class="method">
245
- <a href="Api.html#method-i-mining">#mining</a>
246
- &mdash;
247
- <span class="container">Api</span>
248
-
249
- <li class="method">
250
- <a href="Api.html#method-i-peer_count">#peer_count</a>
251
- &mdash;
252
- <span class="container">Api</span>
253
-
254
- <li class="method">
255
- <a href="Api.html#method-i-peer_list">#peer_list</a>
256
- &mdash;
257
- <span class="container">Api</span>
258
-
259
- <li class="method">
260
- <a href="Api.html#method-i-peer_state">#peer_state</a>
261
- &mdash;
262
- <span class="container">Api</span>
263
-
264
- <li class="method">
265
- <a href="Nimiq/Client.html#method-i-ping">#ping</a>
266
- &mdash;
267
- <span class="container">Nimiq::Client</span>
268
-
269
- <li class="method">
270
- <a href="Api.html#method-i-pool">#pool</a>
271
- &mdash;
272
- <span class="container">Api</span>
273
-
274
- <li class="method">
275
- <a href="Api.html#method-i-pool_confirmed_balance">#pool_confirmed_balance</a>
276
- &mdash;
277
- <span class="container">Api</span>
278
-
279
- <li class="method">
280
- <a href="Api.html#method-i-pool_connection_state">#pool_connection_state</a>
281
- &mdash;
282
- <span class="container">Api</span>
283
-
284
- <li class="method">
285
- <a href="Nimiq/Client.html#method-i-request">#request</a>
286
- &mdash;
287
- <span class="container">Nimiq::Client</span>
288
-
289
- <li class="method">
290
- <a href="Api.html#method-i-send_raw_transaction">#send_raw_transaction</a>
291
- &mdash;
292
- <span class="container">Api</span>
293
-
294
- <li class="method">
295
- <a href="Api.html#method-i-send_transaction">#send_transaction</a>
296
- &mdash;
297
- <span class="container">Api</span>
298
-
299
- <li class="method">
300
- <a href="Api.html#method-i-submit_block">#submit_block</a>
301
- &mdash;
302
- <span class="container">Api</span>
303
-
304
- <li class="method">
305
- <a href="Api.html#method-i-syncing">#syncing</a>
306
- &mdash;
307
- <span class="container">Api</span>
308
-
309
- </ul>
310
- </main>
311
-
312
-
313
- <footer id="validator-badges" role="contentinfo">
314
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
315
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
316
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
317
- </footer>
318
-