# Behind the Scenes

When a user clicks a Universal Access Schema link, the following sequence happens automatically:

#### 1. Gateway loads context

* Detects the chain slug
* Loads the token contract
* Confirms the asset is cleared by Smart Guardrails
* Prepares available payment options (fiat or crypto)

#### 2. User completes payment

The user pays using:

* Cards
* Apple Pay / Google Pay
* Local payment methods
* Native crypto (where supported)

#### 3. Gateway verifies payment

Payment confirmation triggers a **BuyIntent** that is sent to OPN.

#### 4. OPN executes deterministically

OPN handles all on-chain settlement:

* Sources liquidity from the asset’s home chain
* Performs native DEX execution
* Avoids bridges, wrappers, and intermediaries
* Enforces deterministic settlement rules

#### 5. Final settlement to the user’s wallet

OPN sends the purchased token directly to the user’s wallet:

* No custody
* No pooled funds
* No manual approvals
* No extra transactions

#### Summary

The entire backend collapse into one principle:

**The URL encodes the intent.**\
**Gateway interprets it.**\
**OPN fulfills it.**

This is why the Universal Access Schema works across wallets, bots, sites, and everywhere a link can exist.


---

# 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://docs.onchain.money/getting-started/integrating-uas/behind-the-scenes.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.
