Function signTransactionWithPrivateKey

  • Signs a given transaction.

    Example

     import { signTransactionWithPrivateKey } from '@liskhq/lisk-transactions';
    const signedTransaction = signTransactionWithPrivateKey(unsignedTrx, chainID, privateKey, paramsSchema);

    See

    Returns

    The signed transaction.

    Parameters

    • transactionObject: Record<string, unknown>

      The unsigned transaction object.

    • chainID: Buffer

      The chain ID of the chain to which the transaction belongs.

    • privateKey: Buffer

      The private key of the sender of the transaction.

    • Optional paramsSchema: object

      The schema for the params of the transaction.

    Returns Record<string, unknown>

Generated using TypeDoc