Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • TRADING
  • SUBMIT
Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • TRADING
  • SUBMIT
Crypto Flexs
Home»BITCOIN NEWS»utxo – Chain 2 transactions in the same block with bitcoinlib in Python
BITCOIN NEWS

utxo – Chain 2 transactions in the same block with bitcoinlib in Python

By Crypto FlexsDecember 9, 20231 Min Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
utxo – Chain 2 transactions in the same block with bitcoinlib in Python
Share
Facebook Twitter LinkedIn Pinterest Email

I asked yesterday if it is possible to have a tx from A to B and B to C in the same block. The second tx consumes the first UTXO (B’s initial balance is 0).

Apparently it is: Can two related “spends” be in the same block?

But now I’m trying to test this with bitcoinlib in Python. My code is:

wallet = Wallet.create('MyWallet',
                        keys = seed_phrase,
                        witness_type = "segwit")

address = wallet.get_key(0).address
address2 = wallet.get_key(1).address
address3 = wallet.get_key(2).address

wallet.transactions_update()

fee = 1_000
send_value = wallet.balance() - fee

tx = wallet.send( ((address2, send_value)),
                    fee = fee,
                    offline = True)

wallet.transaction_import(tx)

send_value2 = send_value - fee

tx2 = wallet.send( ((address3, send_value2)), 
                     account_id = 1,
                     fee = fee,
                     offline = True)

The first tx works fine since the first address has a balance, but the second address fails with:

WalletError: Create transaction: No unspent transaction outputs found or no key available for UTXO's

The problem seems to be getting the first tx for the wallet.

Any ideas on how to fix this? thank you

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

What the KelpDAO Exploit Reveals About Hidden Risks in DeFi

April 25, 2026

taproot – Is the OP_SUCCESSx reservation in BIP-342 designed with a specific opcode family in mind, or as a general forward compatibility mechanism?

April 19, 2026

Lake Life Simulator Fish Have Opinions

April 13, 2026
Add A Comment

Comments are closed.

Recent Posts

ORBS) Reports Total Holdings Of Approximately $333 Million, Includes OpenAI, Beast Industries, More Than 11,000 ETH And Over 283 Million WLD Tokens

April 28, 2026

Core Scientific moves forward with 1.5GW AI data center campus in Texas

April 28, 2026

AxeCasino To Attend IGB L!VE 2026 Following Front-End Update Focused On Usability And Cross-Device Performance

April 28, 2026

Ondo Finance adds proxy voting for holders of $700 million worth of tokenized shares.

April 28, 2026

Bitcoin is at risk of liquidation of $1.4 billion if BTC rises to $80,000.

April 28, 2026

MBitmine Immersion Technologies Reports ETH Holdings Of 5.078M Tokens, Total Assets At $13.3B

April 28, 2026

Harvey AI opens Dallas office, expands legal AI presence

April 28, 2026

Nexus AiCOS Defines “Proofs Of Behavior” As The On-Chain Credit Standard On Base

April 27, 2026

Digital ledger technology explained: a guide for crypto

April 27, 2026

What the KelpDAO Exploit Reveals About Hidden Risks in DeFi

April 25, 2026

Bitcoin remains strong as institutional demand offsets geopolitical risks.

April 25, 2026

Crypto Flexs is a Professional Cryptocurrency News Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of Cryptocurrency. We hope you enjoy our Cryptocurrency News as much as we enjoy offering them to you.

Contact Us : Partner(@)Cryptoflexs.com

Top Insights

ORBS) Reports Total Holdings Of Approximately $333 Million, Includes OpenAI, Beast Industries, More Than 11,000 ETH And Over 283 Million WLD Tokens

April 28, 2026

Core Scientific moves forward with 1.5GW AI data center campus in Texas

April 28, 2026

AxeCasino To Attend IGB L!VE 2026 Following Front-End Update Focused On Usability And Cross-Device Performance

April 28, 2026
Most Popular

Hipposol, Solana-powered memecoin, announces $Hippos token presale round

April 24, 2024

Argentine polls suggest that 57%of the scandals of the Libra suggest that they do not trust President Miley.

March 27, 2025

Aevo Price Prediction: FOMO Craze Drives AEVO Up 7% as Presales of This AI Meme Coin Cross $10 Million

March 14, 2024
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
© 2026 Crypto Flexs

Type above and press Enter to search. Press Esc to cancel.