Skip to content

SignedTransaction

Defined in: ootle/src/transaction.ts:141

A signed transaction produced by signTransaction, ready to be sealed.

Carries the byte-exact sealedJson string emitted by WASM alongside a parsed Transaction view. The two are intentionally separate:

  • sealedJson is the canonical artifact. It preserves u64 amounts that exceed Number.MAX_SAFE_INTEGER (e.g. a confidential output’s minimum_value_promise), which the engine emits as bare JSON numbers. sealTransaction BOR-encodes this string directly — it never re-stringifies the parsed object.
  • transaction is a convenience view for inspection only. It is the result of JSON.parse(sealedJson), so any bare integer above 2^53 has already been rounded. Re-serialising it (JSON.stringify) and submitting that is lossy — always seal via sealedJson.

readonly sealedJson: string

Defined in: ootle/src/transaction.ts:143

The byte-exact sealed-transaction JSON from WASM — the canonical bytes to BOR-encode.


readonly transaction: Transaction

Defined in: ootle/src/transaction.ts:148

Parsed view of sealedJson for inspection. Lossy for u64 amounts > 2^53 — do NOT re-serialise this for submission; seal via sealedJson instead.