Skip to main content

Live Demo

Explore a fully working implementation in this live demo:
This demo includes a complete working implementation with Starknet wallets integration using Dynamic Labs SDK. You can explore code at this repository.

Quick Start

Installation

Install the Layerswap Widget along with the necessary wallet providers. This installation includes support for Starknet, Ethereum, Solana, and Bitcoin wallets:
If you want to customize the wallet provider selection, please refer to the Widget Quickstart.

Initial Configuration

Create a custom Starknet wallet connection hook that bridges Dynamic Labs SDK with Layerswap Widget.
Set up the providers and widget in your main component:
You can generate an API key from the Partner Dashboard to track swaps done through the widget.

Environment Variables

Create a .env.local file with your API credentials:
.env.local
Get Your API Keys:

Complete Example

Here’s a full implementation example combining all concepts:
For a complete list of configuration options, see Configurations.

Testing

Testnet Configuration

Test your integration on testnet before going live: