Xpersona
T

tss-api

CLAWHUB · Unverified

提供跨链交易查询服务,包括获取交易高度、交易列表、订单和交易哈希对应的详细跨链交易记录与状态。 Skill: tss-api Owner: lbtsm Summary: 提供跨链交易查询服务,包括获取交易高度、交易列表、订单和交易哈希对应的详细跨链交易记录与状态。 Tags: latest:1.0.5 Version history: v1.0.5 | 2026-03-26T09:04:09.765Z | auto - Initial release of the Compass TSS API skill documentation (v1.0.5). - Provides detailed API endpoints for cross-chain transaction queries, including order and transaction lookup, status codes, and data models. - Endpoints support querying by chainId, bloc

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173btr78pwygm4wanfj0ezk1h83h9b6:tss-api
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-lbtsm-tss-api/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

7,971 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

_meta.json

{
  "ownerId": "kn74b581segnhmrtjgfbncscxs82tbdg",
  "slug": "tss-api",
  "version": "1.0.5",
  "publishedAt": 1774515849765
}

skill-card.md

## Description:

tss-api provides Compass TSS API reference guidance for querying cross-chain transaction heights, pending transactions, orders, transaction hashes, and status records.

This skill is ready for commercial/non-commercial use.

## Publisher:

[lbtsm](https://clawhub.ai/user/lbtsm)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and support engineers use this skill as an API reference for inspecting Compass TSS cross-chain transaction records, pending transactions, block-height scans, order IDs, transaction hashes, and status codes.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Queries can expose sensitive or non-public order IDs or transaction hashes to the Compass TSS API endpoint.

Mitigation: Use only identifiers intended to be shared with that endpoint and avoid sending confidential transaction data.

Risk: The API reference is primarily in Chinese, which may cause localization or interpretation errors for non-Chinese readers.

Mitigation: Have bilingual reviewers confirm endpoint parameters and status semantics before operational use.

## Reference(s):

- [ClawHub tss-api skill page](https://clawhub.ai/lbtsm/skills/tss-api)
- [Compass TSS API base endpoint](https://tss-api.chainservice.io)

## Skill Output:

**Output Type(s):** [guidance, markdown, shell commands]

**Output Format:** [Markdown API reference with JSON response examples and bash curl commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes REST endpoint paths, query parameters, response examples, status codes, and curl commands.]

## Skill Version(s):

1.0.5 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

skills.md

# Compass TSS API Skills

> TSS 跨链服务 API 技能文档
> Base URL: `https://tss-api.chainservice.io`
> Version: 1.0

---

## 概述

Compass TSS API 是一套跨链交易查询服务接口,提供跨链交易记录查询、链上扫描高度获取、Pending 交易列表等功能。

---

## 数据模型

### CrossData

跨链交易基础数据结构。

| 字段 | 类型 | 说明 | 示例 |
|------|------|------|------|
| `chain` | string | 链标识 | `""` |
| `chain_and_gas_limit` | string | 链及 Gas 限制 | `""` |
| `height` | integer | 区块高度 | `81507414` |
| `is_memoized` | boolean | 是否已缓存 | `false` |
| `log_index` | integer | 日志索引 | `1` |
| `order_id` | string | 订单 ID | `""` |
| `timestamp` | integer | 时间戳(Unix) | `1767097427` |
| `topic` | string | 事件主题 | `""` |
| `tx_hash` | string | 交易哈希 | `""` |

### CrossSet

跨链交易完整数据集合,描述一笔跨链交易在各链上的状态。

| 字段 | 类型 | 说明 |
|------|------|------|
| `src` | CrossData | 源链交易 |
| `relay` | CrossData | 中继链交易 |
| `relay_signed` | CrossData | 中继签名交易(前端可忽略) |
| `dest` | CrossData | 目标链交易 |
| `map_dest` | CrossData | 映射目标交易 |
| `order_id` | string | 订单 ID |
| `status` | integer | 跨链状态码 |
| `status_str` | string | 跨链状态描述 |
| `now` | integer | 当前时间戳 |

### StatusOfCross(跨链状态枚举)

| 值 | 名称 | 说明 |
|----|------|------|
| `0` | StatusOfInit | 初始化 |
| `1` | StatusOfPending | 等待处理 |
| `2` | StatusOfSend | 已发送 |
| `3` | StatusOfCompleted | 已完成 |
| `4` | StatusOfFailed | 失败 |

---

## API 接口

### 1. 获取当前扫描最高高度

根据 chainId 获取当前扫描有交易的最高区块高度。

- **Method:** `GET`
- **Path:** `/cross/chain/height`
- **Tags:** 交易记录

#### 请求参数

| 参数 | 位置 | 类型 | 必填 | 说明 |
|------|------|------|------|------|
| `chainId` | query | string | 是 | 链 ID |

#### 响应

**200 OK**

```json
{
  "height": "string"
}
```

#### 示例

```bash
curl -X GET "https://tss-api.chainservice.io/cross/chain/height?chainId=1"
```

---

### 2. 获取高度对应的交易集群

根据 chainId 和区块高度获取该高度下的交易 orderId 集合。

- **Method:** `GET`
- **Path:** `/cross/chain/height/orders`
- **Tags:** 交易记录

#### 请求参数

| 参数 | 位置 | 类型 | 必填 | 说明 |
|------|------|------|------|------|
| `chainId` | query | string | 是 | 链 ID(如 `1`) |
| `height` | query | string | 是 | 区块高度(如 `12245`) |

#### 响应

**200 OK**

```json
{
  "height": "string",
  "set": ["orderId_1", "orderId_2"]
}
```

#### 示例

```bash
curl -X GET "https://tss-api.chainservice.io/cross/chain/height/orders?chainId=1&height=12245"
```

---

### 3. 根据高度区间获取交易列表

根据 chainId 和起止高度查询区间内的所有跨链交易。

- **Method:** `GET`
- **Path:** `/cross/height/range/txs`
- **Tags:** 交易记录

#### 请求参数

| 参数 | 位置 | 类型 | 必填 | 说明 |
|------|------|------|------|------|
| `chainId` | query | string | 是 | 链 ID |
| `startHeight` | query | string | 是 | 起始高度 |
| `endHeight` | query | string | 是 | 结束高度 |

#### 响应

**200 OK**

返回 `CrossSet` 数组:

```json
[
  {
    "data": {
      "src": { ... },
      "relay": { ... },
      "dest": { ... },
      "order_id": "string",
      "status": 0,
      "status_str": "string",
      "now": 0
    }
  }
]
```

#### 示例

```bash
curl -X GET "https://tss-api.chainservice.io/cross/height/range/txs?chainId=1&startHeight=1000&endHeight=2000"
```

---

### 4. 通过 orderId 获取交易记录

根据跨链订单 ID 查询完整的交易记录。

- **Method:** `

Sponsored

Ads related to tss-api and adjacent AI workflows.