⚔️Cross Chain Swap Mode - Integration Docs

Swap mode lets your users buy your token, right on your website.

Try Swap mode here.

Swap Mode Quickstart

Step 1/2: Install the package and paste the below component into your app

yarn add @brydge-network/utils
import { encodeUrl } from '@brydge-network/utils';

const url =
      'https://brydge.network/widget/' +
      encodeUrl({
        widgetMode: 'SWAP',
        darkMode: true,
        title: 'Buy ICE on Polygon',
        destinationChainId: 137,
        outputTokenAddress: '0xc6c855ad634dcdad23e64da71ba85b8c51e5ad7c',
        backgroundColor: '#000000',
       })
      
function App() {
  return (
    <div>
        <iframe src={url} width={360} height={470} />
    </div>
  );
}

export default App;

Step 2/2: Customize your props

Last updated