Function signMultiSignatureTransaction

  • Signs a multi-signature transaction.

    Example

     import { signMultiSignatureTransaction } from '@klayr/transactions';
    const signedTransaction = signMultiSignatureTransaction(unsignedTrx, chainID, privateKey, keys, paramsSchema, true);

    Returns

    The signed multi-signature transaction.

    See

    Parameters

    • transactionObject: Record<string, unknown>

      The unsigned multi-signature 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.

    • keys: MultiSignatureKeys

      Mandatory and optional keys to sign the transaction.

    • Optional paramsSchema: object

      The schema for the params of the transaction.

    Returns Record<string, unknown>

Generated using TypeDoc