github.com/theQRL/go-zond@v0.1.1/rpc/testdata/invalid-badversion.js (about)

     1  // This test checks processing of messages with invalid Version.
     2  
     3  --> {"jsonrpc":"2.0","id":1,"method":"test_echo","params":["x", 3]}
     4  <-- {"jsonrpc":"2.0","id":1,"result":{"String":"x","Int":3,"Args":null}}
     5  
     6  --> {"jsonrpc":"2.1","id":1,"method":"test_echo","params":["x", 3]}
     7  <-- {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"invalid request"}}
     8  
     9  --> {"jsonrpc":"go-ethereum","id":1,"method":"test_echo","params":["x", 3]}
    10  <-- {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"invalid request"}}
    11  
    12  --> {"jsonrpc":1,"id":1,"method":"test_echo","params":["x", 3]}
    13  <-- {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"invalid request"}}
    14  
    15  --> {"jsonrpc":2.0,"id":1,"method":"test_echo","params":["x", 3]}
    16  <-- {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"invalid request"}}
    17  
    18  --> {"id":1,"method":"test_echo","params":["x", 3]}
    19  <-- {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"invalid request"}}