signTransaction
signTransaction(
signers,unsignedTx,sealKeypair?):Promise<SignedTransaction>
Defined in: ootle/src/transaction.ts:167
Collects signatures from all provided signers and assembles a signed transaction.
Returns a SignedTransaction carrying the byte-exact sealedJson (the canonical
bytes sealTransaction BOR-encodes) plus a parsed transaction view for
inspection. The sealed JSON is not round-tripped through JSON.parse/JSON.stringify
on its way to the envelope, so u64 amounts above 2^53 (e.g. a confidential output’s
minimum_value_promise) survive byte-exact.
Parameters
Section titled “Parameters”signers
Section titled “signers”Signer[]
unsignedTx
Section titled “unsignedTx”UnsignedTransactionV1
sealKeypair?
Section titled “sealKeypair?”Optional pre-generated seal keypair. When omitted, a fresh one is generated internally (the default for the plain transaction flow). The stealth spend authorizer passes one so the same seal public key flows into its one-time spend-key authorizations (which hash the tx with the seal public key) and into this final seal — otherwise those signatures would be over a different hash and fail to verify.
Returns
Section titled “Returns”Promise<SignedTransaction>