Skip to content

encodeSignedTransactionToJson

encodeSignedTransactionToJson(signedTransaction, space?): string

Defined in: packages/transact/src/transactions/signed-transaction.ts:184

Encode a signed transaction to wire-format JSON string.

Wire format uses short keys (e.g., amt, fv, snd) matching the Algorand protocol. Useful for debugging, logging, or any scenario requiring human-readable JSON that preserves the canonical field names.

SignedTransaction

The signed transaction to encode

number

Optional indentation for pretty-printing

string

JSON string in wire format