tss-api

v1.0.5

提供跨链交易查询服务,包括获取交易高度、交易列表、订单和交易哈希对应的详细跨链交易记录与状态。

0· 191·0 current·0 all-time
bymap@lbtsm

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for lbtsm/tss-api.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "tss-api" (lbtsm/tss-api) from ClawHub.
Skill page: https://clawhub.ai/lbtsm/tss-api
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install tss-api

ClawHub CLI

Package manager switcher

npx clawhub@latest install tss-api
Security Scan
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description describe a cross-chain transaction query API and the SKILL.md only documents GET endpoints on the listed base URL. There are no unrelated requirements (no credentials, binaries, or config paths) requested that would be inconsistent with a read-only query API.
Instruction Scope
SKILL.md contains only API documentation (endpoints, params, examples). It does not instruct the agent to read local files, environment variables, or transmit data to unexpected endpoints. The documented external endpoint (https://tss-api.chainservice.io) is the only network target mentioned, which matches the stated purpose.
Install Mechanism
There is no install spec and no code files. This instruction-only skill does not write to disk or install packages, which is the lowest risk install model.
Credentials
The skill declares no required environment variables, credentials, or config paths. That matches the read-only, query-only nature of the documented API.
Persistence & Privilege
The skill does not request always: true and uses default invocation settings. It does not ask to modify other skills or system config and has no persistent installation actions.
Assessment
This skill is essentially API documentation and appears coherent and low-risk: it requires no credentials or installs. Before installing, consider that the base URL (https://tss-api.chainservice.io) is an external service with an unknown provider—verify you trust that endpoint, check its TLS certificate and uptime, and be aware that any queries you make will be sent to that external server. Do not provide private keys or sensitive credentials to this skill (none are required). If you need stronger assurance, request a homepage, source repository, or operator contact so you can vet the service operator and their privacy/retention practices.

Like a lobster shell, security has layers — review code before you run it.

latestvk972cv4jxj1dyws39crj9b67mn83mcew
191downloads
0stars
1versions
Updated 1mo ago
v1.0.5
MIT-0

Compass TSS API Skills

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


概述

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


数据模型

CrossData

跨链交易基础数据结构。

字段类型说明示例
chainstring链标识""
chain_and_gas_limitstring链及 Gas 限制""
heightinteger区块高度81507414
is_memoizedboolean是否已缓存false
log_indexinteger日志索引1
order_idstring订单 ID""
timestampinteger时间戳(Unix)1767097427
topicstring事件主题""
tx_hashstring交易哈希""

CrossSet

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

字段类型说明
srcCrossData源链交易
relayCrossData中继链交易
relay_signedCrossData中继签名交易(前端可忽略)
destCrossData目标链交易
map_destCrossData映射目标交易
order_idstring订单 ID
statusinteger跨链状态码
status_strstring跨链状态描述
nowinteger当前时间戳

StatusOfCross(跨链状态枚举)

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

API 接口

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

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

  • Method: GET
  • Path: /cross/chain/height
  • Tags: 交易记录

请求参数

参数位置类型必填说明
chainIdquerystring链 ID

响应

200 OK

{
  "height": "string"
}

示例

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

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

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

  • Method: GET
  • Path: /cross/chain/height/orders
  • Tags: 交易记录

请求参数

参数位置类型必填说明
chainIdquerystring链 ID(如 1
heightquerystring区块高度(如 12245

响应

200 OK

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

示例

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: 交易记录

请求参数

参数位置类型必填说明
chainIdquerystring链 ID
startHeightquerystring起始高度
endHeightquerystring结束高度

响应

200 OK

返回 CrossSet 数组:

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

示例

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

4. 通过 orderId 获取交易记录

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

  • Method: GET
  • Path: /cross/order
  • Tags: 交易记录

请求参数

参数位置类型必填说明
orderIdquerystring跨链订单 ID

响应

200 OK

{
  "data": {
    "src": { ... },
    "relay": { ... },
    "relay_signed": { ... },
    "dest": { ... },
    "map_dest": { ... },
    "order_id": "string",
    "status": 3,
    "status_str": "completed",
    "now": 1767097427
  }
}

示例

curl -X GET "https://tss-api.chainservice.io/cross/order?orderId=your_order_id"

5. 获取 Pending 交易列表

根据 chainId 获取当前处于 Pending 状态的交易列表。

  • Method: GET
  • Path: /cross/pending/tx
  • Tags: 交易记录

请求参数

参数位置类型必填说明
chainIdquerystring链 ID

响应

200 OK

{
  "txs": ["tx_hash_1", "tx_hash_2"]
}

示例

curl -X GET "https://tss-api.chainservice.io/cross/pending/tx?chainId=1"

6. 通过 txHash 获取交易记录

根据交易哈希查询跨链交易记录。

  • Method: GET
  • Path: /cross/tx
  • Tags: 交易记录

请求参数

参数位置类型必填说明
txquerystring交易哈希(txHash)

响应

200 OK

{
  "data": {
    "src": { ... },
    "relay": { ... },
    "relay_signed": { ... },
    "dest": { ... },
    "map_dest": { ... },
    "order_id": "string",
    "status": 3,
    "status_str": "completed",
    "now": 1767097427
  }
}

示例

curl -X GET "https://tss-api.chainservice.io/cross/tx?tx=0xYourTransactionHash"

错误码

HTTP 状态码说明
200请求成功
400请求参数错误

接口总览

#方法路径说明
1GET/cross/chain/height获取当前扫描最高高度
2GET/cross/chain/height/orders获取高度对应的交易集群
3GET/cross/height/range/txs根据高度区间获取交易列表
4GET/cross/order通过 orderId 获取交易记录
5GET/cross/pending/tx获取 Pending 交易列表
6GET/cross/tx通过 txHash 获取交易记录

Comments

Loading comments...