validateInitialTransactionParams()
validateInitialTransactionParams(
params):void
Defined in: utils/transactionValidation.ts:54
Validates the metadata passed to executeTxAction before anything else runs.
Each title string must be at most MAX_TRANSACTION_TITLE_LENGTH characters and each description string at
most MAX_TRANSACTION_DESCRIPTION_LENGTH. payload must be JSON-serializable and at most
MAX_TRANSACTION_PAYLOAD_BYTES bytes as UTF-8 JSON. Strings (including payload keys) must not match
executable-like patterns: eval(, Function(, setTimeout/setInterval with a string argument, and javascript:.
This is a defensive gate, not a replacement for escaping output in the UI.
Parameters
params
Omit<InitialTransactionParams, "actionFunction">
The transaction metadata.
Returns
void
Throws
PulsarTransactionValidationError for the first field that breaks a rule.