# Nexus Pay — Complete Guide for AI Agents
**v2.3 | Updated: 2026-05-03**

> This document teaches you (an AI Agent) how to integrate Nexus Pay from scratch and autonomously handle USDC/USDT payments on-chain.
> After reading this, you will be able to: register an account, complete KYC, configure MCP, check balances, send payments, auto-pay for web services, manage spending policies, and query transaction history.

---

## Quick Start (Do This First)

If you haven't registered yet, jump to [Section 3](#3-registration--setup--step-by-step) first.

After registration is complete and the MCP server is configured:

```
Step 1: Call get_agent_info() → returns your agent_id, wallet_ids, and wallet addresses
Step 2: Save to memory in this format:
        "Nexus IDs — agent_id: 019de338-..., 
         Base USDC wallet_id: 019de338-..., address: 0xa3b608...,
         Solana USDT wallet_id: 019de339-..., address: RVBhCQ..."
Step 3: Call get_balance(wallet_id="...") → should return 0 for a new wallet
Step 4: You're ready. Ask your human to fund the wallet, then start paying.
```

**Important**: The `get_agent_info` tool requires NO parameters. It returns everything you need based on your API key. If you don't see this tool in your tool list, restart Hermes to reload MCP tools.

---

## Table of Contents

1. [What is Nexus Pay](#1-what-is-nexus-pay)
2. [Architecture](#2-architecture)
3. [Registration & Setup — Step by Step](#3-registration--setup--step-by-step)
4. [Core Concepts](#4-core-concepts)
5. [MCP Tool Reference](#5-mcp-tool-reference)
6. [Funding Your Wallet](#6-funding-your-wallet)
7. [Common Workflows](#7-common-workflows)
8. [Security & Best Practices](#8-security--best-practices)
9. [Troubleshooting](#9-troubleshooting)
10. [Appendix: Supported Chains](#10-appendix-supported-chains)

---

## 1. What is Nexus Pay

Nexus Pay is AI Agent payment infrastructure by Legend AI Pay. It gives you (an AI Agent) your own crypto wallet to:

- **Hold stablecoins** (USDC / USDT)
- **Send payments to any wallet address** (Base chain / Solana chain)
- **Auto-pay for web services** (x402 and MPP protocols)
- **Set spending policies** (limits, whitelists, frequency caps)
- **Query transaction history**

Everything is exposed via MCP (Model Context Protocol) tools — no REST API calls needed.

---

## 2. Architecture

```
Human (your user)
    ↓ instruction
AI Agent (you)
    ↓ MCP tool call
Nexus MCP Server (https://nexus.legendpay.com/api/mcp/pay)
    ↓ on-chain operation
Blockchain (Base / Solana)
```

Key roles:
- **Account**: Your human's account on Nexus, registered with email
- **Agent**: An AI Agent entity under the account. Each Agent has a unique `agent_id` (UUID)
- **Wallet**: Each Agent gets wallets automatically — one per chain. Each has a `wallet_id` (UUID) and an on-chain address
- **API Key**: Starts with `lpay_sk_`, used to authenticate MCP requests

---

## 3. Registration & Setup — Step by Step

This section is your detailed playbook. You (the AI Agent) will drive the entire registration process using `browser_navigate`, `browser_type`, `browser_click`, and other browser tools. Your human only needs to provide the email address and the ID/selfie photos.

### 3.1 Overview of the Registration Flow

The onboarding page at `https://nexus.legendpay.com/onboard/hermes` has 3 steps:

```
Step 1: Create Account  →  Step 2: Verify Identity (KYC)  →  Step 3: Get API Key
```

### 3.2 Step 1 — Create Account

Navigate to the onboarding page:

```
browser_navigate("https://nexus.legendpay.com/onboard/hermes")
```

You will see a form with these fields:

| Field | What to enter |
|-------|---------------|
| **Name** | Your agent name (e.g. "Hermes Agent", "Fancy Agent") |
| **Email** | The email your human provides |
| **Password** | Generate a strong password (see below) |
| **Confirm Password** | Same password again |

**Generate a secure password** using terminal:
```bash
openssl rand -base64 16
```
This gives you something like `Z-D5pg3Q4HfnHLvyfmS_Lw`. Save it — you'll need it for the dashboard later.

Fill the form with `browser_type` and click "Create Account" with `browser_click`.

> **Session recovery**: If your browser session is lost mid-registration (page refresh, timeout, etc.), log in at `https://nexus.legendpay.com/login` with the credentials you saved, then navigate back to `/onboard/hermes` — it will resume from where you left off.

**⚠️ Save the credentials immediately** — write them to a file in your workspace (e.g. `$HERMES_HOME/nexus_credentials.txt` or a location appropriate for your Hermes profile) or save via the `memory` tool. Do NOT paste them in chat.
```
Account: user@example.com
Password: Z-D5pg3Q4HfnHLvyfmS_Lw
```

### 3.3 Step 2 — KYC Identity Verification

After account creation, the page advances to the KYC form. This has **4 sub-steps**:

#### Sub-step 2a: Personal Information Form

The form has these fields (in order from top to bottom):

| Field | Type | What to enter |
|-------|------|---------------|
| **First Name** | text input | Human's first name |
| **Last Name** | text input | Human's last name |
| **Email** | text input (pre-filled) | Already filled from Step 1 |
| **Date of Birth** | date input | Format: `YYYY-MM-DD` (e.g. `1990-01-15`) |
| **Country** | dropdown | Select the appropriate country (defaults to "United States") |
| **State / Province** | dropdown | Appears after country is selected. Select state. |
| **City** | text input | City name |
| **Street Address** | text input | Street address |
| **Zip Code** | text input | Postal code |
| **Citizenship** | dropdown | Usually auto-fills based on Country |
| **Place of Birth** | dropdown | Usually auto-fills based on Country |
| **SSN** | text input | 9-digit SSN (placeholder says "9-digit SSN") |

**Practical tips from experience:**

1. **The form is long** — you may need to `browser_scroll("down")` to see all fields below the Country dropdown.
2. **The Country dropdown has 190+ options** which **WILL** truncate your `browser_snapshot` — fields below it won't be visible. After selecting country, use `browser_console` to fill remaining fields via JS rather than trying to find their ref IDs:

```javascript
// Example: Fill a React-controlled text input via browser_console
// Use native setter to trigger React state updates
const setter = Object.getOwnPropertyDescriptor(
  window.HTMLInputElement.prototype, 'value'
).set;

// Best approach: use browser_snapshot first to get ref IDs,
// then use browser_type(ref="e42", text="San Francisco").
// Only fall back to JS when browser_type doesn't update React state.

// To find elements in JS, get all inputs in order:
const inputs = document.querySelectorAll('input:not([type="hidden"])');
// inputs[0]=first_name, [1]=last_name, [2]=email, [3]=date,
// [4]=city, [5]=address, [6]=zipcode, [7]=ssn (approximate order)

setter.call(inputs[4], 'San Francisco');
inputs[4].dispatchEvent(new Event('input', {bubbles: true}));
inputs[4].dispatchEvent(new Event('change', {bubbles: true}));

// For dropdowns (select elements):
const selects = document.querySelectorAll('select');
// selects[0]=country, [1]=state, [2]=citizenship, [3]=place_of_birth

// State values use FULL NAMES (e.g. 'California', not 'CA').
// Check available options first:
// Array.from(selects[1].options).map(o => o.value)
selects[1].value = 'California';
selects[1].dispatchEvent(new Event('change', {bubbles: true}));
```

3. **React forms require special handling**: Simple `element.value = 'x'` won't work for React-controlled inputs. You must use the native property setter as shown above, then dispatch both `input` and `change` events with `{bubbles: true}`.

4. **Ask your human** for the personal details if you don't have them. Don't make up real PII — ask:
   > "I need your personal details for KYC: full name, date of birth, address, and SSN. Please send them here."

Click "Continue →" when all fields are filled.

#### Sub-step 2b: Upload ID Document

After submitting personal info, you'll see:

```
Upload ID document
Passport, driver's license, or national ID
JPG, PNG, or PDF up to 20MB
[Upload button]
[Upload & Continue] (disabled until file selected)
```

**🔑 This is where you need your human's help.** You cannot generate a real ID photo. Ask your human:

> "I need a photo of your ID document (passport, driver's license, or national ID card) for KYC verification. Please send it here as an image."

**Once the human sends the photo via Telegram/Discord/etc:**

The image is saved to your local filesystem. Check the message metadata for the file path — on Hermes it's typically under `~/.hermes/image_cache/` or the path shown in the message attachment info.

**Step-by-step file upload process:**

1. **Find the image path** from the received message (e.g. `/home/user/.hermes/image_cache/photo_123.jpg`)

2. **Base64-encode it** via terminal:
   ```bash
   base64 -i /path/to/image.jpg | tr -d '\n'
   ```

3. **Set the base64 data in the browser** via `browser_console`:
   ```javascript
   window._b64data = "iVBORw0KGgo...the full base64 string...";
   ```

4. **Inject the file into the file input** via `browser_console`:
   ```javascript
   (async () => {
       const binary = atob(window._b64data);
       const bytes = new Uint8Array(binary.length);
       for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
       const blob = new Blob([bytes], { type: 'image/jpeg' });
       const file = new File([blob], 'id_document.jpg', { type: 'image/jpeg' });
       const fileInput = document.querySelector('input[type="file"]');
       const dt = new DataTransfer();
       dt.items.add(file);
       fileInput.files = dt.files;
       fileInput.dispatchEvent(new Event('change', { bubbles: true }));
   })();
   ```

5. **Verify** — use `browser_snapshot` to confirm the filename and file size appear on the page

6. **Click "Upload & Continue"** via `browser_click`

**⚠️ Why not just click the upload button?** `browser_click` on a file input opens a native OS file picker that you cannot interact with. The `DataTransfer` approach above bypasses the picker entirely.

#### Sub-step 2c: Upload Selfie

Same process as the ID document, but for a selfie photo.

```
Take a selfie
For identity verification
Must clearly show your face
[Upload button]
[Upload & Continue] (disabled until file selected)
```

Ask your human:
> "Now I need a selfie photo for identity verification. Please send a clear photo of your face."

Use the same JavaScript upload technique as Sub-step 2b.

#### Sub-step 2d: Compliance Questionnaire

After both uploads, you'll see a questionnaire with checkboxes and radio buttons. **Always use `browser_snapshot` first** to see the actual questions and options — do not hardcode which checkboxes to click, as the content varies by country/jurisdiction. Typical US questions include:

**Question 1: "How will you use this trading account?"** (checkboxes, select one or more)
- Short term savings/investing
- Long term savings/investing
- Actively trade
- Remittance payments
- Other: [text input]

**Question 2: "What's your source of income?"** (checkboxes)
- Employment Income
- Investment Income
- Retirement Income
- Social Security
- Unemployed
- Other: [text input]

**Question 3: "What's your source of wealth?"** (checkboxes)
- Income from Own Business or Sale of Business
- Income from Employment and/or Bonuses
- Inheritance or Family, Gift, Trust Proceeds
- Securities Investing
- Compensation Payment/Legal Settlement
- Sale of Real Property
- Household Wealth
- Other: [text input]

**Question 4: "What is your employment status?"** (radio buttons, select one)
- Employed (Not Owner)
- Business Owner
- Not Employed
- Student
- Retired

**How to answer**: Use `browser_snapshot` to see the actual options, select reasonable answers based on your human's situation. If unsure, ask your human. The number of questions, wording, and options may differ from the examples above. Click "Continue" when done.

#### Sub-step 2e: Review & Submit

A summary page shows: Personal Info, ID Document, Selfie, Questionnaire.

Click **"Submit for Verification"**.

#### Sub-step 2f: Waiting for KYC Approval

After submission, the page shows:

```
Under review
Your identity verification is being reviewed. This usually takes 1-2 business days.
We'll email [your-email] when it's approved.
[Check status]
```

**While waiting:**
- Save the credentials file path and registration email to memory
- You cannot proceed with MCP setup until approval
- Check status periodically by navigating back to `/onboard/hermes` and clicking "Check status"
- Once approved, the page will advance to Step 3

### 3.4 Step 3 — Get API Key

After KYC approval, the page displays your API Key.

**⚠️ CRITICAL: The full API Key (`lpay_sk_...`) is shown ONLY ONCE at this moment.**
- Copy it immediately
- On the dashboard later, keys are displayed truncated (prefix only)
- If lost, you must regenerate (which revokes the old one)

### 3.5 Configure MCP Server

Add to your Hermes config file `~/.hermes/config.yaml`:

```yaml
mcp_servers:
  nexus:
    url: "https://nexus.legendpay.com/api/mcp/pay"
    headers:
      Authorization: "Bearer YOUR_API_KEY_HERE"
```

Replace `YOUR_API_KEY_HERE` with the API Key from Step 3.

### 3.6 Restart Hermes

Configuration changes require a Hermes Gateway restart:

```bash
# If managed by launchd
launchctl kickstart -k gui/$(id -u)/ai.hermes.gateway

# If running directly, stop and restart the process
```

### 3.7 Verify Setup

After restart, you should see these MCP tools available:
- `mcp_nexus_get_agent_info` ← **Call this first!**
- `mcp_nexus_get_balance`
- `mcp_nexus_create_payment`
- `mcp_nexus_get_payment_status`
- `mcp_nexus_list_transactions`
- `mcp_nexus_set_spending_policy`
- `mcp_nexus_create_agent`
- `mcp_nexus_x402_pay`
- `mcp_nexus_mpp_pay`

**First thing to do**: Call `get_agent_info()` (no parameters needed) to get your `agent_id`, `wallet_id`s, and wallet addresses. Save them to memory.

---

## 4. Core Concepts

### 4.1 Three Types of IDs

| ID Type | Format | Example | Used For |
|---------|--------|---------|----------|
| `agent_id` | UUID | `019de338-fa77-7260-a5b0-c04584007f38` | Payments, transactions, policies |
| `wallet_id` | UUID | `019de338-fa78-7a00-b123-abcdef123456` | Balance queries |
| Wallet address | Chain address | `0xa3b608...` (Base) or `RVBhCQ...` (Solana) | Receiving transfers |

**How to get these IDs**: Call `get_agent_info()` — it returns all of them. Save to memory immediately.

### 4.2 Balance States

The `get_balance` response has three fields:

| Field | Meaning |
|-------|---------|
| `posted` | Total confirmed balance |
| `hold` | Frozen/reserved amount (pending transactions) |
| `available` | Spendable balance = posted - hold |

**Always use `available` to check if you can pay.**

### 4.3 API Key Permission Levels

| Key Type | Can Do | Cannot Do |
|----------|--------|-----------|
| **Agent Key** (most common) | **get_agent_info** (your entry point), get_balance, create_payment, list_transactions, set_spending_policy, x402_pay, mpp_pay | create_agent (returns "Authentication required") |
| **User Key** | Everything above + create_agent | — |

`get_agent_info` works with both key types — it's the first tool you should call regardless of which key you have. If you get "Authentication required to create agents", your API key is an Agent Key. This is normal — agents are usually created during onboarding, not via MCP.

---

## 5. MCP Tool Reference

### 5.0 Get Agent Info — `get_agent_info`

**Call this first.** Returns your agent_id, wallet_ids, addresses, and balances. No parameters needed.

```
mcp_nexus_get_agent_info()
```

**Example response**:
```json
{
  "agents": [{
    "agent_id": "019de338-fa77-7260-a5b0-c04584007f38",
    "name": "Hermes Agent",
    "status": "active",
    "tags": ["hermes"],
    "wallets": [
      {
        "wallet_id": "019de338-fa78-7a00-b123-abcdef123456",
        "chain": "base",
        "currency": "USDC",
        "address": "0xa3b608a46560c4c24272c5a677ad6e33a8729dd5",
        "available_balance": "0.00"
      },
      {
        "wallet_id": "019de339-1b22-7c00-a456-789def012345",
        "chain": "solana",
        "currency": "USDT",
        "address": "RVBhCQjhEPpcbRXhrckeQkwQ4G5b2N77of5Kijs6tiev",
        "available_balance": "0.00"
      }
    ]
  }]
}
```

**Key fields to save to memory**: `agent_id`, each wallet's `wallet_id`, `chain`, and `address`.

### 5.1 Get Balance — `get_balance`

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `wallet_id` | string | Yes | Wallet UUID (from `get_agent_info`) |

```
mcp_nexus_get_balance(wallet_id="wallet-uuid-here")
```

### 5.2 Create Payment — `create_payment`

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `agent_id` | string | Yes | Agent UUID |
| `amount` | string | Yes | Decimal string (e.g. `"10.50"`) |
| `currency` | string | Yes | `"USDC"` or `"USDT"` |
| `chain` | string | Yes | `"base"` or `"solana"` |
| `receiver_address` | string | Yes | Destination wallet address |
| `memo` | string | No | Optional note |

```
mcp_nexus_create_payment(
    agent_id="...", amount="25.00", currency="USDC",
    chain="base", receiver_address="0xABC...123"
)
```

**Critical rules**:
1. **Amount as decimal string**: `"10.50"`, not integer `10` or minor units `10500000`
2. **Chain and address must match**: Base → `0x...` address, Solana → Base58 address. Never mix them.
3. **Always confirm before sending**: Show amount, currency, chain, address to user and get explicit approval
4. **Check balance first**: Call `get_balance` if unsure

### 5.3 Get Payment Status — `get_payment_status`

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `payment_id` | string | Yes | Payment UUID (from `create_payment`) |

Typical status flow: `pending` → `processing` → `completed` or `failed`

### 5.4 List Transactions — `list_transactions`

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `agent_id` | string | Yes | Agent UUID |
| `limit` | integer | No | Max results per page (default 20, max 50) |
| `page` | integer | No | Page number (default 1) |

Response includes pagination metadata: `total`, `page`, `per_page`, `has_more`.

### 5.5 Create Agent — `create_agent`

Creates a new Agent with wallets. **Requires a User Key** (not Agent Key).

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `name` | string | Yes | Agent name |
| `tags` | string[] | No | Tags |
| `daily_spend_limit` | number | No | Daily limit in USD |
| `monthly_spend_limit` | number | No | Monthly limit in USD |

**Note**: An Agent is already created during onboarding. You only need this if you want multiple agents for different purposes. If you get "Authentication required", your key is an Agent Key — this is expected.

### 5.6 Set Spending Policy — `set_spending_policy`

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `agent_id` | string | Yes | Agent UUID |
| `rules` | array | Yes | Policy rules |
| `priority` | integer | No | Priority (higher = checked first) |

Rule types:
- `{"type": "max_amount", "value": "100"}` — max per transaction
- `{"type": "whitelist", "value": ["0xABC...", "0xDEF..."]}` — allowed addresses only
- `{"type": "frequency", "value": "10/day"}` — rate limit

### 5.7 x402 Pay — `x402_pay`

Auto-pay for HTTP 402-protected web resources.

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `agent_id` | string | Yes | Agent UUID |
| `url` | string | Yes | URL of the x402-protected resource |

### 5.8 MPP Pay — `mpp_pay`

Machine Payments Protocol. Preferred over x402 when both are available.

| Param | Type | Required | Description |
|-------|------|----------|-------------|
| `agent_id` | string | Yes | Agent UUID |
| `url` | string | Yes | URL |
| `intent_id` | string | No | Resume a pending payment |
| `resume_payload` | object | No | Resume params (challenge_id, nonce, method, url) |

---

## 6. Funding Your Wallet

New wallets start at zero. Three ways to fund:

### 6.1 Credit Card (instant)
Ask your human to visit: `https://nexus.legendpay.com/dashboard/topup`

### 6.2 Bank Wire (1-3 business days)
Initiate via dashboard. Fiat is auto-converted to USDC on arrival.

### 6.3 Direct Transfer (depends on chain confirmation)
Send USDC/USDT directly to the agent's wallet address:
- Base chain: send to the `0x...` address
- Solana chain: send to the Base58 address

**Currency and chain must match** the wallet.

---

## 7. Common Workflows

### 7.1 "What's my balance?"
```
1. Get wallet_id from memory (or call get_agent_info if first time)
2. Call get_balance(wallet_id="...")
3. Report the "available" balance to user
```

### 7.2 "Send 25 USDC to 0xABC..."
```
1. Confirm: "Sending 25 USDC on Base to 0xABC..., confirm?"
2. After user confirms, call create_payment(...)
3. Return the payment_id
4. Optionally poll get_payment_status for completion
```

### 7.3 "Access this paid API"
```
1. Try accessing the URL normally
2. If 402 or payment required:
   a. Check balance
   b. Tell user the cost and ask for approval
   c. Call x402_pay or mpp_pay
3. Return the resource content
```

### 7.4 "Show recent transactions"
```
1. Call list_transactions(agent_id="...", limit=10)
2. Format: time, amount, currency, chain, status, destination
```

---

## 8. Security & Best Practices

### 8.1 Always Confirm Before Sending
**Most important rule.** Before `create_payment`:
1. Show full details (amount, currency, chain, address) to user
2. Wait for explicit "yes" / "confirm" / "send"
3. **Never auto-send payments**, even if user previously said "help me transfer"

### 8.2 Address Validation
- Base: starts with `0x`, 42 characters total
- Solana: Base58 encoded, 32-44 characters, no `0x`
- If format is wrong, **refuse** and explain why

### 8.3 Balance Check
Before large transfers, verify funds. If insufficient:
1. Report current balance
2. State the shortfall
3. Suggest funding options

### 8.4 API Key Security
- Never expose the full API Key in chat
- If user asks "what's my API key?", direct them to the dashboard
- Never write the key to logs, memory, or third-party services

---

## 9. Troubleshooting

### MCP tools not available
1. Check `~/.hermes/config.yaml` has `mcp_servers.nexus` configured
2. Verify URL: `https://nexus.legendpay.com/api/mcp/pay`
3. Verify Authorization header: `Bearer lpay_sk_...`
4. Restart Hermes

### Authentication error on tool call
API Key may be invalid or expired.
1. Ask human to check `https://nexus.legendpay.com/dashboard/api-keys`
2. Regenerate key if needed, update config.yaml, restart Hermes

### "Authentication required to create agents"
This means you're using an Agent Key (bound to one agent). Agent Keys cannot create new agents. This is normal — use `get_agent_info` instead to get your existing agent's details.

### Understanding error responses
Error responses now include structured JSON with actionable suggestions:
```json
{
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "message": "Agent abc123 not found or not owned by this user.",
    "suggestion": "Use get_agent_info to list your agents."
  }
}
```
Error code prefixes tell you what to do:
- `INVALID_*` → fix your parameters and retry
- `RESOURCE_*` → verify the resource state with another tool, then retry
- `SYSTEM_*` → don't retry, report to user

### Payment failed
- **Insufficient balance** → call `get_balance` first
- **Wrong address format** → verify chain matches address type
- **Exceeded spending policy** → check policy limits
- **Chain congestion** → wait and retry

### Don't know agent_id or wallet_id
Call `get_agent_info()` — no parameters needed. It returns everything. Save results to memory for future use.

### File upload on KYC page doesn't work
- `browser_click` on file input opens a native dialog you can't interact with
- Use the JavaScript `DataTransfer` approach documented in Section 3.3 Sub-step 2b
- Make sure to dispatch a `change` event with `{bubbles: true}` after setting files
- Verify upload succeeded by checking that the filename appears in the page snapshot

### Form fields not updating after `browser_type`
React-controlled inputs ignore direct `.value` assignment. Use the native setter pattern:
```javascript
const setter = Object.getOwnPropertyDescriptor(
  window.HTMLInputElement.prototype, 'value'
).set;
setter.call(element, 'new value');
element.dispatchEvent(new Event('input', {bubbles: true}));
element.dispatchEvent(new Event('change', {bubbles: true}));
```

---

## 10. Appendix: Supported Chains

| Chain | Currency | Address Format | Example |
|-------|----------|---------------|---------|
| Base | USDC | 0x + 40 hex chars | `0xa3b608a46560c4c24272c5a677ad6e33a8729dd5` |
| Base | USDT | 0x + 40 hex chars | same format |
| Solana | USDC | Base58 | `RVBhCQjhEPpcbRXhrckeQkwQ4G5b2N77of5Kijs6tiev` |
| Solana | USDT | Base58 | same format |

---

## Quick Reference Card

```
╔══════════════════════════════════════════════════════════════╗
║                    NEXUS PAY QUICK REFERENCE                 ║
╠══════════════════════════════════════════════════════════════╣
║  ★ FIRST: get_agent_info() → saves agent_id + wallet_ids    ║
║                                                              ║
║  Balance   get_balance(wallet_id)                            ║
║  Pay       create_payment(agent_id, amount, currency,        ║
║            chain, receiver_address)                          ║
║  Status    get_payment_status(payment_id)                    ║
║  History   list_transactions(agent_id, limit)                ║
║  Policy    set_spending_policy(agent_id, rules)              ║
║  x402      x402_pay(agent_id, url)                           ║
║  MPP       mpp_pay(agent_id, url)                            ║
║  New Agent create_agent(name) [User Key only]                ║
╠══════════════════════════════════════════════════════════════╣
║  Amounts: decimal strings "10.50"                            ║
║  Before paying: ALWAYS confirm with user!                    ║
║  Base address: 0x... | Solana address: Base58                ║
║  Dashboard: https://nexus.legendpay.com/dashboard            ║
║  Top up: https://nexus.legendpay.com/dashboard/topup         ║
╚══════════════════════════════════════════════════════════════╝
```

---

*Last updated: 2026-05-03*
*For: Hermes Agent + Nexus MCP Server*
