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: GET

  • Path: /cross/chain/height

  • Describe: Query the current scan height of a specified blockchain。

Parameters

Parameter
Type
Requied
Description

chainId

string

Yes

Unique Identifier of Blockchain

Returns

return string of chain height

Example

  • 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: GET

  • Path: /cross/chain/height/orders

  • Describe: Query all cross-chain transaction orders that occurred at a specific block height.

Parameters

Parameter
Type
Requied
Description

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: GET

  • Path: /cross/order

  • Describe: Query detailed transaction information across the entire chain based on cross-chain order ID.

Parameters

Parameter
Type
Requied
Description

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.

    Field
    Type
    Description

    src

    CrossData

    src chain tx info

    dest

    CrossData

    dst chain tx info

    map_dest

    CrossData

    relay dst tx info

    relay

    CrossData

    relay tx info

    status

    string

    Cross-chain transaction status, the meaning of its numerical values can be found in the status enumeration.

    order_id

    string

    order id

    now

    integer

    Current timestamp.

  • CrossData Transaction data details on a single chain.

    Field
    Type
    Description

    chain

    string

    chain id

    tx_hash

    string

    tx hash

    height

    integer

    tx on height

    log_index

    integer

    log in block index

    timestamp

    integer

    tx timestamp

    topic

    string

    tx topic

    order_id

    string

    tx orderId

    chain_and_gas_limit

    string

    Chain identifier and Gas limit combination information.

  • status

    Number
    Name

    0

    StatusOfInit

    1

    StatusOfPending

    2

    StatusOfSend

    3

    StatusOfCompleted

    4

    StatusOfFailed

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: GET

  • Path: /cross/tx

  • Describe: Based on the transaction hash on any chain, trace back the entire cross-chain process associated with it.。

Parameters

Parameter
Type
Requied
Description

tx

string

Yes

Transaction hash on any chain

Returns

CrossSignel

Example

  • Request:

  • Response:

getChainPendingTxs

Gets a list of cross-chain transaction hashes with a status of "Pending" on a specified chain.

  • Method: GET

  • Path: /cross/pending/tx

  • Describe: Queries all cross-chain transactions on a given chain that have not yet been uploaded to the chain.

Parameters

Parameter
Type
Requied
Description

chainId

string

Yes

Transaction hash on any chain

Returns

Example

  • Request:

  • Response:

Last updated