Onramp to any token on any chain
Implementing onramping from fiat to a crypto asset is a challenging endeavor for the developer. Halliday makes this easy by integrating global on and offramp providers and utilizing a noncustodial cross-chain workflow protocol. Workflows can include onramping, offramping, swapping, and even custom actions. The Payments SDK widget UI features a ramp optimized for conversion with a simple drop-in integration. The following is the order of operations in an onramp workflow using the Halliday API.- Confirm that there is a valid route for the input and output tokens using the API.
- Request up-to-date quotes by passing the set of providers to use (Moonpay, Stripe, Coinbase, et al) as well as the input fiat currency and amount to the API.
- Select a quote returned from the API and accept it by passing the payment ID, state token, owner address and destination address to the API.
- The onramp provider checkout URL will be in the response. The user will choose their method of payment, provide payment info, and in their first purchase with the provider, input KYC information. After checkout, the onramp provider will fund the payment with tokens onchain automatically.
- Poll the status endpoint using the payment ID to monitor the progress of the onramp until it completes onchain.
Onchain and cross-chain token swaps
Single and cross-chain swaps are core features of Halliday Payments, enabled by the workflow protocol. The following is the order of operations of a token swap using the API.- Confirm that there is a valid route for the input and output tokens using the API.
- Request up-to-date quotes by passing the input and output tokens as well as the input token amount to the API.
- Select a quote returned from the API and accept it by passing the payment ID, state token, owner address and destination address to the API.
- Using the deposit details in the next instruction, transfer input tokens from the funder to the payment deposit address.
- Poll the status endpoint using the payment ID to monitor the progress of the swap until it completes onchain.

