serializeUnsignedTx
serializeUnsignedTx(
unsignedTx):string
Defined in: ootle/src/transaction.ts:38
Serialize an unsigned transaction to the JSON string handed to WASM (addTransactionSigner,
sealTransaction) and to one-time stealth-signature hashing.
Identical to JSON.stringify(unsignedTx) for any fragment-free transaction — so existing
transaction hashes do not shift — but a stealth statement is carried as a
RawJsonFragment whose byte-exact toCompactJson() string must survive verbatim. Its
u64 amounts are bare JSON numbers exceeding 2^53; JSON.stringify cannot emit them
losslessly. We therefore stringify each carrier as a unique placeholder, then splice the raw
fragment in place of the quoted placeholder, never round-tripping the amounts through a JS
number.
Parameters
Section titled “Parameters”unsignedTx
Section titled “unsignedTx”UnsignedTransactionV1
Returns
Section titled “Returns”string