# Developer Platform

<h2 align="center">Welcome to the xPlug Documentation</h2>

<p align="center">Your gateway to x402 mass adoption on Solana.</p>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-leaf">:leaf:</i></h4></td><td>Getting Started</td><td>Understand the xPlug ecosystem and how Plug-and-Pay works.</td><td><a href="/spaces/7A6NnnNL0H7qToO1K4ie">/spaces/7A6NnnNL0H7qToO1K4ie</a></td><td><a href="/files/LHIOZGoI6dPF36TuRaxH">/files/LHIOZGoI6dPF36TuRaxH</a></td></tr><tr><td><h4><i class="fa-server">:server:</i></h4></td><td>xPlug SDK</td><td>Developer toolkit for Solana + x402 integration.</td><td><a href="/spaces/7A6NnnNL0H7qToO1K4ie">/spaces/7A6NnnNL0H7qToO1K4ie</a></td><td><a href="/files/IaUMODRBBSBL8eUaPX09">/files/IaUMODRBBSBL8eUaPX09</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td>Facilitator API</td><td>High-availability infrastructure for x402 payments.</td><td><a href="/spaces/LVrYk64YaW5mGI1GdxrC">/spaces/LVrYk64YaW5mGI1GdxrC</a></td><td><a href="/files/ebMoLMpZFyLqpzByuzrk">/files/ebMoLMpZFyLqpzByuzrk</a></td></tr></tbody></table>

{% columns %}
{% column %}

### Start building with xPlug in minutes

Getting started with xPlug SDK takes just a few lines of code. Connect your Solana app to x402 for verified, trustless payments fast, simple, and secure.

No setup friction. No manual validation. Just Plug and Pay.

<a href="/spaces/7A6NnnNL0H7qToO1K4ie" class="button primary" data-icon="rocket-launch">Get started</a> <a href="/spaces/LVrYk64YaW5mGI1GdxrC" class="button secondary" data-icon="terminal">Facilitator API</a>
{% endcolumn %}

{% column %}
{% code title="index.js" overflow="wrap" %}

```javascript
// Import the SDK
import ExampleAPI from "example-api";

// Initialize the client
const client = new ExampleAPI({ apiKey: "YOUR_API_KEY" });

// Send your first message
const response = await client.messages.send({
  message: "Hello, world!"
});

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

<figure><img src="https://gitbookio.github.io/onboarding-template-images/placeholder.png" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

### Learn more about xPlug ecosystem

Explore detailed guides and API documentation for both developers and non-technical users.

<a href="/pages/JsKd452Nu8XTrHz68zaF" class="button primary" data-icon="book-open">Guides</a> <a href="/spaces/7A6NnnNL0H7qToO1K4ie" class="button secondary" data-icon="book">Documentation</a>
{% endcolumn %}
{% endcolumns %}

<h2 align="center">Join the xPlug Community</h2>

<p align="center">Be part of the movement bringing x402 mass adoption to Solana.</p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-x-twitter">:x-twitter:</i></h4></td><td>Follow to explore how x402 payments reach everyone on Solana. The era of Plug and Pay begins.</td><td><a href="https://x.com/xPlugio" class="button secondary">Follow</a></td><td></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td>xPlug is built by developers, for developers.<br>Explore github to start integrating x402 on Solana today.</td><td><a href="https://github.com/xplugio" class="button secondary">Open Github</a></td><td></td></tr></tbody></table>


---

# 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/readme.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.
