Onramp to EOA

Shown below is an example integration of onramp to the user's EOA. The user is authenciated via the connected signer (Metamask, etc.). Onramp funds will be deposited to the connected signer address.

import { openHallidayOnrampToEOA } from "halliday-sdk";

// openHallidayOnrampToEOA will open a popup that begins the onramp flow.
  destinationBlockchainType: "DFK",
  destinationCryptoType: "JEWEL_DFK",
  // Optional, defaults to false. If set to true, will mint HallidayTestToken to the 
  // user's smart account on the destinationBlockchainType. 
  // If you set this to true, be sure to provide a sandbox API key above.
  useSandbox: false,

Here, the openHallidayOnrampToEOA function takes in the following arguments:

apiKeystringYour Halliday API Key. Visit dashboard.halliday.xyz to create one!
destinationBlockchainTypestringThe destination blockchain of the token to onramp for.
destinationCryptoTypestringThe crypto type for the destination blockchain
useSandbox (optional)booleanWhether to test onramp or perform a live onramp. If set to true, please use a sandbox Halliday API Key.