# Common Frontend Flows

#### Fiat On-Ramp Flow

1. Call `getDepositBankAccount` with the user's chosen currency.
2. Display the returned bank details (account number, routing number, bank name) in your UI with copy-to-clipboard buttons.
3. The user initiates a wire or ACH from their bank using those details.
4. Poll or listen for the deposit to be credited on the backend.

#### Crypto On-Ramp Flow

1. Call `getDepositWallet` with the participant code, desired currency, and network.
2. Render the wallet address as both text and a QR code.
3. The user sends crypto from their external wallet to the displayed address.

#### OTC Conversion Flow

1. Call `getQuote` to fetch current pricing for the trading pair and quantity.
2. Display the rate, fees, and expected output to the user.
3. On confirmation, execute the trade using the returned quote reference.

#### Third-Party Payout Flow

1. Collect recipient bank info from the user (name, account number, SWIFT, bank name).
2. Call `createThirdPartyWithdrawalRequest` with the full payload including compliance fields.
3. Store the response and `clientReference` for reconciliation.
4. Surface the withdrawal status in your transaction history UI.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://city-protocol.gitbook.io/docs/software-development-kit/on-off-ramp-module/common-frontend-flows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
