• Validates a given transaction against its' schema.

    Example

    import { validateTransaction } from '@liskhq/lisk-transactions';
    const validation = validateTransaction(transaction, paramsSchema);

    Returns

    undefined, if the transaction is valid and no errors are found. Returns the Error, if any errors are discovered curing the validation.

    See

    Parameters

    • transaction: Record<string, unknown>

      The transaction to validate.

    • paramsSchema: object = emptySchema

      The parameters schema for the transaction.

    Returns void

Generated using TypeDoc