🥑Transit Details

查詢交易詳情

chain flag:

chain 參數可以是chainId或者chain標識,各個鏈的參數如下:

ETH or 1

OP or 10

BSC or 56

OEC or OKEXCHAIN or 66

HSC or 70

HECO or 128

MATIC or POLYGON or 137

FTM or FANTOM or 250

KCC or 321

CFX or 1030

GLMR or 1284

KLAY or 8217

ARB or 42161

AVAX or 43114

TRON or 95500

SOL

APTOS

GET https://aggserver.transit.finance/v3/transit/details

Query Parameters

NameTypeDescription

hash*

String

交易哈希

chain*

String

鏈標識,詳情見上面說明👆

{
    "result": 0,
    "message": "success",
    "data": {
        "sourceHash": "82c8dd309d4aa38a251f600f10cd6716aa515caf9abffe49e9dd122b446b87c4",
        "targetHash": "0x330e5c9dea93977c3705d4e22f6b9dbfbbaf7a7370fc2d9410dc0ed051929a0c",
        "chain": "TRON",
        "status": "Success",
        "statusNotes": "receive_complete",
        "fromToken": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
        "toToken": "0x55d398326f99059ff775485246999027b3197955",
        "amountIn": "153000000",
        "amountOut": "152288612000000000000",
        "amountOutMin": "152288612000000000000",
        "fromDecimals": 6,
        "toDecimals": 18,
        "fromAddress": "TMYgtXHnMS3GJUaaMeK9Cc67QBYQHKsvM7",
        "toAddress": "0x8dB8f5Ed20b5D1146646dEF9C696fEF2284793A6",
        "fromChain": "TRON",
        "toChain": "BSC",
        "timestamp": 1657630527,
        "channel": "web",
        "dexs": [
            {
                "dex": "METAPATH",
                "icon": "https://tp-statics.tokenpocket.pro/logo/dapp/metapath.png"
            }
        ]
    }
}

about data:

注:當 fromToken 或 toToken 為 全零地址address(0) 時代表是該鏈的原生幣,如ETH、BNB、TRX等等

sourceHash: 源鏈交易哈希,
targetHash: 跨鏈時為目標鏈交易哈希,當是同鏈交易時為空
status: 交易最終狀態 Success、Failure、Receiving(只有在跨鏈時出現)
statusNotes: 交易詳細狀態,當status=Receiving時可查看此狀態
fromToken: 賣出(源鏈交易)的幣種合約
toToken: 買入(目標鏈到帳)的幣種合約
amountIn: fromToken的支付數量
amountOut: toToken的最終接收數量
fromDecimals: fromToken的精度
toDecimals: toToken的精度
fromAddress: 發起交易的地址(支付地址)
toAddress: 收款地址
fromChain: 源鏈標識
toChain: 目標鏈標識 (當是同鏈交易時 fromChain=toChain)
timestamp: 交易確認時間,秒級時間戳
channel: 交易來自的渠道商
dexs: 此交易使用的dex情況,可以為多個

關於 statusNotes 具體狀態的詳情:

dex如果是 METAPATH 可能的情況有:

wait_deposit_send: 等待存幣
wait_deposit_send_error: 存幣失敗
wait_exchange_push: 正在兌換中
wait_exchange_return: 正在兌換中
wait_exchange_return_success: 正在兌換中
wait_exchange_return_error: 正在兌換中
wait_receive_send: 兌換完成,等待發幣
wait_receive_confirm: 正在發幣中 
wait_receive_confirm_error: 正在發幣中
receive_complete: 兌換完成
wait_refund_send: 等待退幣
wait_refund_confirm: 退幣確認中 
wait_refund_confirm_error: 退幣中 
refund_complete: 退幣完成
timeout: 兌換超時
ERROR: 兌換失敗,訂單有誤
error_hacker: 兌換失敗,訂單有誤

dex如果是 ANYSWAP 可能的情況有:

ExceedLimit(LessThenMinAmount):低於兌換限額
Confirming:兌換完成,等待發幣
Swapping:正在發幣中
BigAmount(Wait24hours):大額兌換,需要等待
Success:兌換完成
Failure:兌換失敗,訂單有誤

Last updated