<p>JSON-RPC as a protocol does not specify other protocols that use it. Rather it just defines the general structure that protocols using JSON-RPC should use. JSON-RPC does not define any methods; <code>login</code> is a method that is offered by protocols using JSON-RPC.</p>

<p>GBT, stratum, and getwork use JSON-RPC. They themselves are not JSON-RPC or some subset of JSON-RPC. Furthermore, none of those have a <code>login</code> method.</p>

<p>There is no guarantee that all coins use the same protocol (GBT, stratum, or getwork) nor that they use JSON-RPC. Typically coins will use one of those or something similar because they simply copy existing code, but there is no guarantee.</p>

CC BY-SA 3.0
2018-03-09T02:10:16.037Z
I am sorry I have not enough reputation for commenting, but from the answer of Andrew Chow above, thank you that was very informative, so what you mean is that the protocols uses differs from either the coin or the pool?
ted 
CC BY-SA 3.0
2018-03-09T05:14:40.153Z
Yes, the use of pool protocol depends entirely on the pool. The coin doesn't actually matter that much (besides that the data transmitted depends on the coin). It's really up to the pool.
Ava Chow
CC BY-SA 3.0
2018-03-09T01:53:29.557Z
2018-03-09T01:53:29.557Z
Ava Chow
<p>I tried doing some sort of filtering on XMRig using wireshark on an ETN pool<a href="https://i.sstatic.net/h8miI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/h8miI.png" alt="here!"></a> and I found that XMRig was using <code>login</code> method of JSON-RPC 2.0, my question is does all miners use this method? By "all" I mean even the bitcoin, monero and all minable cryptocurrency miners use this method? I heard about GBT, stratum and getwork, are they just a simple "sub-part" of JSON-RPC? </p>

<mining-pools>
Is there only one method? for miner and pool communication?
user78447
# Is there only one method? for miner and pool communication?

(Asked by: username_0 on 2018-03-09)

I tried doing some sort of filtering on XMRig using wireshark on an ETN pool[![here!](https://i.sstatic.net/h8miI.png)](https://i.sstatic.net/h8miI.png) and I found that XMRig was using `login` method of JSON-RPC 2.0, my question is does all miners use this method? By "all" I mean even the bitcoin, monero and all minable cryptocurrency miners use this method? I heard about GBT, stratum and getwork, are they just a simple "sub-part" of JSON-RPC?

**Tags:** mining-pools


---

## 1 answers

### Answer by username_1 on 2018-03-09. Score: 1

JSON-RPC as a protocol does not specify other protocols that use it. Rather it just defines the general structure that protocols using JSON-RPC should use. JSON-RPC does not define any methods; `login` is a method that is offered by protocols using JSON-RPC.

GBT, stratum, and getwork use JSON-RPC. They themselves are not JSON-RPC or some subset of JSON-RPC. Furthermore, none of those have a `login` method.

There is no guarantee that all coins use the same protocol (GBT, stratum, or getwork) nor that they use JSON-RPC. Typically coins will use one of those or something similar because they simply copy existing code, but there is no guarantee.

> **Comments:**
> **username_2**: I am sorry I have not enough reputation for commenting, but from the answer of Andrew username_1 above, thank you that was very informative, so what you mean is that the protocols uses differs from either the coin or the pool?  
> **username_1**: Yes, the use of pool protocol depends entirely on the pool. The coin doesn't actually matter that much (besides that the data transmitted depends on the coin). It's really up to the pool.  

---

