> For the complete documentation index, see [llms.txt](https://dev.simplepay.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.simplepay.ai/docs/introduction/core-concepts/non-custodial.md).

# Non-Custodial

## **User Ownership**

The non-custodial paradigm represents a cornerstone of blockchain-based financial ecosystems, emphasizing user sovereignty and security. Within the SimplePay framework, this concept eliminates reliance on intermediaries for fund custody, ensuring that transactions occur directly between users and merchants. This approach not only enhances transparency but also reduces systemic risks associated with centralized control.

<img src="/files/5tBoiXt5hDT5SOZcQTp7" alt="" class="gitbook-drawing">

Funds remain under the exclusive control of the user until a transaction is authorized and executed. This eliminates the risk of funds being frozen, misappropriated, or lost due to third-party failures.

### **Decentralized Transactions**

* Payments are processed directly on the blockchain, leveraging its decentralized nature to ensure transparency and security.
* The protocol validates transactions using on-chain mechanisms, bypassing custodial intermediaries.

### **Risk Mitigation**

* By removing third-party custodianship, the system minimizes exposure to hacking, regulatory interventions, and counterparty risks.
* Users and merchants can transact with confidence, knowing that funds are secure throughout the process.

### **Privacy and Autonomy**

* Non-custodial models prioritize user privacy by reducing data sharing requirements.
* Users retain full autonomy over their assets, making this model ideal for decentralized financial operations.

## Workflow in SimplePay

1. **Wallet Integration:**
   * Users connect their cryptocurrency wallets directly to SimplePay via WalletConnect or similar protocols.
   * This ensures that only the user has access to private keys, which remain locally stored on their device.
2. **Transaction Authorization:**
   * Payments are initiated by the user, who authorizes the transaction from their wallet.
   * The system generates a cryptographic signature for validation, ensuring authenticity and integrity.
3. **On-Chain Validation:**
   * The SimplePay protocol validates the transaction by querying the blockchain for:
     * Accuracy of the payment amount.
     * Match between the sender’s address and the transaction details.
   * Any discrepancies result in an error message, prompting users to correct the transaction.
4. **Direct Settlement:**
   * Funds are transferred directly to the merchant’s wallet upon successful validation.
   * No intermediary holds or processes the funds, ensuring immediate availability to the recipient.

***

## Advantages

### **Enhanced Security**

* Eliminates the risk of hacks targeting centralized custodians.
* Transactions are cryptographically secure and immutable.

### **Cost Efficiency**

* Reduces fees associated with third-party custody and processing.
* Direct settlement minimizes overhead and operational complexities.

### **Global Accessibility**

* Enables users across jurisdictions to transact without dependence on localized financial infrastructure.

***

SimplePay highlights the simplicity and security of non-custodial transactions, removing the need for intermediary involvement while ensuring a seamless user experience.


---

# 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 dynamically by asking a question.

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

```
GET https://dev.simplepay.ai/docs/introduction/core-concepts/non-custodial.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
