Function signTransactionWithSigner

  • signTransactionWithSigner signs a single transaction with the given signer.

    Parameters

    Returns Promise<ReturnType<typeof signTransaction> & {
        stxn: SignedTransaction;
    }>

    an object with blob, txID and stxn properties

    Remarks

    This is the replacement for the deprecated signTransaction, which can only sign with a raw ed25519 secret key. Because a TransactionSigner signs a group, the transaction is passed as a one-element group and the single result is returned.

    The decoded stxn is returned alongside the blob so callers can read what the signer produced — its sig, pqsig or msig field, and the sgnr field naming the key that signed when it is not the transaction sender.

Generated using TypeDoc