Have an idea for a template? Please create a pull request or request an example.
Looking for the documentation? https://developers.swing.xyz
First choose one of the examples.
Install the NPM dependencies:
yarn install
Run the development server for a specific example:
yarn dev --filter=swaps-widget-nextjs
Finally, open the example http://localhost:3000
Next.js
- swaps-widget-nextjs - Cross-chain Swaps using the Widget in Next.js App Router
- swaps-widget-nextjs-pages - Cross-chain Swaps using the Widget in Next.js Pages Router
- swaps-sdk-nextjs - Cross-chain Swaps using the SDK in Next.js
- swaps-api-nextjs - Cross-chain Swaps using the Swing API in Next.js
Webpack
- swaps-widget-webpack - Cross-chain Swaps using the Widget with Webpack
Angular
- swaps-widget-angular - Cross-chain Swaps using the Widget in Angular
- staking-widget-nextjs - Cross-chain Staking using the Widget in Next.js
- staking-sdk-nextjs - Cross-chain Staking using the SDK in Next.js
- staking-api-nextjs - Cross-chain Staking using the Swing API in Next.js
- withdraw-widget-nextjs - Cross-chain Withdraw using the Widget in Next.js
- gas-widget-nextjs - Cross-chain Gas Refill using the Widget in Next.js