Interface: SwapQueryExtensionMethods
@shareledgerjs/client.swap.SwapQueryExtensionMethods
Methods
batches
▸ batches(ids?
, network?
, paginationKey?
, height?
): Promise
<QueryBatchesResponse
>
Parameters
Name | Type |
---|---|
ids? | Long [] |
network? | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryBatchesResponse
>
params
▸ params(height?
): Promise
<undefined
| Params
>
Parameters
Name | Type |
---|---|
height? | number |
Returns
Promise
<undefined
| Params
>
pastEvent
▸ pastEvent(txHash
, logIndex
, height?
): Promise
<undefined
| PastTxEvent
>
Parameters
Name | Type |
---|---|
txHash | string |
logIndex | number |
height? | number |
Returns
Promise
<undefined
| PastTxEvent
>
pastEvents
▸ pastEvents(txHash?
, paginationKey?
, height?
): Promise
<QueryPastTxEventsResponse
>
Parameters
Name | Type |
---|---|
txHash? | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QueryPastTxEventsResponse
>
requests
▸ requests(ids?
, destAddr?
, destNetwork?
, srcAddr?
, srcNetwork?
, status?
, paginationKey?
, height?
): Promise
<QuerySwapResponse
>
Parameters
Name | Type |
---|---|
ids? | Long [] |
destAddr? | string |
destNetwork? | string |
srcAddr? | string |
srcNetwork? | string |
status? | string |
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QuerySwapResponse
>
schema
▸ schema(network
, height?
): Promise
<undefined
| Schema
>
Parameters
Name | Type |
---|---|
network | string |
height? | number |
Returns
Promise
<undefined
| Schema
>
schemas
▸ schemas(paginationKey?
, height?
): Promise
<QuerySchemasResponse
>
Parameters
Name | Type |
---|---|
paginationKey? | Uint8Array |
height? | number |
Returns
Promise
<QuerySchemasResponse
>
tokensAvailable
▸ tokensAvailable(height?
): Promise
<undefined
| DecCoin
>
Parameters
Name | Type |
---|---|
height? | number |
Returns
Promise
<undefined
| DecCoin
>