Help & Support

Halliday

This guide will show you how to integrate Halliday Payments into your Lens Chain application to acquire GHO on Lens Chain. Halliday provides a simple way to acquire tokens via onramp, bridge, and swap functionality.

1

API Key

Obtain API key from Halliday Dashboard.

2

Install SDK

Install the Halliday Payments SDK in the root folder of a web project.

npm install @halliday-sdk/commerce

3

Widget

Integrate Halliday Payments into an existing application with a few lines of code. This example is in a React.js project.

import {openHalliday} from "@halliday-sdk/commerce";
<button  onClick={() => {    openHalliday({      apiKey: process.env.NEXT_PUBLIC_HALLIDAY_API_KEY ?? "",      destinationChainId: 232,      destinationTokenAddress: "0x000000000000000000000000000000000000800A",      services: ["ONRAMP"],      windowType: "EMBED",      targetElementId: "halliday-container",    });  }}>  Get GHO</button>;

Configuration Options

The openHalliday function accepts several configuration options:

  • apiKey: Halliday API key from dashboard

  • destinationChainId: The chain ID where tokens will be received (232 for Lens Chain)

  • destinationTokenAddress: The contract address of the destination token

  • services: Array of services to enable (["ONRAMP"] for just onramp functionality)

  • windowType: "EMBED" for iframe integration or "POPUP" for popup window

  • targetElementId: The HTML element ID where the iframe will be rendered

  • customStyles: Optional styling configuration to match your application's theme

For more advanced features and customization options, refer to the Halliday Documentation.