Bitcoin Forum
February 29, 2020, 07:20:25 AM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: trouble trying to joinpsbts  (Read 48 times)
FractalEncrypt
Newbie
*
Offline Offline

Activity: 11
Merit: 6


View Profile
February 02, 2020, 12:36:52 AM
Last edit: February 02, 2020, 04:30:51 AM by FractalEncrypt
 #1

I'm having some trouble with the PSBT workflow on testnet for my first time. I was able to create 2 PSBTs and I can successfully decode them both using decodepsbt but when I try to run joinpsbts I am getting JSON parsing errors.

Help tells me;
joinpsbts ["psbt",...]
Examples:
> bitcoin-cli joinpsbts "psbt"


I have 2 PSBTs, I ran the command, but I must be messing something up...

I have 2 outputs that are basically;
"psbt": "myPSBT1",

and

"psbt": "myPSBT2",
  "complete": true

When I try
> bitcoin-cli joinpsbts "myPSBT1","myPSBT1"

I get;
Error: Error parsing JSON:myPSBT1

Not sure what I am doing wrong, but 1st time, so I'm sure some user error...

EDIT: For clarity, I ran createpsbt and then walletprocesspsbt separately on 2 unique PSBTs. Now I'm having trouble running joinpsbts and/or combinepsbt successfully. Both give the same JSON errors.

Further edit, I used my same 2 original transactions and instead of createpbst, I used walletcreatefundedpsbt and then tried to joinpsbts on those outputs, and no luck either.

1582960825
Hero Member
*
Offline Offline

Posts: 1582960825

View Profile Personal Message (Offline)

Ignore
1582960825
Reply with quote  #2

1582960825
Report to moderator
1582960825
Hero Member
*
Offline Offline

Posts: 1582960825

View Profile Personal Message (Offline)

Ignore
1582960825
Reply with quote  #2

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

Posts: 1582960825

View Profile Personal Message (Offline)

Ignore
1582960825
Reply with quote  #2

1582960825
Report to moderator
1582960825
Hero Member
*
Offline Offline

Posts: 1582960825

View Profile Personal Message (Offline)

Ignore
1582960825
Reply with quote  #2

1582960825
Report to moderator
1582960825
Hero Member
*
Offline Offline

Posts: 1582960825

View Profile Personal Message (Offline)

Ignore
1582960825
Reply with quote  #2

1582960825
Report to moderator
nc50lc
Legendary
*
Online Online

Activity: 882
Merit: 1037


Self-proclaimed Genius ㊙️


View Profile WWW
February 02, 2020, 04:27:02 AM
Merited by Pmalek (1), Coding Enthusiast (1)
 #2

When I try
> bitcoin-cli combinepsbt ["myPSBT1", "myPSBT1"]
I get
Error: Error parsing JSON:[myPSBT1
Try to enclose them in single quotation marks like this (before [) and ( after ]):
Code:
> bitcoin-cli combinepsbt '["myPSBT1", "myPSBT1"]'

FractalEncrypt
Newbie
*
Offline Offline

Activity: 11
Merit: 6


View Profile
February 02, 2020, 04:33:08 AM
 #3

When I try
> bitcoin-cli combinepsbt ["myPSBT1", "myPSBT1"]
I get
Error: Error parsing JSON:[myPSBT1
Try to enclose them in single quotation marks like this (before [) and ( after ]):
Code:
> bitcoin-cli combinepsbt '["myPSBT1", "myPSBT1"]'

Holy moley that did it! THANK YOU! I was messing with this for a long time.
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!