Prerequisites
Get API Keys
Sign up at dashboard.daya.co and generate sandbox API keys.You’ll receive:
- Sandbox API Key: For testing
- Production API Key: For live transactions (after KYB approval)
Pick a flow to get started:
- NGN to Crypto (Onramp)
- Crypto to NGN (Offramp)
Accept Naira and settle as stablecoins
1. Fetch a BUY rate
Get a firm quote for converting NGN to USDC:Save the
rate_id — it’s valid for ~30 minutes and you’ll need it to create the onramp.2. Create an onramp
Provision a temporary virtual account that your customer will pay into:3. Simulate a deposit (Sandbox)
In sandbox, trigger a test deposit using the sandbox deposit endpoint.4. Track the deposit
Poll the deposits endpoint, or better yet, set up webhooks:Set Up Webhooks
Instead of polling, receive real-time updates for both flows:- Configure your webhook URL in the dashboard
- Listen for lifecycle events:
Common Issues
rate_id expired
rate_id expired
Rates are valid for ~30 minutes. Always fetch a fresh rate right before creating an onramp or offramp.
Deposit flagged after transfer
Deposit flagged after transfer
Deposits after the virtual account expires are flagged. Ensure customers complete transfers promptly.
Invalid destination address
Invalid destination address
Verify the address format matches the specified chain. See Supported Chains.
Invalid bank account rejected
Invalid bank account rejected
Always resolve bank accounts with
POST /v1/banks/resolve before using them in offramp settlement. Invalid accounts are rejected at offramp creation.Next Steps
Core Concepts
Understand onramps, offramps, deposits, and payouts
Authentication
Secure your API requests
Supported Chains
View all supported networks and tokens