Transaction

8b8c76b08e2db41a973ef1434a75bc140033a6b2cf0b5cad921d900fb648b6e8
2024-03-21 19:40:28
0.00000016 BSV
(
0.00595908 BSV
-
0.00595892 BSV
)
10.41 sat/KB
1
70,898
1,536 B

2 Outputs

Total Output:
0.00595892 BSV
  • jM0<div class="post">Obviously it's a bug that it repeats the header.<br/><br/>I was trying to follow the 1.0 spec: <a href="http://json-rpc.org/wiki/specification">http://json-rpc.org/wiki/specification</a>&nbsp; &nbsp;It called for multiple invocation.<br/><br/>I think they mean it's like this, but I'm not sure:<br/><br/>Post:<br/>{"method": "postMessage", "params": ["Hello all!"], "id": 99}<br/>{"method": "postMessage", "params": ["I have a question:"], "id": 101}<br/><br/>Reply:<br/>{"result": 1, "error": null, "id": 99}<br/>{"result": 1, "error": null, "id": 101}<br/><br/>I can't remember where I think I saw that it's supposed to send back HTTP status 500 for an error reply.&nbsp; If it contains multiple responses and one is an error, I wonder if that makes the status 500 for the whole thing, I guess so.&nbsp; Maybe it should always return 200.&nbsp; I think someone sounded like the 500 might be causing a problem.<br/><br/>This probably gets fixed after 0.3.3.&nbsp; Until then, just use single invocation.&nbsp; I wonder if any JSON-RPC package even supports multiple invocation, probably not.<br/><br/>It would be nice if we could pin down better how multiple-invocation is supposed to work, if at all, before trying to fix it, and whether returning HTTP status 500 for error response is right.<br/><br/></div>
    https://whatsonchain.com/tx/8b8c76b08e2db41a973ef1434a75bc140033a6b2cf0b5cad921d900fb648b6e8