Skip to main content

Class: IndexerPluginClient

Indexer plugin which provides access to the indexer plugin API.

Table of contents

Constructors

Methods

Constructors

constructor

new IndexerPluginClient(client, options?)

Create a new instance of IndexerPluginClient.

Parameters

NameTypeDescription
clientstring | IClientThe client for communications.
options?ObjectOptions for the plugin.

Methods

basicOutputs

outputs(filterOptions?): Promise<IOutputsResponse>

Find outputs using filter options.

Parameters

NameTypeDescription
filterOptions?ObjectThe options for filtering.

Returns

Promise<IOutputsResponse>

The outputs with the requested filters.


aliases

aliases(filterOptions?): Promise<IOutputsResponse>

Find alises using filter options.

Parameters

NameTypeDescription
filterOptions?ObjectThe options for filtering.

Returns

Promise<IOutputsResponse>

The outputs with the requested filters.


alias

alias(aliasId): Promise<IOutputsResponse>

Get the output for an alias.

Parameters

NameTypeDescription
aliasIdstringThe alias to get the output for.

Returns

Promise<IOutputsResponse>

The output.


nfts

nfts(filterOptions?): Promise<IOutputsResponse>

Find nfts using filter options.

Parameters

NameTypeDescription
filterOptions?ObjectThe options for filtering.

Returns

Promise<IOutputsResponse>

The outputs with the requested filters.


nft

nft(nftId): Promise<IOutputsResponse>

Get the output for a nft.

Parameters

NameTypeDescription
nftIdstringThe nft to get the output for.

Returns

Promise<IOutputsResponse>

The output.


foundries

foundries(filterOptions?): Promise<IOutputsResponse>

Find foundries using filter options.

Parameters

NameTypeDescription
filterOptions?ObjectThe options for filtering.

Returns

Promise<IOutputsResponse>

The outputs with the requested filters.


foundry

foundry(foundryId): Promise<IOutputsResponse>

Get the output for a foundry.

Parameters

NameTypeDescription
foundryIdstringThe foundry to get the output for.

Returns

Promise<IOutputsResponse>

The output.