signAndSubmit

suspend fun signAndSubmit(transactionSigner: KeyPair? = null, force: Boolean = false): T

Signs the transaction and submits it in one step.

Convenience method combining sign and submit.

Return

The parsed result (or raw SCValXdr if parseResultXdrFn is null)

Parameters

transactionSigner

The KeyPair to sign with (or null to use constructor signer)

force

Whether to sign even if this is a read call (default false)

Throws

if not yet simulated

if read call and force=false

if more auth signatures required

if submission failed

if still pending after timeout

if contract state needs restoration

if transaction failed