I tried doing some sort of filtering on XMRig using wireshark on an ETN poolhere! 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?


1 Answer 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.

  • 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
    Mar 9, 2018 at 2:10
  • 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
    Mar 9, 2018 at 5:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.