Bitcoin Forum
May 04, 2024, 09:35:45 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: trouble trying to joinpsbts  (Read 146 times)
FractalEncrypt (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 11


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.

1714858545
Hero Member
*
Offline Offline

Posts: 1714858545

View Profile Personal Message (Offline)

Ignore
1714858545
Reply with quote  #2

1714858545
Report to moderator
1714858545
Hero Member
*
Offline Offline

Posts: 1714858545

View Profile Personal Message (Offline)

Ignore
1714858545
Reply with quote  #2

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

Posts: 1714858545

View Profile Personal Message (Offline)

Ignore
1714858545
Reply with quote  #2

1714858545
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5588


Self-proclaimed Genius


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

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
FractalEncrypt (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 11


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!