1

example response for getting a block:

{"id":"0","result":{"tx":[1ddd2f103625405389705637ab69603de692a22e86f06428a2...

there should be a " after the "tx":[

  • Can you give an example query that produces the output you have shown? A request such as blockchain.info/rawblock/… appears to produce well-formed JSON output. – Greg Hewgill Feb 8 '14 at 5:57
  • That request isn't using the json-rpc api. I'm talking about something like curl 'foo:bar@rpc.blockchain.info:80' -d'{"method": "getblock", "params": ["000000000000000011d19133cf716fb977c3a89a1b5cba9598d745a50ba118e5"], "jsonrpc": "2.0", "id": 0}' -H"Content-Type: applicaton/json" – Tyler Gillies Feb 8 '14 at 6:10
  • 1
    Ok yeah, that helps. I get the same sort of result as you describe and that certainly doesn't seem to be valid JSON. – Greg Hewgill Feb 8 '14 at 6:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.