Skip to main content
Prompts the user to swap tokens through the Farcaster client’s built-in swap interface.

Usage

Parameters

sellToken (optional)

  • Type: string
The contract address of the token to sell.

buyToken (optional)

  • Type: string
The contract address of the token to buy.

sellAmount (optional)

  • Type: string
Sell token amount, as numeric string

Return Value

Notes

This action opens the native swap interface in the Farcaster client, allowing users to swap tokens without leaving the Mini App context.