sdk/builders/operations/Pay.ts
Pay overview
Pay operation - creates transaction outputs to send assets to addresses.
Added in v2.0.0
Table of contents
programs
createPayToAddressProgram
Creates a ProgramStep for payToAddress operation. Creates a UTxO output and tracks assets for balancing.
When autoMinUtxo is enabled (via build options or per-call override),
the output lovelace is automatically bumped up to the protocol minimum
if the specified amount is below it. When disabled (the default), the
specified lovelace is used as-is.
Implementation:
- Resolves autoMinUtxo from per-call override or build options (default: off)
- When enabled, calculates minimum lovelace and uses the higher of specified/required
- Creates the UTxO output with the effective assets
- Adds output to state.outputs array
- Updates totalOutputAssets for balancing
Signature
export declare const createPayToAddressProgram: (
params: PayToAddressParams
) => Effect.Effect<void, TransactionBuilderError, TxContext | BuildOptionsTag | ProtocolParametersTag>Added in v2.0.0