OmnicQuery class is responsible for transaction records and statistic query.
- getBridgeMessage
- getBridgeStatistic
- getLatestBridgeMessage
- getMessage
- getPoolsInfo
- getUserTransferHistory
• Private GraphQLURL: string
• new OmnicQuery()
▸ getBridgeMessage(txhash): Promise<getBridgeMessageResult>
get Bridge Message by txhash.
| Name | Type | Description |
|---|---|---|
txhash |
string |
txhash of the message. |
Promise<getBridgeMessageResult>
▸ getBridgeStatistic(): Promise<getStatisticResult>
Get the statistic of bridge, includes fee and volume
Promise<getStatisticResult>
▸ getLatestBridgeMessage(offset, limit, dispatched): Promise<getBridgeMessagesResult>
Get latest bridge message records, you can set the data query's offset and limit.
| Name | Type | Description |
|---|---|---|
offset |
number |
|
limit |
number |
|
dispatched |
boolean |
filter the message dispatched or not. |
Promise<getBridgeMessagesResult>
▸ getMessage(hash): Promise<getMessageResult>
Get Omnic crosschain message record by hash.
| Name | Type | Description |
|---|---|---|
hash |
string |
hash of the omnic message. |
Promise<getMessageResult>
▸ getPoolsInfo(): Promise<PoolsInfo>
Get all Paranic pools information.
Promise<PoolsInfo>
▸ getUserTransferHistory(id, offset, limit): Promise<getBridgeMessagesResult>
Get latest bridge message records, you can set the data query's offset and limit.
| Name | Type | Description |
|---|---|---|
id |
string |
User's EVM Address or Principal ID |
offset |
number |
|
limit |
number |
Promise<getBridgeMessagesResult>