交易状态码
这些代码表示由 Skip Go API 处理或跟踪的交易整体状态。| 状态 | 说明 | 备注 |
|---|---|---|
STATE_UNKNOWN | 交易状态未知。 | 应视为错误状态。 |
STATE_SUBMITTED | 交易已提交到区块链网络。 | |
STATE_PENDING | 交易正在进行中,等待处理。 | |
STATE_RECEIVED | 交易已被区块链网络接收。 | |
STATE_COMPLETED | (内部过渡状态) | 在 API 响应返回前,该状态会解析为 STATE_COMPLETED_SUCCESS 或 STATE_COMPLETED_ERROR。 |
STATE_ABANDONED | 交易已被放弃,通常由于超时导致(例如 IBC relayer)。 | 跟踪已超时。这不一定表示交易永久失败;可能仍可重试。 |
STATE_COMPLETED_SUCCESS | 交易已成功完成。 | 这是唯一能够明确表示端到端交易成功完成的状态。 |
STATE_COMPLETED_ERROR | 交易已完成,但过程中发生了错误。 | |
STATE_PENDING_ERROR | 交易在处理过程中遇到错误。 |
通用错误类型
这些错误类型用于对问题进行较宽泛的分类。| 错误类型 | 说明 |
|---|---|
STATUS_ERROR_UNKNOWN | 未知错误类型。 |
STATUS_ERROR_TRANSACTION_EXECUTION | 交易在区块链上执行期间发生错误。 |
STATUS_ERROR_INDEXING | Skip 内部处理或索引过程中发生错误。 |
STATUS_ERROR_TRANSFER | 与交易中的某个特定转移操作相关的错误。 |
桥接协议状态码
不同桥接协议都有各自的专用状态码,用于反映使用该桥的某一段转移流程所处的状态。IBC 转移状态
| 状态 | 说明 |
|---|---|
TRANSFER_UNKNOWN | IBC 转移状态未知。 |
TRANSFER_PENDING | IBC 转移进行中。 |
TRANSFER_RECEIVED | IBC 转移已被目标链接收。 |
TRANSFER_SUCCESS | IBC 转移已成功完成。 |
TRANSFER_FAILURE | IBC 转移失败。 |
Axelar 转移状态
| 状态 | 说明 |
|---|---|
AXELAR_TRANSFER_UNKNOWN | Axelar 转移状态未知。 |
AXELAR_TRANSFER_PENDING_CONFIRMATION | Axelar 转移正在等待确认。 |
AXELAR_TRANSFER_PENDING_RECEIPT | Axelar 转移正在等待回执。 |
AXELAR_TRANSFER_SUCCESS | Axelar 转移已成功完成。 |
AXELAR_TRANSFER_FAILURE | Axelar 转移失败。 |
CCTP 转移状态
| 状态 | 说明 |
|---|---|
CCTP_TRANSFER_UNKNOWN | CCTP 转移状态未知。 |
CCTP_TRANSFER_SENT | CCTP 转移已发送。 |
CCTP_TRANSFER_PENDING_CONFIRMATION | CCTP 转移正在等待确认。 |
CCTP_TRANSFER_CONFIRMED | CCTP 转移已确认。 |
CCTP_TRANSFER_RECEIVED | CCTP 转移已在目标端接收。 |
GoFast 转移状态
| 状态 | 说明 |
|---|---|
GO_FAST_TRANSFER_UNKNOWN | GoFast 转移状态未知。 |
GO_FAST_TRANSFER_SENT | GoFast 转移已发送。 |
GO_FAST_POST_ACTION_FAILED | GoFast 转移的转移后操作失败。 |
GO_FAST_TRANSFER_TIMEOUT | GoFast 转移已超时。 |
GO_FAST_TRANSFER_FILLED | GoFast 转移已完成填充。 |
GO_FAST_TRANSFER_REFUNDED | GoFast 转移已退款。 |
LayerZero 转移状态
| 状态 | 说明 |
|---|---|
LAYER_ZERO_TRANSFER_UNKNOWN | LayerZero 转移状态未知。 |
LAYER_ZERO_TRANSFER_SENT | LayerZero 转移已发送。 |
LAYER_ZERO_TRANSFER_RECEIVED | LayerZero 转移已接收。 |
LAYER_ZERO_TRANSFER_FAILED | LayerZero 转移失败。 |
Hyperlane 转移状态
| 状态 | 说明 |
|---|---|
HYPERLANE_TRANSFER_UNKNOWN | Hyperlane 转移状态未知。 |
HYPERLANE_TRANSFER_SENT | Hyperlane 转移已发送。 |
HYPERLANE_TRANSFER_FAILED | Hyperlane 转移失败。 |
HYPERLANE_TRANSFER_RECEIVED | Hyperlane 转移已接收。 |
OPInit 转移状态
| 状态 | 说明 |
|---|---|
OPINIT_TRANSFER_UNKNOWN | OPInit 转移状态未知。 |
OPINIT_TRANSFER_SENT | OPInit 转移已发送。 |
OPINIT_TRANSFER_RECEIVED | OPInit 转移已接收。 |
Stargate 转移状态
| 状态 | 说明 |
|---|---|
STARGATE_TRANSFER_UNKNOWN | Stargate 转移状态未知。 |
STARGATE_TRANSFER_SENT | Stargate 转移已发送。 |
STARGATE_TRANSFER_RECEIVED | Stargate 转移已接收。 |
STARGATE_TRANSFER_FAILED | Stargate 转移失败。 |
Eureka 转移状态
Eureka 转移状态码与 IBC 转移状态码完全一致。| 状态 | 说明 |
|---|---|
TRANSFER_UNKNOWN | Eureka 转移状态未知。 |
TRANSFER_PENDING | Eureka 转移进行中。 |
TRANSFER_RECEIVED | Eureka 转移已被目标链接收。 |
TRANSFER_SUCCESS | Eureka 转移已成功完成。 |
TRANSFER_FAILURE | Eureka 转移失败。 |
其他错误类型
Packet 错误类型
处理 IBC packet 时,你可能会看到以下错误类型:| 错误类型 | 说明 |
|---|---|
PACKET_ERROR_UNKNOWN | 未知 packet 错误。 |
PACKET_ERROR_ACKNOWLEDGEMENT | packet 确认阶段发生错误。 |
PACKET_ERROR_TIMEOUT | packet 已超时。 |
桥接专用错误类型
| 错误类型 | 说明 |
|---|---|
SEND_TOKEN_EXECUTION_ERROR | Axelar 发送代币执行期间发生错误。 |
CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR | Axelar 携带代币的合约调用执行期间发生错误。 |
This document provides a reference for the various error codes and status messages you may encounter when using Skip Go’s APIs. Understanding these codes is essential for handling API responses correctly and providing accurate feedback to users.
Transaction Status Codes
These codes represent the overall status of a transaction being processed or tracked by the Skip Go API.| Status | Description | Notes |
|---|---|---|
STATE_UNKNOWN | The status of the transaction is unknown. | Should be treated as an error state. |
STATE_SUBMITTED | The transaction has been submitted to the blockchain network. | |
STATE_PENDING | The transaction is in progress and waiting to be processed. | |
STATE_RECEIVED | The transaction has been received by the blockchain network. | |
STATE_COMPLETED | (Internal transitional state) | This state is resolved to STATE_COMPLETED_SUCCESS or STATE_COMPLETED_ERROR before API response. |
STATE_ABANDONED | The transaction was abandoned, often due to timeout (e.g., IBC relayer). | Tracking timed out. Not necessarily a permanent transaction failure; may be retriable. |
STATE_COMPLETED_SUCCESS | The transaction has completed successfully. | This is the only status that definitively indicates successful end-to-end transaction completion. |
STATE_COMPLETED_ERROR | The transaction has completed but encountered errors. | |
STATE_PENDING_ERROR | The transaction encountered errors while being processed. |
General Error Types
These error types provide a broad categorization of issues.| Error Type | Description |
|---|---|
STATUS_ERROR_UNKNOWN | Unknown error type. |
STATUS_ERROR_TRANSACTION_EXECUTION | Error occurred during the execution of the transaction on the blockchain. |
STATUS_ERROR_INDEXING | Error occurred during Skip’s internal processing or indexing. |
STATUS_ERROR_TRANSFER | Error related to a specific transfer operation within the transaction. |
Bridge Protocol Status Codes
Different bridge protocols have their own specific status codes that reflect the state of a transfer leg using that bridge.IBC Transfer Status
| Status | Description |
|---|---|
TRANSFER_UNKNOWN | The status of the IBC transfer is unknown. |
TRANSFER_PENDING | The IBC transfer is in progress. |
TRANSFER_RECEIVED | The IBC transfer has been received by the destination chain. |
TRANSFER_SUCCESS | The IBC transfer has completed successfully. |
TRANSFER_FAILURE | The IBC transfer has failed. |
Axelar Transfer Status
| Status | Description |
|---|---|
AXELAR_TRANSFER_UNKNOWN | The status of the Axelar transfer is unknown. |
AXELAR_TRANSFER_PENDING_CONFIRMATION | The Axelar transfer is waiting for confirmation. |
AXELAR_TRANSFER_PENDING_RECEIPT | The Axelar transfer is waiting for receipt. |
AXELAR_TRANSFER_SUCCESS | The Axelar transfer has completed successfully. |
AXELAR_TRANSFER_FAILURE | The Axelar transfer has failed. |
CCTP Transfer Status
| Status | Description |
|---|---|
CCTP_TRANSFER_UNKNOWN | The status of the CCTP transfer is unknown. |
CCTP_TRANSFER_SENT | The CCTP transfer has been sent. |
CCTP_TRANSFER_PENDING_CONFIRMATION | The CCTP transfer is waiting for confirmation. |
CCTP_TRANSFER_CONFIRMED | The CCTP transfer has been confirmed. |
CCTP_TRANSFER_RECEIVED | The CCTP transfer has been received at the destination. |
GoFast Transfer Status
| Status | Description |
|---|---|
GO_FAST_TRANSFER_UNKNOWN | The status of the GoFast transfer is unknown. |
GO_FAST_TRANSFER_SENT | The GoFast transfer has been sent. |
GO_FAST_POST_ACTION_FAILED | The post-transfer action on the GoFast transfer has failed. |
GO_FAST_TRANSFER_TIMEOUT | The GoFast transfer has timed out. |
GO_FAST_TRANSFER_FILLED | The GoFast transfer has been filled. |
GO_FAST_TRANSFER_REFUNDED | The GoFast transfer has been refunded. |
LayerZero Transfer Status
| Status | Description |
|---|---|
LAYER_ZERO_TRANSFER_UNKNOWN | The status of the LayerZero transfer is unknown. |
LAYER_ZERO_TRANSFER_SENT | The LayerZero transfer has been sent. |
LAYER_ZERO_TRANSFER_RECEIVED | The LayerZero transfer has been received. |
LAYER_ZERO_TRANSFER_FAILED | The LayerZero transfer has failed. |
Hyperlane Transfer Status
| Status | Description |
|---|---|
HYPERLANE_TRANSFER_UNKNOWN | The status of the Hyperlane transfer is unknown. |
HYPERLANE_TRANSFER_SENT | The Hyperlane transfer has been sent. |
HYPERLANE_TRANSFER_FAILED | The Hyperlane transfer has failed. |
HYPERLANE_TRANSFER_RECEIVED | The Hyperlane transfer has been received. |
OPInit Transfer Status
| Status | Description |
|---|---|
OPINIT_TRANSFER_UNKNOWN | The status of the OPInit transfer is unknown. |
OPINIT_TRANSFER_SENT | The OPInit transfer has been sent. |
OPINIT_TRANSFER_RECEIVED | The OPInit transfer has been received. |
Stargate Transfer Status
| Status | Description |
|---|---|
STARGATE_TRANSFER_UNKNOWN | The status of the Stargate transfer is unknown. |
STARGATE_TRANSFER_SENT | The Stargate transfer has been sent. |
STARGATE_TRANSFER_RECEIVED | The Stargate transfer has been received. |
STARGATE_TRANSFER_FAILED | The Stargate transfer has failed. |
Eureka Transfer Status
The Eureka transfer status codes are identical to the IBC transfer status codes.| Status | Description |
|---|---|
TRANSFER_UNKNOWN | The status of the Eureka transfer is unknown. |
TRANSFER_PENDING | The Eureka transfer is in progress. |
TRANSFER_RECEIVED | The Eureka transfer has been received by the destination chain. |
TRANSFER_SUCCESS | The Eureka transfer has completed successfully. |
TRANSFER_FAILURE | The Eureka transfer has failed. |
Additional Error Types
Packet Error Types
When dealing with IBC packets, you may see these error types:| Error Type | Description |
|---|---|
PACKET_ERROR_UNKNOWN | Unknown packet error. |
PACKET_ERROR_ACKNOWLEDGEMENT | Error in packet acknowledgement. |
PACKET_ERROR_TIMEOUT | Packet timed out. |
Bridge-Specific Error Types
| Error Type | Description |
|---|---|
SEND_TOKEN_EXECUTION_ERROR | Error during Axelar send token execution. |
CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR | Error during Axelar contract call with token execution. |