Skip to content

Commit 8a78a2d

Browse files
author
1bcMax
committed
Update README: Base as primary chain, add XRPL support docs
1 parent c284a96 commit 8a78a2d

1 file changed

Lines changed: 52 additions & 6 deletions

File tree

README.md

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# BlockRun LLM SDK
22

3-
Pay-per-request access to GPT-5.2, Claude 4, Gemini 2.5, Grok, and more via x402 micropayments on Base.
3+
Pay-per-request access to GPT-5.2, Claude 4, Gemini 2.5, Grok, and more via x402 micropayments.
44

55
**BlockRun assumes Claude Code as the agent runtime.**
66

7-
**Networks:**
8-
- **Mainnet:** Base (Chain ID: 8453) - Production with real USDC
9-
- **Testnet:** Base Sepolia (Chain ID: 84532) - Developer testing with testnet USDC
7+
## Supported Chains
108

11-
**Payment:** USDC
12-
**Protocol:** x402 v2 (CDP Facilitator)
9+
| Chain | Network | Payment | Status |
10+
|-------|---------|---------|--------|
11+
| **Base** | Base Mainnet (Chain ID: 8453) | USDC | ✅ Primary |
12+
| **Base Testnet** | Base Sepolia (Chain ID: 84532) | Testnet USDC | ✅ Development |
13+
| **XRPL** | XRP Ledger Mainnet | RLUSD | ✅ New |
14+
15+
**Protocol:** x402 v2
1316

1417
## Installation
1518

@@ -267,6 +270,49 @@ client = LLMClient(api_url="https://testnet.blockrun.ai/api")
267270
response = client.chat("openai/gpt-oss-20b", "Hello!")
268271
```
269272

273+
## XRPL Chain (RLUSD Payments)
274+
275+
BlockRun now supports payments with RLUSD on the XRP Ledger. Same models, same API - just a different payment rail.
276+
277+
```python
278+
from blockrun_llm import xrpl_client
279+
280+
# Create XRPL client (pays with RLUSD)
281+
client = xrpl_client() # Uses BLOCKRUN_WALLET_KEY
282+
283+
# Chat with any model
284+
response = client.chat("openai/gpt-4o", "Hello!")
285+
print(response)
286+
287+
# Check RLUSD balance
288+
balance = client.get_balance()
289+
print(f"RLUSD: ${balance:.4f}")
290+
```
291+
292+
### Async XRPL Usage
293+
294+
```python
295+
import asyncio
296+
from blockrun_llm import async_xrpl_client
297+
298+
async def main():
299+
async with async_xrpl_client() as client:
300+
response = await client.chat("openai/gpt-4o", "Hello!")
301+
print(response)
302+
303+
asyncio.run(main())
304+
```
305+
306+
### Manual XRPL Configuration
307+
308+
```python
309+
from blockrun_llm import LLMClient
310+
311+
# Or configure manually
312+
client = LLMClient(api_url="https://xrpl.blockrun.ai/api")
313+
response = client.chat("openai/gpt-4o", "Hello!")
314+
```
315+
270316
## Environment Variables
271317

272318
| Variable | Description | Required |

0 commit comments

Comments
 (0)