Skip to content

Latest commit

 

History

History
134 lines (76 loc) · 3.13 KB

OmnicQuery.md

File metadata and controls

134 lines (76 loc) · 3.13 KB

Class: OmnicQuery

OmnicQuery class is responsible for transaction records and statistic query.

Table of contents

Properties

Constructors

Methods

Properties

GraphQLURL

Private GraphQLURL: string

Constructors

constructor

new OmnicQuery()

Methods

getBridgeMessage

getBridgeMessage(txhash): Promise<getBridgeMessageResult>

get Bridge Message by txhash.

Parameters

Name Type Description
txhash string txhash of the message.

Returns

Promise<getBridgeMessageResult>


getBridgeStatistic

getBridgeStatistic(): Promise<getStatisticResult>

Get the statistic of bridge, includes fee and volume

Returns

Promise<getStatisticResult>


getLatestBridgeMessage

getLatestBridgeMessage(offset, limit, dispatched): Promise<getBridgeMessagesResult>

Get latest bridge message records, you can set the data query's offset and limit.

Parameters

Name Type Description
offset number
limit number
dispatched boolean filter the message dispatched or not.

Returns

Promise<getBridgeMessagesResult>


getMessage

getMessage(hash): Promise<getMessageResult>

Get Omnic crosschain message record by hash.

Parameters

Name Type Description
hash string hash of the omnic message.

Returns

Promise<getMessageResult>


getPoolsInfo

getPoolsInfo(): Promise<PoolsInfo>

Get all Paranic pools information.

Returns

Promise<PoolsInfo>


getUserTransferHistory

getUserTransferHistory(id, offset, limit): Promise<getBridgeMessagesResult>

Get latest bridge message records, you can set the data query's offset and limit.

Parameters

Name Type Description
id string User's EVM Address or Principal ID
offset number
limit number

Returns

Promise<getBridgeMessagesResult>