Bitcoin Forum
October 18, 2018, 04:52:55 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Error parsing JSON when executing gettxoutproof  (Read 203 times)
Shawshank
Legendary
*
Offline Offline

Activity: 1439
Merit: 1072



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
1539881575
Hero Member
*
Offline Offline

Posts: 1539881575

View Profile Personal Message (Offline)

Ignore
1539881575
Reply with quote  #2

1539881575
Report to moderator
1539881575
Hero Member
*
Offline Offline

Posts: 1539881575

View Profile Personal Message (Offline)

Ignore
1539881575
Reply with quote  #2

1539881575
Report to moderator
1539881575
Hero Member
*
Offline Offline

Posts: 1539881575

View Profile Personal Message (Offline)

Ignore
1539881575
Reply with quote  #2

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

Posts: 1539881575

View Profile Personal Message (Offline)

Ignore
1539881575
Reply with quote  #2

1539881575
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1554
Merit: 1704


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


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!