How can I create an op_return TX with python bitcoinlib?

The transaction should include the OP_RETURN HEX-Data and an address where I send my change money

  • Does this answer your question? Accessing bitcoind from python module hits error
    – user103136
    Commented Oct 31, 2021 at 1:47
  • @Prayank Python-bitcoinlib is a library that natively implements the Bitcoin protocol; it is not an RPC library for communicating with Bitcoin Core. Commented Oct 31, 2021 at 3:22
  • Okay. Retracted duplicate close vote.
    – user103136
    Commented Oct 31, 2021 at 5:35
  • Have you tried working with the examples from the github documentation? github.com/petertodd/python-bitcoinlib/blob/…
    – m1xolyd1an
    Commented Nov 1, 2021 at 18:26
  • Any update about some new code for this? Above link is from 2015
    – JuliSmz
    Commented Mar 25, 2023 at 15:02


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.