diff --git a/docs.json b/docs.json
index 1a46808e..33d96f66 100644
--- a/docs.json
+++ b/docs.json
@@ -46,13 +46,16 @@
"pages": [
"v2/guides/webhooks-callbacks/introduction",
"v2/guides/webhooks-callbacks/set-up-endpoint",
- "v2/guides/webhooks-callbacks/webhook-event-type"
+ "v2/guides/webhooks-callbacks/webhook-event-type",
+ "v2/guides/webhooks-callbacks/transaction-webhook-events",
+ "v2/guides/webhooks-callbacks/mpc-tss-request-webhook-events"
]
},
{
"group": "Transactions",
"pages": [
"v2/guides/transactions/sources-and-destinations",
+ "v2/guides/transactions/transaction-fields",
"v2/guides/transactions/transfer-routing",
"v2/guides/transactions/estimate-fees",
"v2/guides/transactions/solana-token-account-rent",
@@ -858,13 +861,16 @@
"pages": [
"v2_cn/guides/webhooks-callbacks/introduction",
"v2_cn/guides/webhooks-callbacks/set-up-endpoint",
- "v2_cn/guides/webhooks-callbacks/webhook-event-type"
+ "v2_cn/guides/webhooks-callbacks/webhook-event-type",
+ "v2_cn/guides/webhooks-callbacks/transaction-webhook-events",
+ "v2_cn/guides/webhooks-callbacks/mpc-tss-request-webhook-events"
]
},
{
"group": "交易",
"pages": [
"v2_cn/guides/transactions/sources-and-destinations",
+ "v2_cn/guides/transactions/transaction-fields",
"v2_cn/guides/transactions/transfer-routing",
"v2_cn/guides/transactions/estimate-fees",
"v2_cn/guides/transactions/solana-token-account-rent",
@@ -1598,4 +1604,4 @@
"destination": "https://www.cobo.com/payments/cn/guides/overview"
}
]
-}
\ No newline at end of file
+}
diff --git a/v2/guides/transactions/transaction-fields.mdx b/v2/guides/transactions/transaction-fields.mdx
new file mode 100644
index 00000000..ad41ac1c
--- /dev/null
+++ b/v2/guides/transactions/transaction-fields.mdx
@@ -0,0 +1,126 @@
+---
+title: "Transaction fields"
+lang: "en"
+description: "Reference the Transaction object returned by transaction API operations and delivered in transaction webhook events and callback messages."
+sidebarTitle: "Transaction fields"
+---
+
+import WaasSkillReminder from '/snippets/waas_skill_reminder.mdx';
+
+
| Field | Type | Description |
|---|---|---|
transaction_id | string | Cobo's unique identifier for the transaction. |
cobo_id | string | The Cobo ID that you can use to track the transaction. |
request_id | string | Your unique identifier for the API request that initiated the transaction. It is absent when no corresponding request exists, such as for a deposit. |
wallet_id | string | The unique identifier of the wallet associated with the transaction. |
type | string | The transaction type, such as Deposit, Withdrawal, ContractCall, or MessageSign. |
status | string | The transaction's lifecycle stage. |
sub_status | string | A more specific reason or stage within status. |
failed_reason | string | Additional detail about why the transaction failed. |
chain_id | string | The unique identifier of the blockchain on which the transaction occurs. |
token_id | string | The WaaS token catalog identifier for Custodial Wallet, Web3 Wallet, and MPC Wallet transactions. |
asset_id | string | The asset identifier in your linked exchange account. It applies only to Exchange Wallet transactions. |
source | object | The transaction origin. Its shape is selected by source_type. |
destination | object | The transaction target or signing input. Its shape is selected by destination_type. |
result | object | The signing result for a MessageSign transaction. It is absent for every other transaction type. |
fee | object | The network fee details, discriminated by fee_type. It is populated after broadcast and absent while signature or broadcast is pending. |
initiator | string | The name or identifier of the transaction initiator. |
initiator_type | string | The channel through which the transaction was initiated. |
confirmed_num | integer | The number of confirmations received. |
confirming_threshold | integer | The minimum confirmation count required by Cobo. |
transaction_hash | string | The on-chain transaction identifier, also called the transaction hash or txid. It is populated only after broadcast. |
block_info | object | The number, timestamp, and hash of the confirmed block. It is absent before on-chain confirmation and for MessageSign transactions. |
raw_tx_info | object | The constructed transaction data and any nonce or UTXO details. It is populated after assembly for broadcast and is absent before that stage and for MessageSign transactions. |
replacement | object | Forward or backward links between an original transaction and its replacement. It appears only when a replacement operation exists. |
category | array of strings | Your custom categories for organizing transactions. |
description | string | Your description of the transaction. |
is_loop | boolean | Whether the transaction was executed as a Cobo Loop transfer. |
cobo_category | array of strings | System-assigned categories that identify Cobo workflows associated with the transaction. |
extra | array of strings | JSON-encoded, business-specific information; each item identifies its shape with extra_type. |
fueling_info | object | Fee Station fueling details associated with the transaction. |
created_timestamp | integer | The creation time as a Unix timestamp in milliseconds. |
updated_timestamp | integer | The most recent update time as a Unix timestamp in milliseconds. |
| Event | Data type | When it occurs |
|---|---|---|
wallets.mpc.tss_request.created | TSSRequest | Fires once when the request is created, before any key-holder interaction. |
wallets.mpc.tss_request.updated | TSSRequest | Fires for each subsequent intermediate status change, including key-holder confirmation, key generation, and MPC processing states. |
wallets.mpc.tss_request.succeeded | TSSRequest | Fires once when the request reaches the terminal Success status. |
wallets.mpc.tss_request.failed | TSSRequest | Fires once when the request reaches a terminal failure state and cannot proceed. |
| Event | Data type | When it occurs |
|---|---|---|
wallets.transaction.created | Transaction | Fires once when Cobo first creates a transaction record after detecting a transaction on-chain or receiving an API request. |
wallets.transaction.updated | Transaction | Fires whenever the status or confirmation count changes, from record creation through the terminal state. |
wallets.transaction.succeeded | Transaction | Fires once when the transaction reaches its terminal successful status. |
wallets.transaction.failed | Transaction | Fires once when the transaction reaches Failed, Rejected, or Canceled. All three terminal statuses map to this event. |
WalletInfo |
A new wallet has been created. | +|
wallets.updated |
+ WalletInfo |
+ A wallet has been updated. | +
mpc_vaults.created |
MPCVault |
A new MPC vault has been created. |
mpc_vaults.updated |
+ MPCVault |
+ An MPC vault has been updated. | +
mpc_vaults.deleted |
+ MPCVault |
+ An MPC vault has been deleted. | +
| 字段 | 类型 | 说明 |
|---|---|---|
transaction_id | string | Cobo 为交易分配的唯一标识符。 |
cobo_id | string | 可用于跟踪交易的 Cobo ID。 |
request_id | string | 您为发起交易的 API 请求提供的唯一标识符。没有对应请求时(例如充币交易),该字段不存在。 |
wallet_id | string | 与交易关联的钱包唯一标识符。 |
type | string | 交易类型,例如 Deposit、Withdrawal、ContractCall 或 MessageSign。 |
status | string | 交易在生命周期中所处的阶段。 |
sub_status | string | status 对应的更具体原因或阶段。 |
failed_reason | string | 交易失败原因的补充详情。 |
chain_id | string | 交易所在区块链的唯一标识符。 |
token_id | string | 全托管钱包、Web3 钱包和 MPC 钱包交易中代币在 WaaS 代币目录中的标识符。 |
asset_id | string | 关联交易所账户中的资产标识符,仅适用于交易所钱包交易。 |
source | object | 交易来源,其结构由 source_type 决定。 |
destination | object | 交易目标或签名输入,其结构由 destination_type 决定。 |
result | object | MessageSign 交易的签名结果。其他交易类型均不包含该字段。 |
fee | object | 网络手续费详情,其结构由 fee_type 决定。该字段在广播后填充,在等待签名或广播时不存在。 |
initiator | string | 交易发起方的名称或标识符。 |
initiator_type | string | 发起交易所使用的渠道。 |
confirmed_num | integer | 交易已获得的确认数。 |
confirming_threshold | integer | Cobo 要求的最低确认数。 |
transaction_hash | string | 交易的链上标识符,也称为交易哈希或 txid,仅在广播后填充。 |
block_info | object | 已确认区块的编号、时间戳和哈希。在链上确认前以及 MessageSign 交易中,该字段不存在。 |
raw_tx_info | object | 构建后的交易数据以及 nonce 或 UTXO 详情。该字段在交易组装完成后填充,在此之前以及 MessageSign 交易中不存在。 |
replacement | object | 原交易与替代交易之间的正向或反向关联,仅在存在替代操作时出现。 |
category | array of strings | 您用于整理交易的自定义类别。 |
description | string | 您提供的交易说明。 |
is_loop | boolean | 交易是否通过 Cobo Loop 执行。 |
cobo_category | array of strings | 用于标识交易所关联 Cobo 工作流的系统类别。 |
extra | array of strings | JSON 编码的特定业务信息,每一项使用 extra_type 标识其结构。 |
fueling_info | object | 与交易关联的 Fee Station 代付详情。 |
created_timestamp | integer | 交易创建时间,采用毫秒级 Unix 时间戳。 |
updated_timestamp | integer | 交易最近更新时间,采用毫秒级 Unix 时间戳。 |
| 事件 | 数据类型 | 发生时机 |
|---|---|---|
wallets.mpc.tss_request.created | TSSRequest | 请求创建后、任何私钥分片持有者交互前触发一次。 |
wallets.mpc.tss_request.updated | TSSRequest | 后续每次中间状态变化时触发,包括私钥分片持有者确认、密钥生成和 MPC 处理状态。 |
wallets.mpc.tss_request.succeeded | TSSRequest | 请求到达 Success 终态时触发一次。 |
wallets.mpc.tss_request.failed | TSSRequest | 请求到达无法继续处理的失败终态时触发一次。 |
| 事件 | 数据类型 | 发生时机 |
|---|---|---|
wallets.transaction.created | Transaction | Cobo 在链上检测到交易或收到 API 请求并首次创建交易记录时触发一次。 |
wallets.transaction.updated | Transaction | 从创建记录到终态,只要状态或确认数发生变化就会触发。 |
wallets.transaction.succeeded | Transaction | 交易到达成功终态时触发一次。 |
wallets.transaction.failed | Transaction | 交易到达 Failed、Rejected 或 Canceled 终态时触发一次。这三种状态均映射到该事件。 |
WalletInfo |
已创建新的钱包。 | +|
wallets.updated |
+ WalletInfo |
+ 钱包已更新。 | +
mpc_vaults.created |
MPCVault |
已创建新的 MPC Vault。 |
mpc_vaults.updated |
+ MPCVault |
+ MPC Vault 已更新。 | +
mpc_vaults.deleted |
+ MPCVault |
+ MPC Vault 已删除。 | +