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

# API 通用说明

### 钱包地址格式约定

<div className="bg-gray-50 p-4 rounded-lg border border-gray-200 shadow-sm">
  <div className="flex items-start">
    <div className="mr-3 mt-1">
      <svg xmlns="http://www.w3.org/2000/svg" className="h-5 w-5 text-gray-600" viewBox="0 0 20 20" fill="currentColor">
        <path fillRule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clipRule="evenodd" />
      </svg>
    </div>

    <div>
      <div className="font-semibold text-gray-800 mb-2">区块链地址格式规范</div>

      <div className="space-y-3">
        <div>
          <div className="flex items-center">
            <div className="bg-blue-600 text-white text-xs font-medium px-2 py-0.5 rounded mr-2">
              TRON
            </div>

            <div className="text-sm text-gray-700">
              字母<span className="font-bold">大小写敏感</span>
            </div>
          </div>

          <div className="mt-1 space-y-1">
            <div className="text-xs text-gray-500 bg-gray-100 p-1.5 rounded font-mono">
              正确: <span className="text-green-600 font-medium">TCrQkITtuMZfXqY5a2eXgVqC8CjQkFvJET</span>
            </div>

            <div className="text-xs text-gray-500 bg-gray-100 p-1.5 rounded font-mono border border-red-100">
              <span className="text-red-500">错误:</span> TCrQk<span className="text-red-500">i</span>ttuMZfXqY5a2eXgVqC8CjQkFvJET <span className="text-red-500 text-xs">(i应小写)</span>
            </div>
          </div>
        </div>

        <div>
          <div className="flex items-center">
            <div className="bg-purple-600 text-white text-xs font-medium px-2 py-0.5 rounded mr-2">
              ETH
            </div>

            <div className="text-sm text-gray-700">
              使用<span className="font-bold">小写字母</span>
            </div>
          </div>

          <div className="mt-1 space-y-1">
            <div className="text-xs text-gray-500 bg-gray-100 p-1.5 rounded font-mono">
              正确: <span className="text-green-600 font-medium">0x742d35cc6634c0532925a3b844bc454e4438f44e</span>
            </div>

            <div className="text-xs text-gray-500 bg-gray-100 p-1.5 rounded font-mono border border-red-100">
              <span className="text-red-500">错误:</span> 0x742d35cc6634c0532925a3b<span className="text-red-500 uppercase">844BC454E4438F44E</span> <span className="text-red-500 text-xs">(不应有大写字母)</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div className="mt-3 pt-3 border-t border-gray-200 text-xs text-gray-500">
    请注意：不同区块链的地址格式要求各异。提交地址时，请务必确保其完全符合对应链的规范（包括区分大小写）。系统会严格验证格式，错误格式将导致请求被拒绝。​
  </div>
</div>

### API Request Header

以下是调用API时必须提供的请求头参数：

<table class="min-w-full divide-y divide-gray-300 border border-gray-300 rounded-lg text-sm w-[95%] max-w-3xl mx-auto">
  <thead>
    <tr>
      <th scope="col" class="px-6 py-3 text-left font-bold text-gray-900 tracking-wide whitespace-nowrap text-base">
        请求头
      </th>

      <th scope="col" class="px-6 py-3 text-left font-bold text-gray-900 tracking-wide text-base">
        设置值
      </th>
    </tr>
  </thead>

  <tbody class="bg-white divide-y divide-gray-200">
    <tr class="hover:bg-blue-50 transition-colors">
      <td class="pl-6 pr-3 py-3 font-medium text-gray-900 whitespace-nowrap">
        Content-Type
      </td>

      <td class="pl-6 pr-3 py-3 text-gray-700">
        application/x-www-form-urlencoded
      </td>
    </tr>

    <tr class="hover:bg-blue-50 transition-colors">
      <td class="pl-6 pr-3 py-3 font-medium text-gray-900 whitespace-nowrap">
        X-API-KEY
      </td>

      <td class="pl-6 pr-3 py-3 text-gray-700">
        平台分配的唯一API密钥（示例：54bf2683-a3c8-41e2-3a4c-62315cp1386v）
      </td>
    </tr>
  </tbody>
</table>

### API 请求规范

