Binance Connector JS
    Preparing search index...

    Function redactMessage

    • Redacts sensitive fields from a message for safe logging. Replaces apiKey and signature values with '[REDACTED]' while preserving the rest of the message structure.

      Parameters

      • data: { id: string; method: string; params: Record<string, unknown> }

        The message object to redact.

      Returns { id: string; method: string; params: Record<string, unknown> }

      A new object with sensitive fields redacted.