Better command help for getblocktemplate #16594

issue red0bear opened this issue on August 13, 2019
  1. red0bear commented at 12:07 PM on August 13, 2019: none

    I'm testing command here but always get error. Following the help doesn't help too. Can you give me a good example how to build this command ? I already have command client working fine.

    bitcoin-cli getblocktemplate {"rules":["segwit"]} --> like in example but give error.

  2. maflcko commented at 1:09 PM on August 13, 2019: member

    What is the error?

  3. maflcko added the label Questions and Help on Aug 13, 2019
  4. maflcko added the label Waiting for author on Aug 13, 2019
  5. red0bear commented at 1:16 PM on August 13, 2019: none

    @MarcoFalke , Error: Error parsing JSON:{

  6. maflcko removed the label Waiting for author on Aug 13, 2019
  7. maflcko removed the label Questions and Help on Aug 13, 2019
  8. maflcko added the label Bug on Aug 13, 2019
  9. maflcko added the label Docs on Aug 13, 2019
  10. maflcko commented at 1:40 PM on August 13, 2019: member

    Oh, I see we are not quoting correctly in the rpc help

  11. maflcko added the label good first issue on Aug 13, 2019
  12. maflcko added this to the milestone 0.18.2 on Aug 13, 2019
  13. emilengler cross-referenced this on Aug 13, 2019 from issue rpc: Fix getblocktemplate CLI example by emilengler
  14. emilengler commented at 4:28 PM on August 13, 2019: contributor

    See #16596

  15. Relaxo143 commented at 8:37 PM on August 13, 2019: none

    why is there a new minor version (0.18.2) being developed?

  16. maflcko commented at 8:46 PM on August 13, 2019: member
  17. fanquake closed this on Aug 14, 2019

  18. fanquake referenced this in commit 0753c73927 on Aug 14, 2019
  19. fanquake referenced this in commit 279e1341e8 on Aug 15, 2019
  20. ken2812221 referenced this in commit df0dcb984a on Aug 16, 2019
  21. sidhujag referenced this in commit 7b161f1f46 on Aug 17, 2019
  22. fanquake referenced this in commit 66c1c636d5 on Aug 24, 2019
  23. openGLnoob commented at 4:49 PM on August 28, 2019: none

    Hmm. With 0.18.1 on Win7 when I have bitcoin-cli getblocktemplate '{"rules":["segwit"]}' I get error also:

    error: Error parsing JSON:'{rules:[segwit]}'
    
  24. openGLnoob commented at 6:18 PM on August 28, 2019: none

    SOLVED! On Win7 you need replace all " to \" and all ' to ". That will work:

    bitcoin-cli getblocktemplate "{\"rules\":[\"segwit\"]}"
    

    The same goes for curl.

  25. emilengler commented at 7:29 PM on August 28, 2019: contributor

    Same on most Unix shells as well but this is more an issue/feature of your shell

  26. HashUnlimited referenced this in commit 7b63dd94b4 on Aug 30, 2019
  27. fanquake referenced this in commit 7bd8f4e432 on Sep 23, 2019
  28. laanwj referenced this in commit 29d70264fb on Nov 25, 2019
  29. Bushstar cross-referenced this on Jan 28, 2020 from issue GBT segwit rule in RPC error msg missing single quotes by Bushstar
  30. bitcoin locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC