Advanced Technical Details

Circuit breaker, precision, rate limits, storage limits, and error handling details

Written By Philippe

Last updated 4 days ago

Advanced Technical Details

This page covers details for advanced Builders and Producers who want a deeper understanding of platform behavior.

Circuit Breaker

The circuit breaker stops execution if costs exceed the user-defined maximum API cost ceiling (maxApiCost). The check is strict: if the next API call would push the total over the ceiling, the call is rejected and execution stops.

When the circuit breaker triggers, you see:

Cost ceiling reached. Execution stopped to prevent overcharge. Current: $X.XXXX, attempted: $Y.YYYY

The circuit breaker governs outbound and declared costs. Inbound API cost on a platform-provided credential is bounded separately by the platform's per-call cap, not the declared maxApiCost.

Monetary Precision

Precision Standard

All monetary values use 6-decimal precision to avoid rounding errors:

$1 = 1,000,000 Β΅ (6-decimal precision, matching the underlying USDC reserve for gas efficiency)

OperationPrecisionNotes
Price storage6 decimalsFixed-point in contracts
Cost tracking6 decimals (Β΅USD)Internal arithmetic in 1,000,000ths of a dollar
Settlement6 decimalsSettled within a few minutes
Display2 decimalsRounded for UI (e.g., $0.10)

Rounding Strategy

  • Toward zero for refunds (favors user)
  • Rounded up (ceiling) to the next micro-USD for charges β€” provider/API cost is the single floatβ†’int boundary, via Math.ceil

Storage Limits

ItemLimit
File attachment50 MB per file (binary)
Execution result JSON2 MB
Data Table storage500 MB per deployed agent β€” 10x n8n cloud's 50 MB account-wide cap

Rate Limits

Platform-enforced webhook rate limits are in place to protect against abuse. If you need higher throughput for a production use case, contact support.

Error Handling

Retry Policy

Error TypeRetried?Details
Transient platform errorsYesUp to 3 attempts with exponential backoff
API timeout (external provider)Noβ€”
Circuit breakerNoβ€”
Out of budgetNoβ€”

Failed payment operations are logged and retried automatically only for transient errors. Persistent failures are flagged for review.

Log Retention

Log TypeRetention
Execution logs24 hours
Settlement records30 days