> For the complete documentation index, see [llms.txt](https://docs.useglade.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.useglade.org/architecture/how-it-fits-together.md).

# How the pieces fit together

Glade provides confidential payments for people and for the software that acts for them. It runs on Robinhood Chain. Privacy comes from Glade's own confidential token contracts, an ERC-20 with encrypted balances that follows the Zether line of designs. The EVM offers nothing like this natively, so Glade wrote the contract layer itself and verified it on-chain. Glade also differs from a typical fintech in that it keeps no settlement ledger of its own. Robinhood Chain is the ledger, with Ethereum underneath it.

## What the system is responsible for

| Area                   | How it works                                                                                                                                             |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Custody and signing    | Each account is an ERC-4337 smart account controlled by a keypair generated on the client. The keys never reach Glade.                                   |
| Confidential transfers | Amounts are encrypted by the token contracts. Proofs are produced on the client.                                                                         |
| Gas abstraction        | Every account holds a small ETH float that refills through an internal swap when it gets low. Users only deal in USDG and never have to think about gas. |
| Agent policy           | Spend policies are checked by the agent's client during signing and enforced on-chain by the `AgentController` contract.                                 |
| Indexing               | An off-chain indexer reads contract event streams and feeds both the live activity feed and webhooks. Nothing polls.                                     |

The design rests on one split. Questions that need trust, such as who owns which funds or whether a transfer is valid, are settled by Robinhood Chain and Glade's on-chain contracts. The rollup's fraud-proof settlement then ties that correctness back to Ethereum. The rest (rendering, notifications, indexing) is convenience layered on top and is never the source of truth.

## The layers


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.useglade.org/architecture/how-it-fits-together.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
