The documented defaults, written out. You only need near.config to change
them — omitting this block entirely gives the same behavior.
near.config({
retry: {
enabled: true, // false restores single-attempt behavior
maxAttempts: 5, // total attempts including the first
baseBackoffMs: 250, // full-jitter exponential backoff bounds
maxBackoffMs: 30000,
timeoutMs: 15000, // per-attempt AbortController timeout (0 disables it)
respectRetryAfter: true, // honor a Retry-After header, capped at maxBackoffMs
writePolicy: "transport-only",
},
batch: {
maxConcurrency: 30, // in-flight cap for near.batch / near.view.many
},
});