LCX Liberty. American DeFi. Your keys. Your assets. Your control.
Swap widget
One script tag puts a working swap in your page. No build step, no wallet code, no iframe.
Embed it
Two lines. The script defines a custom element; the element renders the swap. It runs in your page rather than an iframe, so the visitor's wallet extension behaves exactly as it does anywhere else, and it renders inside a shadow root, so your CSS cannot reach in and ours cannot leak out.
<script src="https://widget-dex.lcx.com/v1/lcx-swap.js" defer></script>
<lcx-swap partner-id="0xYourAddress" widget-key="wk_yourKey"
chain="base" from="ETH" to="USDC"></lcx-swap>Pin the version in the path. v1 will not change shape under you. For production, add the Subresource Integrity hash, which is issued with your widget key: it pins the exact bundle your page will execute, so it has to come from us rather than be read off a page anyone can load.
Keys and limits
Evaluate with no key at all: the widget runs on the anonymous tier, rate limited like any unauthenticated caller. For production create a key in the console, pin it to your domains, and pass it as widget-key. A domain-pinned key is safe to ship in page source, which is the point of having a separate one.
Widget traffic counts against the same monthly allowance as your REST and MCP calls. The widget itself is a separate entitlement from the API; the pricing page lists which plans include it.