πŸ“ˆ Integration for Developers and Projects

Integrating PulseSwap into your application is simple. By constructing URLs with optional parameters, you can guide users directly to a specific chain, token pairs, and even pre-populated input amount

URL Parameters

All parameters are optional. This allows you to customize as much or as little as you need.

  • chain (Optional): Specifies the blockchain network. If omitted, defaults to PulseChain.

  • from (Optional): The input (source) token’s contract address. If omitted, defaults to the native token on the selected chain.

  • to (Optional): The output (destination) token’s contract address. If omitted, the interface will display no pre-selected to token, allowing users to choose.

  • amount (Optional): Pre-populates the interface with a specified amount of the from token. If omitted, the amount field will be blank.

Example

https://pulseswap.io/?chain={chainName}&from={sourceToken}&to={destinationToken}&amount={amount}

Example Link on Ethereum

https://pulseswap.io/?chain=ethereum&from=0xdac17f958d2ee523a2206206994597c13d831ec7&to=0x0000000000000000000000000000000000000000&amount=1000

Example Link on PulseChain

https://pulseswap.io/?chain=pulsechain&from=0x0000000000000000000000000000000000000000&to=0x2b591e99afe9f32eaa6214f7b7629768c40eeb39&amount=100000

All of these parameters (chain, from, to, and amount) are optional. If they are not included, PulseSwap will default to PulseChain and the native token.

Supported Chains: PulseChain, Ethereum, Arbitrum, Polygon, BSC, Optimism, Base, Avalanche, Fantom, zkSync Era, Polygon zKEVM, Linea, Gnosis, Aurora, Cronos, Celo, BitTorrent, Scroll

PulseSwap Widget

Widget Example

To embed the PulseSwap interface directly into a webpage or dApp, you can append the &embed=true parameter to the URL. This will load a responsive, widget-like interface suitable for both mobile and desktop browsers.

URL Parameters

All parameters are optional. This allows you to customize as much or as little as you need.

  • chain (Optional): Specifies the blockchain network. If omitted, defaults to PulseChain.

  • from (Optional): The input (source) token’s contract address. If omitted, defaults to the native token on the selected chain.

  • to (Optional): The output (destination) token’s contract address. If omitted, the interface will display no pre-selected to token, allowing users to choose.

  • amount (Optional): Pre-populates the interface with a specified amount of the from token. If omitted, the amount field will be blank.

  • embed (Optional): If set to true, loads the PulseSwap widget in an embedded, responsive format. If omitted or set to any other value, the standard full-page interface is displayed.

Example Link on Ethereum

https://pulseswap.io/?chain=ethereum&from=0xdac17f958d2ee523a2206206994597c13d831ec7&to=0x0000000000000000000000000000000000000000&amount=1000&embed=true

Example Link on PulseChain

https://pulseswap.io/?chain=pulsechain&from=0x0000000000000000000000000000000000000000&to=0x2b591e99afe9f32eaa6214f7b7629768c40eeb39&amount=100000

All of these parameters (chain, from, to, amount, and embed) are optional. If they are not included, PulseSwap will default to PulseChain and the native token, and will load the full-page interface (if embed is not set to true).


🎯 Getting Started with PulseSwap

PulseSwap’s 0% fee structure, wide blockchain support, and comprehensive privacy features make it a versatile tool for any DeFi user. To get started, visit PulseSwap.io and explore the most efficient swap options across 18 chains.

Last updated

Was this helpful?