Building Cardano Transactions with Intents.
This framework aims to provide intuitive and correct building blocks for transaction building, based on the following aspects of transactions.
This API revolves around composing intents, then adding metadata and constraints, and finally trying to validate it and auto-populate all requirements.
Finalize a transaction before signing and submitting it.
Analyze all intents and perform the following actions:
The network parameters will be automatically chosen to be:
Preprod is not supported for this simplified [finalize] function. In case you want more customization, please use [finalizeAdvanced].
Finalize a transaction before signing and submitting it.
Analyze all intents and perform the following actions:
Result of the Tx finalization.
The hashes of the credentials expected to provide a signature are provided as an additional artifact of Tx finalization.
Errors that may happen during Tx finalization.
Provide a default function to convert an error to a human-readable string.
Represents different types of transaction intents.
Represents different sources for spending assets.
All intents requiring the on-chain publication of a certificate.
These include stake registration and delegation, stake pool management, and voting or delegating your voting power.
Governance vote.
Governance action proposal.
The different kinds of proposals available for governance.
Represents additional information for a transaction.
Configure fees manually or automatically for a transaction.
Contains pointers to the latest enacted governance actions and to the constitution.
Just a helper initialization for when we don’t care about governance proposals.
Update the known local state with the spent and created UTxOs of a given transaction.
Attempt to balance a transaction with a provided address.
All the missing value from inputs and/or outputs is compensated by adding new intents with the provided address as source and/or destination.
The function may fail while verifying that all references are present in the local state UTxOs.