Use a dedicated test institution, API key, and Base wallet. Complete KYB, beneficial owner verification, wallet provisioning, and address approval in the dashboards before calling the Developer API.

Required API scopes

Set VANTAGE_API_ORIGIN to the approved development environment. Use the request helper from Request signing.

1. Find the USDC deposit wallet

Send native Base USDC to the returned address. Wait until the deposit is confirmed and GET /collateral/position shows enough borrowing capacity.

2. Create and accept a quote

Create a cNGN quote with a unique external_id. Accept it within 45 seconds using the approved Base address and a stable Idempotency-Key.

3. Reconcile payout

Poll GET /loans/applications/{application_id}, then GET /loans/loans?status=active. Match the loan by application_id. Confirm its cngn_payout_tx_hash succeeds on Base and the payout wallet receives the expected cNGN amount.

4. Repay

Read the loan immediately before payment. Send exactly payoff_amount_ngn in cNGN from the approved payout wallet to cngn_repayment_address. Do not submit an offchain repayment notice. Poll the loan until Vantage detects and confirms the receipt and status becomes closed.

5. Reconcile collateral return

Confirm one native Base USDC transfer reaches the approved USDC return address. Record the deposit, payout, repayment, and return transaction hashes. The test passes only if each movement occurs once, balances reconcile, and repeating read or reconciliation tasks causes no additional transfer.