Widget Attributes
All HTML attributes accepted by the<argyros-swap> element.
Reference
| Attribute | Type | Default | Required | Description |
|---|---|---|---|---|
api-key | string | — | yes | Your Argyros API key. Used to authenticate SDK requests. |
chain | "solana" | "fogo" | "solana" | no | Target chain. Determines which DEX markets are searched. |
base-url | string | "https://api.argyros.xyz" | no | API base URL override. Use for self-hosted instances. |
rpc-url | string | "https://mainnet.fogo.io/" | no | Solana JSON-RPC endpoint for balance queries. The widget calls getBalance and getTokenAccountsByOwner against this URL. |
default-input-mint | string | — | no | Pre-selected input token mint address. |
default-output-mint | string | — | no | Pre-selected output token mint address. |
theme | "dark" | "light" | "dark" | no | Color theme. See Theming for CSS variable overrides. |
Dynamic Updates
All attributes are reactive. Changing them after mount updates the widget:api-key, chain, or base-url change, the widget re-creates the internal SDK client. When rpc-url changes, subsequent balance queries use the new endpoint.