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.
Extract the final transaction bytes for broadcast
function finalize_and_extract(pczt: WasmPczt): Uint8Array function finalize_and_extract_hex(pczt: WasmPczt): string
func FinalizeAndExtract(pczt *Pczt) ([]byte, error) func FinalizeAndExtractHex(pczt *Pczt) (string, error)
fun finalizeAndExtract(pczt: Pczt): ByteArray fun finalizeAndExtractHex(pczt: Pczt): String
const info = t2z.inspect_pczt(pczt.to_hex()); if (!info.all_inputs_signed || !info.has_orchard_proofs) { throw new Error('Not ready to finalize'); }
// Get transaction as hex (for broadcasting) const txHex = t2z.finalize_and_extract_hex(pczt); console.log('Transaction size:', txHex.length / 2, 'bytes'); // Broadcast via RPC await sendRawTransaction(txHex);
Was this page helpful?