> ## Documentation Index
> Fetch the complete documentation index at: https://docs.monad.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# 智能体支付

export const CopyToClipboard = ({value, children}) => {
  const [copied, setCopied] = useState(false);
  const handleCopy = async () => {
    try {
      await navigator.clipboard.writeText(value);
      setCopied(true);
      setTimeout(() => setCopied(false), 1000);
    } catch {
      const textarea = document.createElement("textarea");
      textarea.value = value;
      textarea.style.position = "fixed";
      textarea.style.opacity = "0";
      document.body.appendChild(textarea);
      textarea.select();
      document.execCommand("copy");
      document.body.removeChild(textarea);
      setCopied(true);
      setTimeout(() => setCopied(false), 1000);
    }
  };
  return <span style={{
    display: "inline",
    whiteSpace: "nowrap"
  }}>
      {children}
      <button onClick={handleCopy} title={copied ? "Copied!" : "Copy to clipboard"} style={{
    background: "none",
    border: "none",
    cursor: "pointer",
    padding: "2px",
    display: "inline-flex",
    alignItems: "center",
    verticalAlign: "middle",
    marginLeft: "4px",
    opacity: copied ? 1 : 0.4,
    transition: "opacity 0.15s"
  }} onMouseEnter={e => {
    if (!copied) e.currentTarget.style.opacity = "0.8";
  }} onMouseLeave={e => {
    if (!copied) e.currentTarget.style.opacity = "0.4";
  }}>
        {copied ? <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#22c55e" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round">
            <polyline points="20 6 9 17 4 12" />
          </svg> : <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
            <rect x="9" y="9" width="13" height="13" rx="2" ry="2" />
            <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
          </svg>}
      </button>
    </span>;
};

<Note>
  另请参见 [x402 指南](/zh/guides/x402),其中提供了构建启用 x402 的端点的分步教程。
</Note>

## 概述

智能体支付通过 HTTP 实现自主的机器对机器交易。无需账户、订阅或 API 密钥,任何 HTTP 端点都可以通过链上支付授权立即变得可付费。

Monad 的高吞吐量、亚秒级最终确定性和低费用使其成为微支付和智能体对智能体商务的理想结算层。

## 提供商摘要

<div class="mintlify-table-wrapper">
  <table class="mintlify-table">
    <thead>
      <tr>
        <th>服务</th>
        <th>协议</th>
        <th>支持(主网)</th>
        <th>文档</th>
        <th>备注</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>Monad x402 Facilitator</td>
        <td>[x402](https://www.x402.org/)</td>
        <td>✅</td>
        <td>[指南](/zh/guides/x402)</td>
        <td>URL:<CopyToClipboard value="https://x402-facilitator.molandak.org">`https://x402-facilitator.molandak.org`</CopyToClipboard></td>
      </tr>

      <tr>
        <td>MPP SDK</td>
        <td>[MPP](https://mpp.dev/)</td>
        <td>✅</td>
        <td>[参考](/zh/reference/mpp/overview)</td>
        <td>NPM:[`@monad-crypto/mpp`](https://www.npmjs.com/package/@monad-crypto/mpp)</td>
      </tr>
    </tbody>
  </table>
</div>

## 提供商详情

### Monad x402 Facilitator

Monad x402 Facilitator 是一项托管服务,可简化 Monad 上的 [x402](https://www.x402.org/) 支付流程。x402 将 HTTP 402 "Payment Required" 状态码变为一个用于互联网原生微支付的最小协议。

**工作原理:**

1. 客户端向服务器请求资源。
2. 服务器以 HTTP 402 和 JSON 支付要求作出响应。
3. 客户端签署支付授权(客户端无需进行链上交易)。
4. 服务器验证签名并提供内容。
5. facilitator 在链上结算支付,承担 gas 费用。

**Facilitator URL:**<CopyToClipboard value="https://x402-facilitator.molandak.org">`https://x402-facilitator.molandak.org`</CopyToClipboard>

**主要特性:**

* 支持 Monad 主网和测试网
* 处理支付验证和链上结算
* 代表客户端承担 gas 费用
* 支持按使用量计费和按调用微支付
* 与 Monad 上的 USDC 配合使用

**Facilitator API 端点:**

* `GET /supported` — 返回支持的网络、方案和签名者地址
* `POST /verify` — 在提供内容之前验证支付签名
* `POST /settle` — 在内容提供后在链上执行支付

要开始在 Monad 上构建启用 x402 的端点,请参见 [x402 指南](/zh/guides/x402)。

在 [x402.org](https://www.x402.org/) 了解更多信息。

### MPP SDK

MPP SDK([`@monad-crypto/mpp`](https://www.npmjs.com/package/@monad-crypto/mpp))是一个 TypeScript/JavaScript 库,用于将 [Machine Payments Protocol](https://mpp.dev/) 集成到您在 Monad 上的应用中。它提供了以编程方式构造和管理支付交易的工具。

* **NPM 包:**[`@monad-crypto/mpp`](https://www.npmjs.com/package/@monad-crypto/mpp)
* **参考文档:**[`@monad-crypto/mpp` 参考](/zh/reference/mpp/overview)
