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 bankPrerequisites
- 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
Display payment instructions
Monitor completion
Grid sends a webhook when the transfer completes:Off-ramp: Crypto to fiat
Create and execute a quote
Track completion
Immediate execution
For instant on-ramps (e.g., reward payouts), useimmediatelyExecute: true
:
Best practices
Handle quote expiration
Handle quote expiration
Settlement times by payment rail
Settlement times by payment rail
Handle failed transactions
Handle failed transactions