# Developer Platform

<h2 align="center">RailBridge AI Documentation</h2>

<p align="center">The Interoperability Layer for Agentic Commerce</p>

{% columns %}
{% column width="50%" %}

### Get started in 5 minutes

Setting up your first API call should be the easiest part of getting started. Compliant with Coinbase's x402 standard.

No guesswork, no complexity. Just your first successful agentic payment.&#x20;

<a href="/spaces/0qKSt55rjBTBXsOayqrg" class="button primary" data-icon="rocket-launch">Get started</a> <a href="/spaces/0qKSt55rjBTBXsOayqrg/pages/CMxQRprlZuNtAveIlGig" class="button secondary" data-icon="book">Documentation</a>
{% endcolumn %}

{% column width="50%" %}
{% code title="client.js" overflow="wrap" lineNumbers="true" expandable="true" %}

```javascript
// Create signer from private key
const signer = privateKeyToAccount(process.env.CLIENT_PRIVATE_KEY as `0x${string}`);

// Create viem wallet client for signing
const viemClient = createWalletClient({
  account: signer,
  chain: baseSepolia,
  transport: http(process.env.EVM_RPC_URL || "https://sepolia.base.org"),
});

// Create x402 client
const client = new x402Client();

// Register EVM scheme - this is all you need!
// Works for both same-chain and cross-chain payments
registerExactEvmScheme(client, { signer });

// Wrap fetch with payment handling
const fetchWithPayment = wrapFetchWithPayment(fetch, client);

// Make payment-protected request
const response = await fetchWithPayment("http://localhost:4021/api/premium");

```

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

<h2 align="center"></h2>

<p align="center">Follow our X for more updates or read more in our Github.</p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><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>X</td><td>Join our Discord community to post questions, get help, and share resources with over 3,000 like-minded developers.</td><td><a href="https://x.com/RailBridgeAI" class="button secondary">Follow X</a></td><td></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><strong>GitHub</strong></td><td>Head over to look into our codebase at Github </td><td><a href="https://github.com/MarcoBrian/RailBridge" class="button secondary">View Repository</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.railbridge.ai/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.
