submitWithMultipleSigners

suspend fun submitWithMultipleSigners(hostFunction: HostFunctionXdr, selectedSigners: List<SelectedSigner>, forceMethod: SubmissionMethod? = null, resolveContextRuleIds: ResolveContextRuleIds? = null): TransactionResult

Shared signing pipeline for multi-signer operations.

Handles wallet signer validation, simulation, auth entry signing, re-simulation, and submission. The caller is responsible for building the hostFunction before calling this.

Used by multiSignerTransfer, multiSignerExecuteAndSubmit, and by other managers (signer, policy, context rule) when they receive a non-empty selectedSigners list for multi-signer authorization.

Return

TransactionResult indicating success or failure.

Parameters

hostFunction

The host function to invoke.

selectedSigners

All signers that must sign, in collection order.

forceMethod

Optional override for the submission method.

resolveContextRuleIds

Optional callback to resolve context rule IDs per auth entry.

Throws

if validation fails, signing fails, or submission fails.