Drop a fully functional DEX swap interface into any dApp in minutes. Three display modes, fully themeable, zero-config wallet integration.
Terminal manages its own wallet connection
import { ZentraTerminal } from '@zentrafi/terminal'
import '@zentrafi/terminal/dist/style.css'
<ZentraTerminal initProps={{
displayMode: "Integrated",
themeType: "Dark",
theme: {
"bg_primary": "#0d1117",
"primary": "#97CBDC",
"text_primary": "#FFFFFF",
"text_secondary": "#6b7280",
"success": "#4ade80",
"warning": "#fbbf24",
"error": "#f87171",
"btn_text": "#000000",
"bg_overlay": "rgba(0,0,0,0.65)",
"border": "rgba(255,255,255,0.1)"
},
independentWallet: true,
initialSlippage: 0.5,
walletConnectProjectId: "YOUR_PROJECT_ID",
}} />Integrated inline, floating Widget, or full-screen Modal — fits any page layout.
Dark/Light presets plus per-color overrides via CSS variables. No Tailwind required.
Real-time quotes via ZentraFi's Liquidity Book pools. Auto price-impact warnings.
Manages its own wallet connection or follows your dApp's existing wagmi context.
window.ZentraX.init() for non-React frameworks: Vue, Svelte, vanilla JS.
1:1 PHRS ↔ WPHRS handled automatically. No extra config needed.