Author

Topic: Error parsing JSON when executing gettxoutproof (Read 330 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
November 04, 2017, 01: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"]'
legendary
Activity: 1623
Merit: 1608
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?
Jump to: