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.
pycardano library. You can typically do this using pip:
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.
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