Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a PCZT from transparent inputs and payment outputs
function propose_transaction( inputs: WasmTransparentInput[], payments: WasmPayment[], change_address: string | null, network: 'mainnet' | 'testnet', expiry_height: number ): WasmPczt
func ProposeTransaction( inputs []TransparentInput, payments []Payment, changeAddress *string, network string, expiryHeight uint32, ) (*Pczt, error)
fun proposeTransaction( inputs: List<TransparentInput>, payments: List<Payment>, changeAddress: String?, network: String, expiryHeight: UInt ): Pczt
'mainnet'
'testnet'
Pczt
const input = new t2z.WasmTransparentInput( '03abc123...', 'ce15f716...1338', 0, 1_000_000n, '76a914...88ac', null ); const payment = new t2z.WasmPayment( 'u1recipient...', 800_000n, null, null ); const pczt = t2z.propose_transaction( [input], [payment], 'u1change...', 'testnet', 3720100 );
InvalidAddress
InsufficientFunds
ChangeRequired
OrchardBuilderNotAvailable
inspect_pczt
Was this page helpful?