A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ||||||||||||||||||||
2 | Pool API | |||||||||||||||||||
3 | Method | Request example | Result example | Description | ||||||||||||||||
4 | mining.authorize(worker_name, worker_password) | TRUE | ||||||||||||||||||
5 | mining.subscribe() | ('mining.notify', '88b00d1a8bdef', '78f4da0c', 4) | Receive notification event name, subscription ID, extranonce_part1 and extranonce2_size | |||||||||||||||||
6 | mining.submit(worker_name, job_id, extranonce, ntime, nonce) | |||||||||||||||||||
7 | ||||||||||||||||||||
8 | ||||||||||||||||||||
9 | #mining.broadcast(block) | |||||||||||||||||||
10 | ||||||||||||||||||||
11 | ||||||||||||||||||||
12 | ||||||||||||||||||||
13 | ||||||||||||||||||||
14 | ||||||||||||||||||||
15 | ||||||||||||||||||||
16 | Miner API | |||||||||||||||||||
17 | ||||||||||||||||||||
18 | mining.notify(job_id, prevhash, coinbase_part1, coinbase_part2, merkle_branch, version, nbits, ntime, clean_jobs) | <No response> | Gives new merkle branch, coinbase tx and prevhash to the miner | |||||||||||||||||
19 | mining.get_version() | ('slush.worker1') | poclbm/20120301 | |||||||||||||||||
20 | mining.set_difficulty(difficulty) | (10,) | New difficulty will be applied to every next job received from the server. Miner must use difficulty 1 when set_difficulty() isn't called. | |||||||||||||||||
21 | ||||||||||||||||||||
22 | mining.get_hashrate(worker_name) | ('slush.worker1') | (1234, 1000, 800) | Returns hashrate per core (1min, 5min, 15 min averages) | ||||||||||||||||
23 | mining.get_temperature(worker_name) | () | (40, 68, 90) | Returns temperature per core (min, current, max) | ||||||||||||||||
24 | client.reconnect(hostname, port, wait) | ('api-stratum.bitcoin.cz', 3333, 10) or (null, 3334, 10) or ('api-stratum2.bitcoin.cz', null, 3) etc | TRUE | Server ask client to connect to given host, with given timeout. Both hostname or port can be null, which indicates that the value should leave unchanged. | ||||||||||||||||
25 | client.add_peers(peerlist) | (('api.bitcoin.cz', 3333), ('api2.bitcoin.cz', 3334)) | TRUE | Server tells client about other known backends, which can be used for reconnection when current connection is lost. Client can implement any strategy to rotate such peers. | ||||||||||||||||
26 | ||||||||||||||||||||
27 | ||||||||||||||||||||
28 | ||||||||||||||||||||
29 | ||||||||||||||||||||
30 | ||||||||||||||||||||
31 | ||||||||||||||||||||
32 | ||||||||||||||||||||
33 | ||||||||||||||||||||
34 | ||||||||||||||||||||
35 | ||||||||||||||||||||
36 | ||||||||||||||||||||
37 | ||||||||||||||||||||
38 | ||||||||||||||||||||
39 | ||||||||||||||||||||
40 | ||||||||||||||||||||
41 | ||||||||||||||||||||
42 | ||||||||||||||||||||
43 | ||||||||||||||||||||
44 | ||||||||||||||||||||
45 | ||||||||||||||||||||
46 | ||||||||||||||||||||
47 | ||||||||||||||||||||
48 | ||||||||||||||||||||
49 | ||||||||||||||||||||
50 | ||||||||||||||||||||
51 | ||||||||||||||||||||
52 | ||||||||||||||||||||
53 | ||||||||||||||||||||
54 | ||||||||||||||||||||
55 | ||||||||||||||||||||
56 | ||||||||||||||||||||
57 | ||||||||||||||||||||
58 | ||||||||||||||||||||
59 | ||||||||||||||||||||
60 | ||||||||||||||||||||
61 | ||||||||||||||||||||
62 | ||||||||||||||||||||
63 | ||||||||||||||||||||
64 | ||||||||||||||||||||
65 | ||||||||||||||||||||
66 | ||||||||||||||||||||
67 | ||||||||||||||||||||
68 | ||||||||||||||||||||
69 | ||||||||||||||||||||
70 | ||||||||||||||||||||
71 | ||||||||||||||||||||
72 | ||||||||||||||||||||
73 | ||||||||||||||||||||
74 | ||||||||||||||||||||
75 | ||||||||||||||||||||
76 | ||||||||||||||||||||
77 | ||||||||||||||||||||
78 | ||||||||||||||||||||
79 | ||||||||||||||||||||
80 | ||||||||||||||||||||
81 | ||||||||||||||||||||
82 | ||||||||||||||||||||
83 | ||||||||||||||||||||
84 | ||||||||||||||||||||
85 | ||||||||||||||||||||
86 | ||||||||||||||||||||
87 | ||||||||||||||||||||
88 | ||||||||||||||||||||
89 | ||||||||||||||||||||
90 | ||||||||||||||||||||
91 | ||||||||||||||||||||
92 | ||||||||||||||||||||
93 | ||||||||||||||||||||
94 | ||||||||||||||||||||
95 | ||||||||||||||||||||
96 | ||||||||||||||||||||
97 | ||||||||||||||||||||
98 | ||||||||||||||||||||
99 | ||||||||||||||||||||
100 |