Which version of the JSON-RPC protocol does Bitcoin use?

3

1

I would like to get some clarification on which version of the JSON-RPC protocol does Bitcoin use? 1.0 or 2.0?

ThePiachu

Posted 2013-02-10T18:13:31.967

Reputation: 41 594

Answers

5

A little of both:

//
// JSON-RPC protocol.  Bitcoin speaks version 1.0 for maximum compatibility,
// but uses JSON-RPC 1.1/2.0 standards for parts of the 1.0 standard that were
// unspecified (HTTP errors and contents of 'error').
//
// 1.0 spec: http://json-rpc.org/wiki/specification
// 1.2 spec: http://groups.google.com/group/json-rpc/web/json-rpc-over-http
// http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx
//

Nick ODell

Posted 2013-02-10T18:13:31.967

Reputation: 26 536