# xPlug SDK

xPlug SDK is the developer toolkit that connects applications on Solana with the x402 payment protocol. It allows builders to integrate verified, gasless, and trustless payments into their dApps with minimal setup and zero friction.

While xPlug Pay is built for everyday users, xPlug SDK is built for developers who want to power their apps with the same “Plug and Pay” simplicity.

### How It Works (Conceptually)

xPlug SDK acts as the bridge between a developer’s application and the xPlug ecosystem:

1. A developer integrates the SDK into their Solana app.
2. When a user sends a payment, the SDK communicates directly with the xPlug Facilitator.
3. The Facilitator verifies the transaction through x402, ensures it’s valid, and records it securely on-chain.
4. The result: instant, verified payments without gas or manual validation.

### Key Benefits

* **Plug-and-Play Integration** Developers can enable x402 payments in minutes, not weeks.
* **Trustless by Default** Every transaction is verified on-chain via x402.
* **Gasless Transactions** Facilitators cover transaction fees, ensuring smooth UX for users.
* **Solana-Native** Built to fully leverage Solana’s speed, cost efficiency, and scalability.
* **Developer-Friendly** Simple setup, clear documentation, and ready-to-use modules.


---

# 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.xplug.io/docs/products-overview/xplug-sdk.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.
