Bitcoin Forum
January 17, 2018, 06:18:22 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Error parsing JSON when executing gettxoutproof  (Read 158 times)
Shawshank
Legendary
*
Offline Offline

Activity: 1382



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?

A bank-only system is similar to having your Bitcoin wallet confined to your national ID, essentially forfeiting your privacy and handing all private keys to the government
1516213102
Hero Member
*
Offline Offline

Posts: 1516213102

View Profile Personal Message (Offline)

Ignore
1516213102
Reply with quote  #2

1516213102
Report to moderator
1516213102
Hero Member
*
Offline Offline

Posts: 1516213102

View Profile Personal Message (Offline)

Ignore
1516213102
Reply with quote  #2

1516213102
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1516213102
Hero Member
*
Offline Offline

Posts: 1516213102

View Profile Personal Message (Offline)

Ignore
1516213102
Reply with quote  #2

1516213102
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1288


38A35VNc17P7fenEDkLvkTMppwLwTeEeT7


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!