> ## Documentation Index
> Fetch the complete documentation index at: https://developer.obiex.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Off-ramping

> Convert cryptocurrency to fiat and pay out to bank accounts

Off-ramping lets you convert crypto held in your Obiex wallet into local fiat currency and send it directly to a bank account. This is useful for businesses that collect crypto payments and need to settle in local currency, or platforms that offer crypto-to-cash withdrawals for their users.

## How it works

<Steps>
  <Step title="Check your wallet balance">
    Use the wallet balance endpoint to confirm you have sufficient funds before initiating a withdrawal.
  </Step>

  <Step title="Swap to a fiat-pegged currency (optional)">
    If your wallet holds a volatile asset like BTC, you can use the RFQ trading system to swap it to a stable currency like USDT before withdrawing.
  </Step>

  <Step title="Initiate a fiat withdrawal">
    Make a request to the fiat withdrawal endpoint with the destination bank account details and amount. Obiex handles the conversion and bank transfer.
  </Step>

  <Step title="Track the withdrawal">
    Monitor the withdrawal status via the transactions endpoint or listen for webhook events. Once the withdrawal reaches `SUCCESSFUL`, the funds have been sent to the bank account.
  </Step>
</Steps>

## Key endpoints

| Method | Endpoint                         | Description                                   |
| ------ | -------------------------------- | --------------------------------------------- |
| GET    | `/wallets/{currencyCode}`        | Check wallet balance before withdrawing       |
| GET    | `/ngn-payments/banks`            | List supported Nigerian banks and their codes |
| GET    | `/ngn-payments/accounts/resolve` | Verify a bank account before sending          |
| POST   | `/wallets/ext/debit/fiat`        | Initiate a fiat withdrawal to a bank account  |
| GET    | `/transactions/{transactionId}`  | Check withdrawal status                       |
