Skip to main content

Overview

Grid enables seamless conversion between fiat currencies and cryptocurrencies via the Lightning Network. Use quotes to lock exchange rates and get payment instructions for completing transfers. On-ramp (Fiat → Crypto): User sends fiat → Grid detects payment → Crypto sent to wallet Off-ramp (Crypto → Fiat): Execute quote → Grid processes crypto → Fiat sent to bank

Prerequisites

  • Customer created in Grid
  • On-ramps: Destination crypto wallet (Spark address) + webhook endpoint
  • Off-ramps: Internal account with crypto + external bank account registered

On-ramp: Fiat to crypto

Create a quote

First, create an external account for the crypto destination:
cURL
Then create a quote using the external account ID:
cURL
Response includes payment instructions:

Display payment instructions

Monitor completion

Grid sends OUTGOING_PAYMENT.<STATUS> webhooks as the transaction progresses:
See the Transaction Lifecycle guide for all status transitions and refund handling.

Off-ramp: Crypto to fiat

Create and execute a quote

Track completion

Immediate execution

For instant on-ramps (e.g., reward payouts), use immediatelyExecute: true with an internal account source:
cURL
immediatelyExecute can only be used with sources that are either internal accounts or external accounts with direct pull functionality (e.g., ACH pull).

Best practices

Next steps