Electrum Protocol Specification
Stratum is a universal bitcoin communication protocol used mainly by bitcoin client Electrum and miners.
Last updated
Stratum is a universal bitcoin communication protocol used mainly by bitcoin client Electrum and miners.
Last updated
Stratum protocol is based on (although it doesn’t include “jsonrpc” information in every message). Each message has to end with a line end character (n).
Typical request looks like this:
id begins at 0 and every message has its unique id number
list and description of possible methods is below
params is an array, e.g.: [ “1myfirstaddress”, “1mysecondaddress”, “1andonemoreaddress” ]
Responses are similar:
id is copied from the request message (this way client can pair each response to one of his requests)
result can be:
null
a string (as shown above)
a hash, e.g.:
an array of hashes, e.g.: