Bitcoin Forum
November 17, 2017, 07:45:52 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 108 times)
Shawshank
Legendary
*
Offline Offline

Activity: 1333



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
Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1510947952
Hero Member
*
Offline Offline

Posts: 1510947952

View Profile Personal Message (Offline)

Ignore
1510947952
Reply with quote  #2

1510947952
Report to moderator
1510947952
Hero Member
*
Offline Offline

Posts: 1510947952

View Profile Personal Message (Offline)

Ignore
1510947952
Reply with quote  #2

1510947952
Report to moderator
1510947952
Hero Member
*
Offline Offline

Posts: 1510947952

View Profile Personal Message (Offline)

Ignore
1510947952
Reply with quote  #2

1510947952
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1218


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


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"]'

          ▄█████▄
        ▄█████████▄
      ▄████▀   ▀████▄
    ▄████▀   ▄ ▄█▀████▄
  ▄████▀   ▄███▀   ▀████▄
▄████▀   ▄███▀   ▄   ▀████▄
█████   ███▀   ▄███   █████
▀████▄   ▀██▄▄███▀   ▄████▀
  ▀████▄   ▀███▀   ▄████▀
    ▀████▄       ▄████▀
      ▀████▄   ▄████▀
        ▀███  ████▀
          ▀█▄███▀
.
|
.
|
          ▄█████▄
        ▄█████████▄
      ▄████▀   ▀████▄
    ▄████▀   ▄ ▄█▀████▄
  ▄████▀   ▄███▀   ▀████▄
▄████▀   ▄███▀   ▄   ▀████▄
█████   ███▀   ▄███   █████
▀████▄   ▀██▄▄███▀   ▄████▀
  ▀████▄   ▀███▀   ▄████▀
    ▀████▄       ▄████▀
      ▀████▄   ▄████▀
        ▀███  ████▀
          ▀█▄███▀
unthy
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!