Bitcoin Forum
August 09, 2024, 03:57:48 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Error parsing JSON when executing gettxoutproof  (Read 319 times)
Shawshank (OP)
Legendary
*
Offline Offline

Activity: 1623
Merit: 1608



View Profile
November 04, 2017, 05:42:35 PM
 #1

This might be something simple, but I can't find what I am doing wrong. I have txindex active and the txid 01500dcfab73c06ae62ac75d8abb1c5a5537dbd12dc04a10da23ca1a712c416b does not belong to my wallet.

When I execute this on Bitcoin Core console:
Code:
gettxoutproof ["01500dcfab73c06ae62ac75d8abb1c5a5537dbd12dc04a10da23ca1a712c416b"]

I receive the following message:
Error: Error parsing JSON:[01500dcfab73c06ae62ac75d8abb1c5a5537dbd12dc04a10da23ca1a712c416b]

What am I doing wrong?

Lightning Address: shawshank@getalby.com
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3472
Merit: 6797


Just writing some code


View Profile WWW
November 04, 2017, 06:24:35 PM
 #2

You need to put single quotes around the brackets for the JSON to be parsed properly. You command should be
Code:
gettxoutproof '["01500dcfab73c06ae62ac75d8abb1c5a5537dbd12dc04a10da23ca1a712c416b"]'

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!