Skip to main content

HTTP Timeouts

When a timeout fires, the fetch call is aborted and throws an AbortError.

WebSocket Connection Timeout

SocketWrapper has a 10-second connection timeout by default. If the WebSocket handshake doesn’t complete within this window, the socket is closed and the connection promise rejects with a timeout error.

Broadcast Timeouts

Separately from transport timeouts, SigningStargateClient and SigningCosmWasmClient have broadcast-level timeouts that control how long the client polls for transaction inclusion:
These are not transport timeouts — they control how long signAndBroadcast() waits for the transaction to appear in a block after it has been submitted.

Error Handling

No Built-In Retry

Neither HttpClient nor HttpBatchClient retry failed requests. If you need retry logic, implement it in your application or wrap the RPC client.