resolveMainSigner
resolveMainSigner(
signers,unsignedTx):Promise<UnsignedTransactionV1>
Defined in: ootle/src/transaction.ts:182
Settles the transaction’s main signer before anything signs it.
A transaction that declares none (main_signer: "None", the TransactionBuilder
default) gets the first signer’s key, { Authorizer: <public key hex> } — the key the engine
used to act as before transactions declared it. Any other value is kept. Every signature
covers the main signer, so a signature made over the transaction before this ran does not
verify against the result: set it with TransactionBuilder.withMainSigner before handing the
transaction to a co-signer.
Parameters
Section titled “Parameters”signers
Section titled “signers”Signer[]
unsignedTx
Section titled “unsignedTx”UnsignedTransactionV1
Returns
Section titled “Returns”Promise<UnsignedTransactionV1>