Skip to main content
Opens an external URL. If a user is on mobile openUrl can be used to deeplink users into different parts of the Farcaster client they are using. opening a url Opening an external url with openUrl.

Usage

import { sdk } from '@farcaster/miniapp-sdk'

const url = 'https://farcaster.xyz';

// Pass URL as a string
await sdk.actions.openUrl(url)

// Or pass URL as an object
await sdk.actions.openUrl({ url: 'https://farcaster.xyz' })

Return Value

void