Skip to main content

Interface: SwapQueryExtensionMethods

@shareledgerjs/client.swap.SwapQueryExtensionMethods

Methods

batches

batches(ids?, network?, paginationKey?, height?): Promise<QueryBatchesResponse>

Parameters

NameType
ids?Long[]
network?string
paginationKey?Uint8Array
height?number

Returns

Promise<QueryBatchesResponse>


params

params(height?): Promise<undefined | Params>

Parameters

NameType
height?number

Returns

Promise<undefined | Params>


pastEvent

pastEvent(txHash, logIndex, height?): Promise<undefined | PastTxEvent>

Parameters

NameType
txHashstring
logIndexnumber
height?number

Returns

Promise<undefined | PastTxEvent>


pastEvents

pastEvents(txHash?, paginationKey?, height?): Promise<QueryPastTxEventsResponse>

Parameters

NameType
txHash?string
paginationKey?Uint8Array
height?number

Returns

Promise<QueryPastTxEventsResponse>


requests

requests(ids?, destAddr?, destNetwork?, srcAddr?, srcNetwork?, status?, paginationKey?, height?): Promise<QuerySwapResponse>

Parameters

NameType
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

NameType
networkstring
height?number

Returns

Promise<undefined | Schema>


schemas

schemas(paginationKey?, height?): Promise<QuerySchemasResponse>

Parameters

NameType
paginationKey?Uint8Array
height?number

Returns

Promise<QuerySchemasResponse>


tokensAvailable

tokensAvailable(height?): Promise<undefined | DecCoin>

Parameters

NameType
height?number

Returns

Promise<undefined | DecCoin>