<div className="space-y-5">
  <div className="flex bg-gray-50 rounded-lg p-4 items-start border border-gray-200">
    <div className="mr-4">
      <div className="bg-blue-500 w-8 h-8 rounded-full flex items-center justify-center">
        <svg width="16" height="16" viewBox="0 0 24 24" fill="#fff">
          <path d="M13 10V3L4 14h7v7l9-11h-7z" />
        </svg>
      </div>
    </div>

    <div>
      <div className="text-sm text-gray-600 space-y-2">
        <div className="flex items-center">
          <div className="w-2 h-2 rounded-full bg-blue-500 mr-2" />

          请求格式: <span className="ml-1 font-medium text-gray-800">x-www-form-urlencoded</span>
        </div>

        <div className="flex items-center">
          <div className="w-2 h-2 rounded-full bg-blue-500 mr-2" />

          唯一参数: <span className="ml-1 font-medium text-gray-800">data</span>
        </div>

        <div className="flex items-center">
          <div className="w-2 h-2 rounded-full bg-blue-500 mr-2" />

          data值: <span className="ml-1 font-medium text-gray-800">加密的业务数据字符串</span>
        </div>
      </div>
    </div>
  </div>

  <div className="bg-white rounded-lg border border-gray-200 overflow-hidden">
    <div className="border-b p-3 bg-gray-50">
      <span className="font-semibold text-gray-800">Postman设置参考</span>
    </div>

    <div className="grid grid-cols-1 md:grid-cols-[max-content_1fr] gap-4 p-4">
      <div className="flex items-center">
        <div className="w-8 h-8 rounded-full bg-emerald-100 flex items-center justify-center mr-3">
          <svg width="14" height="14" viewBox="0 0 24 24" fill="#047857">
            <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
          </svg>
        </div>

        <span className="text-sm font-medium text-gray-700">URL</span>
      </div>

      <div>
        <div className="mt-1 text-sm font-medium break-all">
          [https://waas2-out-api.powersafe-rel.cc/api/v1/api/xxxx/xxxx](https://waas2-out-api.powersafe-rel.cc/api/v1/api/xxxx/xxxx)
        </div>
      </div>

      <div className="flex items-center">
        <div className="w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center mr-3">
          <svg width="14" height="14" viewBox="0 0 24 24" fill="#b45309">
            <path d="M12 15v-2m0-8v4m8 4a8 8 0 11-16 0 8 8 0 0116 0z" />
          </svg>
        </div>

        <span className="text-sm font-medium text-gray-700">Headers</span>
      </div>

      <div>
        <div className="flex items-center mb-1">
          <span className="text-sm text-gray-600 w-32">Content-Type</span>
          <div className="bg-amber-50 px-2 py-1 rounded text-sm">application/x-www-form-urlencoded</div>
        </div>

        <div className="flex items-center">
          <span className="text-sm text-gray-600 w-32">X-API-KEY</span>
          <div className="bg-amber-50 px-2 py-1 rounded text-sm">53af2797-3eca-4412-b0cc-15273afe2d3e</div>
        </div>
      </div>

      <div className="flex items-center">
        <div className="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
          <svg width="14" height="14" viewBox="0 0 24 24" fill="#4f46e5">
            <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
          </svg>
        </div>

        <span className="text-sm font-medium text-gray-700">Body</span>
      </div>

      <div>
        <div className="grid grid-cols-[80px_1fr] mt-2 text-sm">
          <div className="font-medium py-1">Key</div>
          <div className="font-medium py-1">Value</div>
          <div className="  rounded-l">data</div>
          <div className=" rounded-r truncate">dF5Qwoi/nGC6TKKC4WdZ4YzjjvSh5WwZIDFTpc4nEWrSSDjWJ...</div>
        </div>
      </div>
    </div>
  </div>
</div>

#### 成功响应示例

```json theme={null}
{
  "message": "",
  "code": 0,
  "data": "IQTgJfQwYcy0HMSPYrr20YS/fJuuB4CgooLXEGaoM57hsRQSYdiupfI5BNQRM=...."
}
```

<div className="bg-yellow-50 border-l-4 border-yellow-400 p-4 rounded flex items-start">
  <div className="mr-3">
    <div className="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center">
      <svg width="16" height="16" viewBox="0 0 24 24" fill="#d97706">
        <path d="M12 2L2 20h20L12 2zm1 15h-2v-2h2v2zm0-4h-2V8h2v5z" />
      </svg>
    </div>
  </div>

  <div>
    <span className="font-semibold text-gray-800 mb-1" />

    <p className="text-sm text-gray-700">
      a. 请求中只能包含一个data参数，任何额外的参数都将导致请求失败。
    </p>

    <p className="text-sm text-gray-700 mt-2">
      b. 响应中的<code>code</code>字段：0 表示成功，其他值表示错误。
    </p>

    <p className="text-sm text-gray-700 mt-2">
      c. <code>data</code>字段包含加密的响应业务数据，需要解密后才能使用。
    </p>
  </div>
</div>
