Layerswap API
API Explorer
  • Overview
  • Partner Setup
  • UI Integration
    • Layerswap-hosted page
    • Embedded form
    • Customization
      • Interactive Builder
  • API Integration
    • Quickstart
    • API Reference
    • Swap lifecycle
    • Webhooks
    • DEPRECATED - V1 API Reference
      • Get Available Networks
      • Get Available Routes
      • Get Swap Rate
      • Create Fast Swap
      • Create Swap
      • Prepare Source Transaction
      • Get Swap
  • Mixed Integration
    • Swap Link
  • Data
    • Object types
    • Supported Platforms
      • Supported Networks
      • Supported Fiat Providers
      • Supported CEXes
Powered by GitBook

Layerswap

  • App
  • Explorer
  • Twitter
  • Discord

© 2023 Bransfer, Inc. All rights reserved.

On this page

Was this helpful?

Export as PDF
  1. UI Integration

Customization

Last updated 5 months ago

Was this helpful?

Check out the to see how it looks and feels.

Parameters

from - One of the

Source network or exchange you want the users to transfer from, for example IMMUTABLEX_MAINNET.


to - One of the

Destination network or exchange you want the users to transfer from, for example ETHEREUM_MAINNET.


asset

The asset that you want to be preselected. NOTE: available assets depend on the selected network, for example, the asset IMX is only available in the IMMUTABLEX_MAINNET network.


destAddress

The destination address the funds should reach at the end of the swap.


lockAddress - true/false

If set to true, the destination address will be locked for editing.


hideFrom - true/false

If set to true, the source will be hidden in the UI.


lockFrom - true/false

If set to true, the source will be locked for editing.


hideTo - true/false

If set to true, the destination will be hidden in the UI.


lockTo - true/false

If set to true, the destination will be locked for editing.


lockAsset - true/false

If set to true, the asset will be locked for editing.


hideRefuel - true/false

If set to true, refuel feature will be disabled and not shown in the UI.


clientId

If the destAddress parameter is provided, the Partner's logo will be shown next to the address.


amount

Use to pre-fill the amount field.

Users will still be able to change it in the UI. The parameter will be skipped if the asset parameter was not passed.


externalId


account

User account name or address that will be shown as a source.

hideFrom should be set to true


actionButtonText

Use to replace Swap now button text. For example, it can be changed to Deposit or Withdraw.

Clinet Id from .

A unique ID representing the user's transfer session in the partner's system. This can later be used to query the status of the transfer and will be included in the webhook notifications sent to the partner. Refer to the section to learn more.

Interactive builder
supported platforms
supported platforms
partner setup
API Reference