bridge/interfaces/GalaConnectConfig.md
Configuration for GalaConnect client
Properties
| Property | Type | Description |
|---|---|---|
baseUrl? | string | GalaConnect API base URL |
enableRetry? | boolean | Enable automatic retry for transient failures (default: true) When enabled, requests that fail due to network errors or server errors (5xx, 429) will be automatically retried with exponential backoff. |
galachainBaseUrl? | string | GalaChain API base URL |
httpRequestor? | HttpRequestor | Sends the HTTP requests (default: the global fetch) |
maxRetries? | number | Maximum number of retry attempts (default: 3) Only used when enableRetry is true. |
onRetry? | (error, attempt, delayMs) => void | Callback invoked before each retry attempt. Useful for logging or monitoring retry behavior. |
requestsPerSecond? | number | Requests per second (rate limiting) |
requestTimeoutMs? | number | How long one request may take, in milliseconds (default 30 000; Infinity for no limit). A read that runs out is REQUEST_TIMEOUT, a write BRIDGE_WRITE_OUTCOME_UNKNOWN. |
retryInitialDelayMs? | number | Initial delay in milliseconds before first retry (default: 1000) Subsequent retries use exponential backoff (delay doubles each time). |
walletAddress | string | The wallet's GalaChain user reference: an Ethereum account (eth|..., 0x..., bare hex; sent as eth|<checksummed>) or a client| alias; '' for a client with no wallet. |
base url enable retry galachain http requestor max retries on delay ms requests per second request timeout bridge write outcome unknown initial wallet address