Transaction

cd315b8fe2ebb815b8f0f8dcafeec850c972f6e36417b6b8f9d7ef605a997650
Timestamp (utc)
2024-03-22 04:54:34
Fee Paid
0.00000016 BSV
(
0.01222983 BSV
-
0.01222967 BSV
)
Fee Rate
10.12 sat/KB
Version
1
Confirmations
96,112
Size Stats
1,581 B

2 Outputs

Total Output:
0.01222967 BSV
  • j"1LAnZuoQdcKCkpDBKQMCgziGMoPC4VQUckM0<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> text/html
    https://whatsonchain.com/tx/cd315b8fe2ebb815b8f0f8dcafeec850c972f6e36417b6b8f9d7ef605a997650