Practical overview
When it fits
Use Pycardano when a Python application needs Cardano transaction-building or signing capabilities, or when developing off-chain code and tests for a Plutus DApp.
Who it is for
- Python developers building Cardano applications
- Developers writing off-chain code and tests for Plutus DApps
Documented uses
- Create and sign Cardano transactions from Python code.
- Build transaction inputs and outputs involving ADA and native assets.
- Integrate Cardano transaction logic into off-chain application code and tests.
Requirements & limits
- The library is installed with pip, and cbor2 version 6 or later is a stated dependency.
- The documented transaction example uses Blockfrost for chain context and submission.
- The project lists transaction building, signing, multi-asset support, scripts, staking certificates and governance actions among its features.
- The repository is public and specifies the MIT license.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install Pycardano in a Python environment
Install the library and its dependencies using pip.
Before you start
- Python environment with pip
Steps
Run the command below.
pip install pycardanoEnsure the installed cbor2 dependency is version 6 or later.
Expected outcome
Pycardano is installed in the Python environment for use in Cardano-related development.
Guide limitations
- This guide covers installation only; it does not configure a chain backend or demonstrate a transaction workflow.
Build and sign a Cardano transaction with the documented example
Use the README example to assemble and sign a testnet transaction.
Before you start
- Pycardano installed in a Python environment
- Payment and stake signing-key files
- A Blockfrost project ID
- A preprod chain context
Steps
Set the network to testnet and load the payment and stake signing keys.
Derive verification keys and a Cardano address from the signing keys.
Create a Blockfrost chain context for preprod and initialize a transaction builder.
Add inputs and outputs, then build and sign the transaction with the payment signing key.
Submit the signed transaction through the chain context.
Expected outcome
The example constructs, signs and submits a transaction using Pycardano and a Blockfrost chain context.
Guide limitations
- The README example assumes key files and a configured Blockfrost project ID; it does not provide those credentials.
- The example is for testnet/preprod and does not establish the details of other network configurations.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 10 October 2026
- Original website title
- Python-Cardano/pycardano · Official homepage title · retained in its source language

