TSS-Cross RPC
An interface that returns TSS cross-chain data, and provides the following interfaces.
getChainTxHeight
Get the current scan height of the chain based on the specified blockchain ID.
Method:
GETPath:
/cross/chain/heightDescribe: Query the current scan height of a specified blockchain。
Parameters
chainId
string
Yes
Unique Identifier of Blockchain
Returns
return string of chain heightExample
Request:
Response:
getOrderSetByChainHeight
Based on the blockchain ID and block height, retrieve the set of all cross-chain transaction order IDs scanned at that height.
Method:
GETPath:
/cross/chain/height/ordersDescribe: Query all cross-chain transaction orders that occurred at a specific block height.
Parameters
chainId
string
Yes
22776
height
string
Yes
12245
Returns
Example
Request:
Response:
getRecordByOrderId
Retrieve the complete cross-chain status record of a transaction using the unique ID of the cross-chain order.
Method:
GETPath:
/cross/orderDescribe: Query detailed transaction information across the entire chain based on cross-chain order ID.
Parameters
orderId
string
Yes
Unique Identifier for Cross-Chain Orders
Returns
CrossSignel
CrossSet A cross-chain transaction dataset describes the state of a cross-chain transaction across the entire chain.
FieldTypeDescriptionsrcCrossDatasrc chain tx info
destCrossDatadst chain tx info
map_destCrossDatarelay dst tx info
relayCrossDatarelay tx info
statusstringCross-chain transaction status, the meaning of its numerical values can be found in the
statusenumeration.order_idstringorder id
nowintegerCurrent timestamp.
CrossData Transaction data details on a single chain.
FieldTypeDescriptionchainstringchain id
tx_hashstringtx hash
heightintegertx on height
log_indexintegerlog in block index
timestampintegertx timestamp
topicstringtx topic
order_idstringtx orderId
chain_and_gas_limitstringChain identifier and Gas limit combination information.
status
NumberName0StatusOfInit1StatusOfPending2StatusOfSend3StatusOfCompleted4StatusOfFailed
Example
Request:
Response:
getRecordByTxHash
Retrieve the complete record of the cross-chain order to which a single transaction belongs by using its hash value.
Method:
GETPath:
/cross/txDescribe: Based on the transaction hash on any chain, trace back the entire cross-chain process associated with it.。
Parameters
tx
string
Yes
Transaction hash on any chain
Returns
Example
Request:
Response:
getChainPendingTxs
Gets a list of cross-chain transaction hashes with a status of "Pending" on a specified chain.
Method:
GETPath:
/cross/pending/txDescribe: Queries all cross-chain transactions on a given chain that have not yet been uploaded to the chain.
Parameters
chainId
string
Yes
Transaction hash on any chain
Returns
Example
Request:
Response:
Last updated