online resources

Implementing Psbt in bcoin.io

I am trying to implement Psbt in in a Bitcoin project. The idea is to generate Keys and sign transacciones client-side. I am already familiar with bitcoinjs-lib but i find the api rather complicated. It would be great if I could do that with bcoin.io which is usually more clear and straight forward. I checked bcoin.io 's docs but i found no mentión of psbt. Is there a way to use psbt in bcoin.io? If not, is there any elegant workaround?

Continue Reading Implementing Psbt in bcoin.io

How to create unsigned tx in a watch-only wallet?

Below are the steps that I followed and couldn't create an unsigned tx. I am not even sure what are the inputs that can be used for it in this case and how to add inputs. create a watch-only wallet add one address in 'sending addresses' dont see anything in 'receiving addresses' and no option to add open console and run the below commands to add one address importaddress tb1qu2l4n8st9w3hhsxstd8muaxgnu63fql9rkylmd "receivetesting" false rescan blockchain to update rescanblockchain 1800000 1834770 can see the address in 'receiving addresses' and balance How do I create an unsigned tx because I get the below…

Continue Reading How to create unsigned tx in a watch-only wallet?

Problem making multisig PSBT on walletcreatefundedpsbt

I'm fighting with PSBT to do a 2: 2 multisig with bitcoin-cli on testnet. Those are the steps I follow: Create a multisig with bitcoin-cli createmultisig 2 "["pubkey1", "pubkey2"]" Create the psbt with createpsbt: bitcoin-cli createpsbt '[{"txid": "578b667a5b2498bce06cf4b31e027a5a045af321f2465d3a7d8f302ac61759e6", "vout": 1 }, { "txid": "237bda433527d32ddce8da640e96efcbf3fddc1fbde8add362abe197cc3c151f", "vout": 0 }]' '{"data": "49879816ffbca992d07559d56c0cb8cbc14aa7eb896bc79f532d272595b5906f", "tb1q369frc2yk5vfly8ya57ed2qr7p3jef6fzaqyz6": 0.00009500 }' On one signer, call to walletprocesspsbt: bitcoin-cli walletprocesspsbt $psbt If I call here to analyzepsbt $psbt, this is what I get: { "inputs": [ { "has_utxo": true, "is_final": false, "next": "updater", "missing": { "redeemscript": "e6b13137de705c19718f1aaf6f80709a9e6c1a7c" } }, { "has_utxo": true, "is_final": false, "next": "updater", "missing": { "redeemscript": "e6b13137de705c19718f1aaf6f80709a9e6c1a7c"…

Continue Reading Problem making multisig PSBT on walletcreatefundedpsbt

How to sign a transaction and also get the signature part from it using electrum console?

How do I sign a transaction with following things: Unsigned Tx: 0100000001e939fb23e9991ebbc75fd08c736da32ca12d98a4ff1b8e970e97f5661927ee410000000000ffffffff01db400f00000000001600147f6757aebaf775d9ce50b2005d551e2501b1e80d00000000 Private key associated with one of the public keys used for creating 2-of-3 multisig: p2wpkh:cQ8KpCuZ11wm8ARD3pPeaqyuUBPusrH9pnVRwDu47kLpxwCZ4ap6 Once the tx is signed, how do I get the 'signature' part from it? Public key: 0318370919cfceb3d260081eeca3cae19f941eec321f597c48a64839178ea1e3e0 I tried signing the transaction with unsigned tx and private key however it returns something that doesn't make sense. Whats wrong here and how do I resolve this? signtransaction(tx, opt_privkey) >> signtransaction('0100000001e939fb23e9991ebbc75fd08c736da32ca12d98a4ff1b8e970e97f5661927ee410000000000ffffffff01db400f00000000001600147f6757aebaf775d9ce50b2005d551e2501b1e80d00000000','cQ8KpCuZ11wm8ARD3pPeaqyuUBPusrH9pnVRwDu47kLpxwCZ4ap6') "02000000000000000000"

Continue Reading How to sign a transaction and also get the signature part from it using electrum console?

Why isn’t my PSBT considered complete after walletprocesspsbt and finalizepsbt?

I created a transaction using createrawtransaction spending a UTXO that I own the keys to and then converted it to PSBT using converttopsbt, then I used walletprocesspsbt and finalizepsbt. After finalizepsbt, my "complete" value is false. Is there a way to get more details on why it's not considered completed? Thanks, Francois

Continue Reading Why isn’t my PSBT considered complete after walletprocesspsbt and finalizepsbt?

End of content

No more pages to load