I’m running into a problem while trying to buy an Ordinal NFT on Magic Eden with my Taproot wallet. They give me an `unsignedBuyingPSBTBase64` string, which is a Partially Signed Bitcoin Transaction (PSBT) in Base64 format. Like this example: `cHNidP8BAPw
.AAAAAAAAAAAAAA=`.
Right now, this PSBT needs signatures from my Taproot wallet to be a complete transaction. From what I gather, I need to do the following:
1. Decode that Base64 string into a format I can work with.
2. Sign the necessary inputs of the PSBT using the private key from my Taproot wallet.
3. Get the final signed transaction (raw transaction or `tx`) from the signed PSBT.
4. Send this raw transaction to the Bitcoin network to finish the purchase.
I want to automate this whole process by scripting it. I’m looking for help on how to do these steps using either nodejs or Python. In particular, I’d love to know:
* Recommended libraries or packages that can handle PSBTs in the language I choose.
* The best way to sign the PSBT inputs with private keys from a Taproot wallet.
* Any tips or common mistakes to watch out for when dealing with PSBTs, especially with Taproot transactions.
I’d really appreciate any advice, code snippets, or resources that could help me nail this transaction.
How to Sign a Base64 PSBT Without Signature Using Taproot Wallet?
0 replies 149 views
Related topics
- Simple Offline Wallet (key-pair) Setup on Linux Without GUI 0
- Using two different Bitcoin versions without messing up blockchain data 3
- Using Electrum to Transfer from BRD Wallet with HPS Address 8
- Recovering a Bitcoin wallet and address 8
- Creating a list of non-zero wallets and their balances using Python 4
- CipherSeed: A Comprehensive Guide to Super-Secure Crypto Wallet Backups 5