Skip to main content
Creates a Partially Constructed Zcash Transaction (PCZT) from transparent inputs and payment outputs. Implements the Creator, Constructor, and IO Finalizer roles from ZIP 374.

Signature

Parameters

inputs
TransparentInput[]
required
Array of transparent UTXOs to spend
payments
Payment[]
required
Array of payment outputs to create
change_address
string | null
Address to receive change (Orchard or transparent)
network
string
required
'mainnet' or 'testnet'
expiry_height
number
required
Block height at which the transaction expires

Returns

A Pczt object representing the partially constructed transaction.

Example

Errors

See Also