Skip to main content
Defined in @coinbase/onchainkit
Opens URLs in the appropriate context - either within the Mini App environment or in external browsers. Handles cross-client compatibility automatically.

Returns

(url: string) => void
Function that opens the specified URL. Behavior depends on the URL type and client capabilities.
string
required
The URL to open. Can be http/https links, deep links, or other URI schemes.
URLs opened with useOpenUrl may open in different contexts depending on the client. Don’t rely on specific opening behavior for critical functionality.
useOpenUrl automatically handles cross-client compatibility and provides the best user experience for external navigation.