• Signs a transaction using the provided signer, calculating total energy cost and creating a _finalized transaction.

    This is the same as doing Transaction.finalize(await Transaction.sign(transaction))

    Returns

    a promise resolving to the signed transaction

    Throws

    if too many signatures are included in the transaction

    Parameters

    • transaction: Signable

      the unsigned transaction to sign

    • signer: AccountSigner

      the account signer containing keys and signature logic

    Returns Promise<Finalized>

Generated using TypeDoc