For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reference frontend of Jupiter

This reference frontend demonstrates how to use Intents Connect with Jupiter on Solana to swap into SPL tokens that are not available as direct destinations through the NEAR Intents 1Click API.

Intents Connect handles cross-chain funding and authorises the operation on the destination chain. Jupiter performs the token swap on Solana through the user's intermediary account.

Live frontend

Open the reference frontend and select the Solana tab to explore the Jupiter example.

How it works

  1. Choose a source asset and a Solana token. The user selects the asset to fund the swap and the SPL token they want to receive.

  2. Prepare the execution. Intents Connect resolves the user's Solana intermediary account, prepares the Jupiter swap steps, and previews the amount and fees.

  3. Authorize and fund. The user signs the intent with their source-chain wallet and funds the deposit. The SDK can initiate the transfer from the connected wallet or provide a deposit address.

  4. Execute on Solana. NEAR Intents moves the funds cross-chain. Once the intermediary account is funded, Intents Connect executes the authorized Jupiter swap on Solana.

  5. Track the result. The frontend displays execution progress and the final status.

The Solana demo also illustrates steps-only operations for selling tokens or withdrawing funds that are already held by the intermediary account, without a new cross-chain deposit.

Source code

The example frontend is available in the open-source Intents Swap Widget repository:

It is built around the Intents Connect SDK, which manages signing, deposits, execution status, and destination-chain steps. The Jupiter-specific integration defines the Solana swap operation.

Last updated