Create a transaction using pycardano on the Cardano blockchain

Hello everyone!
I’m looking to create a transaction using pycardano on the Cardano blockchain that both spend old eUTXO and creates new eUTXO. Can anyone provide instructions?

Ensure you have Python installed on your system.

Install the pycardano library. You can typically do this using pip:

Gather Information
Identify the old eUTXO (input) you want to spend. This will include the transaction hash (tx_hash) and the index (tx_index) of the output you want to use.
Determine the recipient address and the amount you want to send.

Create Transaction
Initialize the Cardano protocol parameters.
Build the transaction by specifying the input, output, fee, and other necessary parameters.

Sign the transaction using the private key

1 Like