The Squid Widget allows your users to seamlessly swap from tokens on any chain (Ethereum, Arbitrum, Polygon, etc.) directly into XRP on XRPL EVM, all through Axelar's secure cross-chain infrastructure.
- Frictionless onboarding for users with assets on other chains
- No need to manually bridge or handle gas tokens
- Embed and configure in just a few lines of code
The widget requires an Integrator ID, which Squid issues per project. Request one through the Squid integrator form before integrating.
- Install the widget package:
npm install @0xsquid/widget- Render the widget in your React application:
import { SquidWidget } from "@0xsquid/widget";
function App() {
return (
<SquidWidget
config={{
integratorId: "<your-integrator-id>",
apiUrl: "https://apiplus.squidrouter.com",
initialAssets: {
from: {
address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
chainId: "1",
},
to: {
address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
chainId: "1440000",
},
},
}}
/>
);
}0xEeee...EEeE is Squid's sentinel address for a chain's native token, so the example above starts on ETH on Ethereum (chain 1) and lands on XRP on XRPL EVM (chain 1440000).
If you do not need the widget embedded in your own app, Squid hosts a ready-made interface with XRPL EVM preselected:
- Mainnet: XRPL to XRPL EVM on app.squidrouter.com
- Testnet: testnet.xrpl.squidrouter.com