Skip to main content

Quickstart

This guide walks you through your first Zet API integration — creating a wallet and buying crypto with NGN.

Prerequisites

Step 1: Get your API key

Reach out to zetdotmoney@gmail.com to request API access. Our team will provision your credentials. You’ll receive:
  • API Key (zet_live_...) — include in every request as the x-api-key header
  • API Secret (zet_secret_...) — used to verify webhook signatures (keep this secret!)
Never expose your API key or secret in client-side code. All Zet API calls should be made from your backend server.

Step 2: Create a wallet

Create a Smart Wallet for your user:
Response:
The wallet is lazily deployed — the on-chain smart contract deploys automatically on the first transaction, with gas sponsored by Zet.

Step 3: Get an on-ramp quote

Get a quote for buying USDC with 50,000 NGN:
Response:

Step 4: Initiate the on-ramp

Use the quoteId to start the transaction:
Response:
Display the depositAccount details to your user so they can send the NGN via bank transfer.

Step 5: Handle the webhook

Once the user’s bank transfer arrives and crypto is delivered, Zet sends a webhook to your registered URL:
Verify the x-zet-signature header using your API secret:

Next steps

Authentication

Learn about API keys, rate limits, and security best practices.

Off-ramp guide

Let users sell crypto for NGN to their bank account.

Swap guide

Build a token swap feature into your app.

Webhooks guide

Set up robust webhook handling for production.