Skip to main content
Experimental. If you have any issues, DM @rapidssh on Twitter.
Hosted builder access is not enabled yet. The setup below is for the upcoming release. In the developer portal, register your payout settings, enable Trading widget, and add your exact HTTPS website origin. Copy the snippet with your generated builder ID.

HTML

For the local preview, use http://127.0.0.1:3345/widget.js.

React / Next.js

Load widget.js once, then mount it in a client component. Cleanup removes the frame and its message listener. Use the loader for builder attribution; a bare iframe does not create a hosted session.

Options

Use a container at least 320 pixels wide. Content scrolls inside the frame when needed. Users connect their wallet inside Route and review each transaction. Route and builder fees are shown separately; gas is extra. Builder fees and the payout address come from registered onchain settings, with a maximum 50 bps builder fee. Never put an API key in the embed. Attributed requests share your workspace’s plan limits. Without a builder ID, the widget uses normal public swap access without builder fees. Default token overrides, limit orders and Earn are not supported. Allow https://www.route.fun in your site’s frame-src and script-src, and https://build.route.fun in connect-src. Builder swaps currently require an ordinary EOA wallet; delegated and contract wallets are unsupported. Open Route opens the normal site without builder attribution.